Documentation ¶
Index ¶
- func AddMaintainer(fs afero.Fs, path string, m *v1beta1.Maintainer) error
- func AddParameter(fs afero.Fs, path string, p *packages.Parameter) error
- func AddPlan(fs afero.Fs, path string, planName string, plan *v1beta1.Plan) error
- func AddTask(fs afero.Fs, path string, task *v1beta1.Task) error
- func CanGenerateOperator(fs afero.Fs, dir string, overwrite bool) error
- func EnsureResource(fs afero.Fs, dir string, resource string) error
- func EnsureTaskResources(fs afero.Fs, path string, task *v1beta1.Task) error
- func MaintainerList(fs afero.Fs, path string) ([]*v1beta1.Maintainer, error)
- func Operator(fs afero.Fs, dir string, op *packages.OperatorFile, overwrite bool) error
- func OperatorPath(fs afero.Fs) (string, error)
- func ParameterNameList(fs afero.Fs, path string) (paramNames []string, err error)
- func PlanList(fs afero.Fs, path string) (map[string]v1beta1.Plan, error)
- func PlanNameList(fs afero.Fs, path string) ([]string, error)
- func TaskInList(fs afero.Fs, path, taskName string) (bool, error)
- func TaskKinds() []string
- func TaskList(fs afero.Fs, path string) ([]v1beta1.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMaintainer ¶
AddMaintainer adds a maintainer to the operator.yaml
func AddParameter ¶
AddParameter writes a parameter to the params.yaml file
func CanGenerateOperator ¶
CanGenerateOperator checks to see if operator generation makes sense (we don't generate over an operator or existing folder) fails if folder exits (non-destructive) if "operator.yaml" exists in current dir, we assume it's a mistake an error
func EnsureResource ¶
EnsureResource ensures that resource is in templates folder
func EnsureTaskResources ¶
EnsureTaskResources ensures that all resources used by the given task exist
func MaintainerList ¶
MaintainerList provides a list of operator maintainers
func OperatorPath ¶
OperatorPath determines the path to use as operator path for generators the path is either current "", or a dir with operator.yaml (if 1) else an error and is determined based on location of operator.yaml
func ParameterNameList ¶
func PlanNameList ¶
PlanNameList provides a list of operator plan names
Types ¶
This section is empty.