apiresources

package
v1.14.5-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdAPIResources

func NewCmdAPIResources(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdAPIResources creates the `api-resources` command

func NewCmdAPIVersions

func NewCmdAPIVersions(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdAPIVersions creates the `api-versions` command

Types

type APIResourceOptions added in v1.14.0

type APIResourceOptions struct {
	Output     string
	APIGroup   string
	Namespaced bool
	Verbs      []string
	NoHeaders  bool
	Cached     bool

	genericclioptions.IOStreams
}

APIResourceOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()

func NewAPIResourceOptions

func NewAPIResourceOptions(ioStreams genericclioptions.IOStreams) *APIResourceOptions

NewAPIResourceOptions creates the options for APIResource

func (*APIResourceOptions) Complete added in v1.14.0

func (o *APIResourceOptions) Complete(cmd *cobra.Command, args []string) error

Complete adapts from the command line args and validates them

func (*APIResourceOptions) RunAPIResources added in v1.14.0

func (o *APIResourceOptions) RunAPIResources(cmd *cobra.Command, f cmdutil.Factory) error

RunAPIResources does the work

func (*APIResourceOptions) Validate added in v1.14.0

func (o *APIResourceOptions) Validate() error

Validate checks to the APIResourceOptions to see if there is sufficient information run the command

type APIVersionsOptions added in v1.14.0

type APIVersionsOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

APIVersionsOptions have the data required for API versions

func NewAPIVersionsOptions added in v1.14.0

func NewAPIVersionsOptions(ioStreams genericclioptions.IOStreams) *APIVersionsOptions

NewAPIVersionsOptions creates the options for APIVersions

func (*APIVersionsOptions) Complete added in v1.14.0

func (o *APIVersionsOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete adapts from the command line args and factory to the data required

func (*APIVersionsOptions) RunAPIVersions added in v1.14.0

func (o *APIVersionsOptions) RunAPIVersions() error

RunAPIVersions does the work

Jump to

Keyboard shortcuts

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