Documentation ¶
Index ¶
- Variables
- func CloseQuietly(closer io.Closer)
- func DirExists(dirName string) bool
- func ObjectOrCollect(ctx context.Context, c client.Client, namespace string, ...) error
- func Open(name string) (*os.File, error)
- func Resource(name string) ([]byte, error)
- func ResourceAsString(name string) (string, error)
- func ResourceOrCollect(ctx context.Context, c client.Client, namespace string, ...) error
- func Resources(dirName string) ([]string, error)
- func ResourcesOrCollect(ctx context.Context, c client.Client, namespace string, ...) error
- func WithPrefix(pathPrefix string) ([]string, error)
- type ResourceCustomizer
Constants ¶
This section is empty.
Variables ¶
View Source
var IdentityResourceCustomizer = func(object ctrl.Object) ctrl.Object {
return object
}
IdentityResourceCustomizer is a ResourceCustomizer that does nothing.
Functions ¶
func CloseQuietly ¶
CloseQuietly unconditionally close an io.Closer It should not be used to replace the Close statement(s).
func ObjectOrCollect ¶
func ResourceAsString ¶
ResourceAsString returns the named resource content as string.
func ResourceOrCollect ¶
func ResourceOrCollect(ctx context.Context, c client.Client, namespace string, collection *kubernetes.Collection, force bool, customizer ResourceCustomizer, name string) error
func ResourcesOrCollect ¶
func ResourcesOrCollect(ctx context.Context, c client.Client, namespace string, collection *kubernetes.Collection, force bool, customizer ResourceCustomizer, names ...string) error
func WithPrefix ¶
WithPrefix lists all file names that begins with the give path prefix If pathPrefix is a path of directories then be sure to end it with a '/'.
Types ¶
Click to show internal directories.
Click to hide internal directories.