Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersistentOptions ¶
type PersistentOptions struct {
*RawPersistentOptions
PlatformCluster *clusters.Cluster
// fields filled in Complete()
Log logging.Logger
Config *config.Config
}
func NewPersistentOptions ¶
func NewPersistentOptions() *PersistentOptions
func (*PersistentOptions) AddPersistentFlags ¶
func (o *PersistentOptions) AddPersistentFlags(cmd *cobra.Command)
func (*PersistentOptions) Complete ¶
func (o *PersistentOptions) Complete(ctx context.Context) error
func (*PersistentOptions) PrintCompleted ¶
func (o *PersistentOptions) PrintCompleted(cmd *cobra.Command)
func (*PersistentOptions) PrintRaw ¶
func (o *PersistentOptions) PrintRaw(cmd *cobra.Command)
type RawPersistentOptions ¶
type RawPersistentOptions struct {
Environment string `json:"environment"`
ProviderName string `json:"provider-name"`
DryRun bool `json:"dry-run"`
ConfigPaths []string `json:"configPaths"`
ConfigMapName string `json:"configmap-name"`
PlatformClusterKubeconfigPath string `json:"kubeconfig"` // dummy for printing, actual path is in Clusters
}
Click to show internal directories.
Click to hide internal directories.