MCPcopy
hub / github.com/kubesphere/kubekey / Project

Interface Project

pkg/project/project.go:44–55  ·  view source on GitHub ↗

Project represent location of actual project. get project file should base on it

Source from the content-addressed store, hash-verified

42// Project represent location of actual project.
43// get project file should base on it
44type Project interface {
45 // MarshalPlaybook project file to playbook.
46 MarshalPlaybook() (*kkprojectv1.Playbook, error)
47 // Stat file or dir in project
48 Stat(path string) (os.FileInfo, error)
49 // WalkDir dir in project
50 WalkDir(path string, f fs.WalkDirFunc) error
51 // ReadFile file or dir in project
52 ReadFile(path string) ([]byte, error)
53 // Rel path file or dir in project
54 Rel(root string, path string) (string, error)
55}
56
57// New creates a new Project instance based on the provided playbook.
58// If project address is git format, it creates a git project.

Callers 30

TestMarshalPlaybookFunction · 0.65
ExecMethod · 0.65
ModuleFetchFunction · 0.65
headMethod · 0.65
putMethod · 0.65
getMethod · 0.65
handleAbsolutePathMethod · 0.65
handleRelativePathMethod · 0.65
ModuleHttpGetFileFunction · 0.65
handleAbsoluteTemplateFunction · 0.65
copyAbsoluteDirMethod · 0.65
copyRelativeDirMethod · 0.65

Implementers 1

projectpkg/project/project.go

Calls

no outgoing calls

Tested by

no test coverage detected