Documentation ¶
Index ¶
- func ApplyTemplate(tmpl string, data interface{}) ([]byte, error)
- func Copy(src string, dst string) error
- func DebugObject(ctx context.Context, msg string, obj interface{})
- func DeletePath(ctx context.Context, fileOrFolder string) error
- func FileExists(filename string) bool
- func GetMutex(ctx context.Context) (*sync.Mutex, bool)
- func IsDryRun(ctx context.Context) bool
- func JoinPaths(ctx context.Context, filePaths ...string) string
- func KYAMLFilter(r io.Reader, w io.Writer, filters ...KYAMLFilterFunc) error
- func KYAMLResourceMetaMatcher(node *kyaml.RNode, matchStatements ...KYAMLResourceMetaMatch) error
- func Logger(ctx context.Context) *logrus.Entry
- func NewContext(dryRun bool, rootPath string) context.Context
- func PathExists(path string) (bool, os.FileInfo)
- func Poll(ctx context.Context, d *time.Duration, fn wait.ConditionFunc) error
- func RandomSHA(byteLen int) (string, error)
- func ReadYAMLFile(file string, obj interface{}) error
- func WithClusterNumber(ctx context.Context, n uint16) context.Context
- func WithDryRun(ctx context.Context, dryRun bool) context.Context
- func WithMutex(ctx context.Context, mux *sync.Mutex) context.Context
- func WriteFile(ctx context.Context, file string, b []byte) error
- func WriteYAMLFile(ctx context.Context, file string, obj interface{}) error
- type ExecUtil
- type KYAMLFilterFunc
- type KYAMLResourceMetaMatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTemplate ¶
func DebugObject ¶
func FileExists ¶
func KYAMLFilter ¶
func KYAMLResourceMetaMatcher ¶
func KYAMLResourceMetaMatcher(node *kyaml.RNode, matchStatements ...KYAMLResourceMetaMatch) error
func ReadYAMLFile ¶
Types ¶
type ExecUtil ¶
type ExecUtil struct {
// contains filtered or unexported fields
}
func ShellCommand ¶
Click to show internal directories.
Click to hide internal directories.