project

package
v4.0.0-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetFileOption

type GetFileOption struct {
	Role       string
	IsTemplate bool
	IsFile     bool
}

type Project

type Project interface {
	MarshalPlaybook() (*kkcorev1.Playbook, error)
	Stat(path string, option GetFileOption) (os.FileInfo, error)
	WalkDir(path string, option GetFileOption, f fs.WalkDirFunc) error
	ReadFile(path string, option GetFileOption) ([]byte, error)
	Rel(root string, path string, option GetFileOption) (string, error)
}

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

func New

func New(pipeline kubekeyv1.Pipeline, update bool) (Project, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL