Documentation ¶
Index ¶
- Constants
- func CreateFile(dir, fname string, data []byte) error
- func ExecKustomize(ctx context.Context, dir string, kust *types.Kustomization) ([]byte, error)
- func GetDefaultNamespace(cfg *api.Config, kubecontext string) string
- func GetKubeConfig(path string) (*api.Config, error)
- func KustomizeBuildCmd() ([]string, error)
- func PrintfColorErr(out io.Writer, msg string, a ...interface{})
- func PrintfColorInfo(out io.Writer, msg string, a ...interface{})
- func RemoveFile(dir, fname string) error
- type CliOptions
- type NamespacedCliOptions
- type UserNamespacedCliOptions
Constants ¶
View Source
const (
KustomizationFile = "kustomization.yaml"
)
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
func ExecKustomize ¶
func KustomizeBuildCmd ¶
func PrintfColorErr ¶
func PrintfColorInfo ¶
func RemoveFile ¶
Types ¶
type CliOptions ¶
type CliOptions struct { KubeConfigPath string KubeContext string LogLevel int Out io.Writer ErrOut io.Writer Logr *clog.Logger Client *kosmo.Client Scheme *runtime.Scheme }
func NewCliOptions ¶
func NewCliOptions() *CliOptions
type NamespacedCliOptions ¶
type NamespacedCliOptions struct { *CliOptions Namespace string AllNamespace bool }
func NewNamespacedCliOptions ¶
func NewNamespacedCliOptions(o *CliOptions) *NamespacedCliOptions
type UserNamespacedCliOptions ¶
type UserNamespacedCliOptions struct { *NamespacedCliOptions User string }
func NewUserNamespacedCliOptions ¶
func NewUserNamespacedCliOptions(o *CliOptions) *UserNamespacedCliOptions
Click to show internal directories.
Click to hide internal directories.