package apiresources
import "k8s.io/kubernetes/pkg/kubectl/cmd/apiresources"
Index ¶
- func NewCmdAPIResources(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdAPIVersions(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- type APIResourceOptions
- func NewAPIResourceOptions(ioStreams genericclioptions.IOStreams) *APIResourceOptions
- func (o *APIResourceOptions) Complete(cmd *cobra.Command, args []string) error
- func (o *APIResourceOptions) RunAPIResources(cmd *cobra.Command, f cmdutil.Factory) error
- func (o *APIResourceOptions) Validate() error
- type APIVersionsOptions
Functions ¶
func NewCmdAPIResources ¶
NewCmdAPIResources creates the `api-resources` command
func NewCmdAPIVersions ¶
NewCmdAPIVersions creates the `api-versions` command
Types ¶
type APIResourceOptions ¶
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 ¶
func (o *APIResourceOptions) Complete(cmd *cobra.Command, args []string) error
Complete adapts from the command line args and validates them
func (*APIResourceOptions) RunAPIResources ¶
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 { genericclioptions.IOStreams // contains filtered or unexported fields }
APIVersionsOptions have the data required for API versions
func NewAPIVersionsOptions ¶
func NewAPIVersionsOptions(ioStreams genericclioptions.IOStreams) *APIVersionsOptions
NewAPIVersionsOptions creates the options for APIVersions
func (*APIVersionsOptions) Complete ¶
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
Source Files ¶
apiresources.go apiversions.go
- Version
- v1.14.0
- Published
- Mar 21, 2019
- Platform
- js/wasm
- Imports
- 15 packages
- Last checked
- 2 minutes ago –
Tools for package owners.