project

package
v4.0.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 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
}

GetFileOption for file.

type Project

type Project interface {
	MarshalPlaybook() (*kkprojectv1.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(ctx context.Context, pipeline kkcorev1.Pipeline, update bool) (Project, error)

New project. If project address is git format. newGitProject If pipeline has BuiltinsProjectAnnotation. builtinProjectFunc Default newLocalProject

Jump to

Keyboard shortcuts

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