kubernetes: k8s.io/kubernetes/pkg/kubectl/cmd/apiresources Index | Files

package apiresources

import "k8s.io/kubernetes/pkg/kubectl/cmd/apiresources"


Package Files

apiresources.go apiversions.go

func NewCmdAPIResources Uses

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

NewCmdAPIResources creates the `api-resources` command

func NewCmdAPIVersions Uses

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

NewCmdAPIVersions creates the `api-versions` command

type APIResourceOptions Uses

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


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 Uses

func NewAPIResourceOptions(ioStreams genericclioptions.IOStreams) *APIResourceOptions

NewAPIResourceOptions creates the options for APIResource

func (*APIResourceOptions) Complete Uses

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

Complete adapts from the command line args and validates them

func (*APIResourceOptions) RunAPIResources Uses

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

RunAPIResources does the work

func (*APIResourceOptions) Validate Uses

func (o *APIResourceOptions) Validate() error

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

type APIVersionsOptions Uses

type APIVersionsOptions struct {
    // contains filtered or unexported fields

APIVersionsOptions have the data required for API versions

func NewAPIVersionsOptions Uses

func NewAPIVersionsOptions(ioStreams genericclioptions.IOStreams) *APIVersionsOptions

NewAPIVersionsOptions creates the options for APIVersions

func (*APIVersionsOptions) Complete Uses

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 Uses

func (o *APIVersionsOptions) RunAPIVersions() error

RunAPIVersions does the work

Package apiresources imports 15 packages (graph) and is imported by 10 packages. Updated 2019-07-08. Refresh now. Tools for package owners.