Documentation ¶
Index ¶
- func NewClient(clientConfig clientcmd.ClientConfig) (client.Client, error)
- func NewClientset(clientConfig clientcmd.ClientConfig) (*kubernetes.Clientset, error)
- func NewCmd(streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdSchemaHistory(streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdSchemaStatus(streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdSchemaUndo(streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdSchemaUpdate(streams genericclioptions.IOStreams) *cobra.Command
- func Version() *cobra.Command
- type CommonOptions
- func (o *CommonOptions) GetClientConfig() clientcmd.ClientConfig
- func (o *CommonOptions) Init(cmd *cobra.Command) error
- func (o *CommonOptions) SetClient(client client.Client)
- func (o *CommonOptions) SetClientset(clientset *kubernetes.Clientset)
- func (o *CommonOptions) SetConfigFlags()
- func (o *CommonOptions) SetNamespace(ns string)
- type SchemaHistoryOptions
- type SchemaStatusOptions
- type SchemaUndoOptions
- type SchemaUpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(clientConfig clientcmd.ClientConfig) (client.Client, error)
NewClient returns a new controller-runtime client instance
func NewClientset ¶
func NewClientset(clientConfig clientcmd.ClientConfig) (*kubernetes.Clientset, error)
NewClientset returns a new client-go instance
func NewCmd ¶
func NewCmd(streams genericclioptions.IOStreams) *cobra.Command
NewCmd returns a Command instance for 'schemaop' sub command
func NewCmdSchemaHistory ¶
func NewCmdSchemaHistory(streams genericclioptions.IOStreams) *cobra.Command
NewCmdSchemaHistory returns a Command instance for SchemaHistory sub command
func NewCmdSchemaStatus ¶
func NewCmdSchemaStatus(streams genericclioptions.IOStreams) *cobra.Command
NewCmdSchemaStatus returns a Command instance for status sub command
func NewCmdSchemaUndo ¶
func NewCmdSchemaUndo(streams genericclioptions.IOStreams) *cobra.Command
NewCmdSchemaUndo returns a Command instance for SchemaUndo sub command
func NewCmdSchemaUpdate ¶
func NewCmdSchemaUpdate(streams genericclioptions.IOStreams) *cobra.Command
NewCmdSchemaUpdate returns a Command instance for update sub command
Types ¶
type CommonOptions ¶
type CommonOptions struct { ConfigFlags *genericclioptions.ConfigFlags Client client.Client Clientset *kubernetes.Clientset UserNamespace string }
CommonOptions Options encapsulates the common fields of command options
func (*CommonOptions) GetClientConfig ¶
func (o *CommonOptions) GetClientConfig() clientcmd.ClientConfig
GetClientConfig returns the client config
func (*CommonOptions) Init ¶
func (o *CommonOptions) Init(cmd *cobra.Command) error
Init initialize the common config of command options
func (*CommonOptions) SetClient ¶
func (o *CommonOptions) SetClient(client client.Client)
SetClient configures the client
func (*CommonOptions) SetClientset ¶
func (o *CommonOptions) SetClientset(clientset *kubernetes.Clientset)
SetClientset configures the clientset
func (*CommonOptions) SetConfigFlags ¶
func (o *CommonOptions) SetConfigFlags()
SetConfigFlags configures the config flags
func (*CommonOptions) SetNamespace ¶
func (o *CommonOptions) SetNamespace(ns string)
SetNamespace configures the namespace
type SchemaHistoryOptions ¶
type SchemaHistoryOptions struct { CommonOptions PrintFlags *genericclioptions.PrintFlags ToPrinter func(string) (printers.ResourcePrinter, error) Revision int64 Builder *resource.Builder Resources []string Namespace string Name string EnforceNamespace bool RESTClientGetter genericclioptions.RESTClientGetter resource.FilenameOptions genericclioptions.IOStreams // contains filtered or unexported fields }
SchemaHistoryOptions holds the options for 'schema history' sub command
func NewSchemaHistoryOptions ¶
func NewSchemaHistoryOptions(streams genericclioptions.IOStreams) *SchemaHistoryOptions
NewSchemaHistoryOptions returns an initialized SchemaHistoryOptions instance
func (*SchemaHistoryOptions) Complete ¶
func (o *SchemaHistoryOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes al the required options
func (*SchemaHistoryOptions) Run ¶
func (o *SchemaHistoryOptions) Run() error
Run performs the execution of 'rollout history' sub command
func (*SchemaHistoryOptions) Validate ¶
func (o *SchemaHistoryOptions) Validate() error
Validate makes sure all the provided values for command-line options are valid
type SchemaStatusOptions ¶
type SchemaStatusOptions struct { CommonOptions PrintFlags *genericclioptions.PrintFlags ToPrinter func(string) (printers.ResourcePrinter, error) Builder *resource.Builder Resources []string Namespace string Name string EnforceNamespace bool RESTClientGetter genericclioptions.RESTClientGetter resource.FilenameOptions genericclioptions.IOStreams // contains filtered or unexported fields }
SchemaStatusOptions holds the options for 'schema history' sub command
func NewSchemaStatusOptions ¶
func NewSchemaStatusOptions(streams genericclioptions.IOStreams) *SchemaStatusOptions
NewSchemaStatusOptions returns an initialized SchemaStatusOptions instance
func (*SchemaStatusOptions) Complete ¶
func (o *SchemaStatusOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes al the required options
func (*SchemaStatusOptions) Run ¶
func (o *SchemaStatusOptions) Run() error
Run performs the execution of 'rollout history' sub command
func (*SchemaStatusOptions) Validate ¶
func (o *SchemaStatusOptions) Validate() error
Validate makes sure all the provided values for command-line options are valid
type SchemaUndoOptions ¶
type SchemaUndoOptions struct { CommonOptions PrintFlags *genericclioptions.PrintFlags ToPrinter func(string) (printers.ResourcePrinter, error) ToRevision int32 Builder *resource.Builder Resources []string Namespace string Name string EnforceNamespace bool RESTClientGetter genericclioptions.RESTClientGetter resource.FilenameOptions genericclioptions.IOStreams // contains filtered or unexported fields }
SchemaUndoOptions holds the options for 'schema history' sub command
func NewSchemaUndoOptions ¶
func NewSchemaUndoOptions(streams genericclioptions.IOStreams) *SchemaUndoOptions
NewSchemaUndoOptions returns an initialized SchemaUndoOptions instance
func (*SchemaUndoOptions) Complete ¶
func (o *SchemaUndoOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes al the required options
func (*SchemaUndoOptions) Run ¶
func (o *SchemaUndoOptions) Run() error
Run performs the execution of 'rollout history' sub command
func (*SchemaUndoOptions) Validate ¶
func (o *SchemaUndoOptions) Validate() error
Validate makes sure all the provided values for command-line options are valid
type SchemaUpdateOptions ¶
type SchemaUpdateOptions struct { CommonOptions PrintFlags *genericclioptions.PrintFlags ToPrinter func(string) (printers.ResourcePrinter, error) Builder *resource.Builder Resources []string Namespace string Name string SchemaFile string EnforceNamespace bool DryRun bool RESTClientGetter genericclioptions.RESTClientGetter resource.FilenameOptions genericclioptions.IOStreams // contains filtered or unexported fields }
SchemaUpdateOptions holds the options for 'schema history' sub command
func NewSchemaUpdateOptions ¶
func NewSchemaUpdateOptions(streams genericclioptions.IOStreams) *SchemaUpdateOptions
NewSchemaUpdateOptions returns an initialized SchemaUpdateOptions instance
func (*SchemaUpdateOptions) Complete ¶
func (o *SchemaUpdateOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes al the required options
func (*SchemaUpdateOptions) Run ¶
func (o *SchemaUpdateOptions) Run() error
Run performs the execution of 'rollout history' sub command
func (*SchemaUpdateOptions) Validate ¶
func (o *SchemaUpdateOptions) Validate() error
Validate makes sure all the provided values for command-line options are valid