Documentation ¶
Index ¶
- func CreateObjectsFromDirectory(rootPath string) ([]client.Object, error)
- func CreateTypedObjectFromYamlByte[T generics.Object, PT generics.PObject[T], L generics.ObjList[T], ...](yamlBytes []byte, _ func(T, PT, L, PL)) PT
- func CustomizedObjFromYaml[T generics.Object, PT generics.PObject[T], L generics.ObjList[T], ...](filePath string, signature func(T, PT, L, PL)) (PT, error)
- func CustomizedObjectListFromYaml[T generics.Object, PT generics.PObject[T], L generics.ObjList[T], ...](yamlfile string, signature func(T, PT, L, PL)) ([]PT, error)
- func GetTypedResourceObjectBySignature[T generics.Object, PT generics.PObject[T], L generics.ObjList[T], ...](objects []client.Object, _ func(T, PT, L, PL), matchers ...MatchResourceFunc) PT
- func HelmTemplate(helmPath string, helmOutput string) error
- func NewComponentTemplateRenderCmd(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command
- func NewWorkflowTemplateRender(helmTemplateDir string, opts RenderedOptions, ...) (*templateRenderWorkflow, error)
- func RandomString(n int) string
- func SetGetReturnedObject(out client.Object, expectedObj client.Object)
- func SetListReturnedObjects(list client.ObjectList, objects []runtime.Object) error
- type Handler
- type MatchResourceFunc
- type RenderedOptions
- type ResourceHandler
- type ResourceMatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomizedObjFromYaml ¶
func HelmTemplate ¶
func NewWorkflowTemplateRender ¶
func NewWorkflowTemplateRender(helmTemplateDir string, opts RenderedOptions, clusterDef, clusterVersion string) (*templateRenderWorkflow, error)
func RandomString ¶
func SetListReturnedObjects ¶
func SetListReturnedObjects(list client.ObjectList, objects []runtime.Object) error
Types ¶
type MatchResourceFunc ¶
func WithResourceName ¶
func WithResourceName(name string) MatchResourceFunc
type RenderedOptions ¶
type ResourceHandler ¶
type ResourceHandler struct { Matcher []ResourceMatcher Handler Handler }
type ResourceMatcher ¶
Click to show internal directories.
Click to hide internal directories.