Documentation ¶
Index ¶
- func DirExists(dirName string) bool
- func Resource(name string) ([]byte, error)
- func ResourceAsString(name string) (string, error)
- func Resources(dirName string) ([]string, error)
- func TemplateResource(name string, params interface{}) (string, error)
- func WithPrefix(pathPrefix string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResourceAsString ¶
ResourceAsString returns the named resource content as string. Warning : do not remove the go:generate line as it is used to update the resources file in case of CRD changes.
func TemplateResource ¶
TemplateResource loads a file resource as go template and processes it using the given parameters.
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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.