Documentation ¶
Index ¶
- func GetManifestObjects(c *collector.Manifests, extraSAs []string) (objs []client.Object)
- func GetPackageNameAndLayout(defaultPackageName string) (packageName string, layout string, _ error)
- func IsExist(path string) bool
- 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 ...client.Object) error
- func WriteObjectsToFiles(dir string, objs ...client.Object) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetManifestObjects ¶
GetManifestObjects returns all objects to be written to a manifests directory from collector.Manifests.
func GetPackageNameAndLayout ¶ added in v1.3.1
func GetPackageNameAndLayout(defaultPackageName string) (packageName string, layout string, _ error)
GetPackageNameAndLayout returns packageName and layout, if any, for a project. These values are determined by project version and whether a PROJECT file exists.
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 ¶
WriteObjects writes each object in objs to w.
Types ¶
This section is empty.