apiresources

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdAPIResources

func NewCmdAPIResources(restClientGetter genericclioptions.RESTClientGetter, ioStreams genericiooptions.IOStreams) *cobra.Command

NewCmdAPIResources creates the `api-resources` command

func NewCmdAPIVersions

func NewCmdAPIVersions(restClientGetter genericclioptions.RESTClientGetter, ioStreams genericiooptions.IOStreams) *cobra.Command

NewCmdAPIVersions creates the `api-versions` command

Types

type APIResourceOptions

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

	genericiooptions.IOStreams
	// contains filtered or unexported fields
}

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 genericiooptions.IOStreams) *APIResourceOptions

NewAPIResourceOptions creates the options for APIResource

func (*APIResourceOptions) Complete

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

Complete adapts from the command line args and validates them

func (*APIResourceOptions) RunAPIResources

func (o *APIResourceOptions) RunAPIResources() error

RunAPIResources does the work

func (*APIResourceOptions) Validate

func (o *APIResourceOptions) Validate() error

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

type APIVersionsOptions

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

APIVersionsOptions have the data required for API versions

func NewAPIVersionsOptions

func NewAPIVersionsOptions(ioStreams genericiooptions.IOStreams) *APIVersionsOptions

NewAPIVersionsOptions creates the options for APIVersions

func (*APIVersionsOptions) Complete

func (o *APIVersionsOptions) Complete(restClientGetter genericclioptions.RESTClientGetter, cmd *cobra.Command, args []string) error

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

func (*APIVersionsOptions) RunAPIVersions

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