Documentation ¶
Index ¶
- func GetManifestObjects(c *collector.Manifests) (objs []controllerutil.Object)
- func GetOperatorName(cfg *config.Config) (string, error)
- func IsNotExist(path string) bool
- func IsPipeReader() bool
- func NewMultiManifestWriter(w io.Writer) io.Writer
- func ValidateVersion(version string) error
- func WriteObjects(w io.Writer, objs ...controllerutil.Object) error
- func WriteObjectsToFiles(dir string, objs ...controllerutil.Object) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetManifestObjects ¶
func GetManifestObjects(c *collector.Manifests) (objs []controllerutil.Object)
GetManifestObjects returns all objects to be written to a manifests directory from collector.Manifests.
func GetOperatorName ¶
GetOperatorName returns the name of the operator which is by default the projectName attribute of the PROJECT file However, the Go projects built with the plugin version v2 has not this attribute and then, for this case the operatorName will be the current directory.
func IsNotExist ¶
IsNotExist returns true if path does not exist on disk.
func IsPipeReader ¶
func IsPipeReader() bool
IsPipeReader returns true if stdin is an open pipe, i.e. the caller can accept input from stdin.
func NewMultiManifestWriter ¶
NewMultiManifestWriter returns a multi-part manifest writer. Use this writer if writing a package or bundle to stdout or a single file.
func ValidateVersion ¶
ValidateVersion returns an error if version is not a strict semantic version.
func WriteObjects ¶
func WriteObjects(w io.Writer, objs ...controllerutil.Object) error
WriteObjects writes each object in objs to w.
func WriteObjectsToFiles ¶
func WriteObjectsToFiles(dir string, objs ...controllerutil.Object) error
WriteObjectsToFiles creates dir then writes each object in objs to a file in dir.
Types ¶
This section is empty.