schemaop

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

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

func Version

func Version() *cobra.Command

Version returns the operator CLI version TODO: get the build version

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL