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

package auth

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

Index

Package Files

auth.go cani.go reconcile.go

func NewCmdAuth Uses

func NewCmdAuth(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewCmdAuth returns an initialized Command instance for 'auth' sub command

func NewCmdCanI Uses

func NewCmdCanI(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewCmdCanI returns an initialized Command for 'auth can-i' sub command

func NewCmdReconcile Uses

func NewCmdReconcile(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewCmdReconcile holds the options for 'auth reconcile' sub command

type CanIOptions Uses

type CanIOptions struct {
    AllNamespaces   bool
    Quiet           bool
    NoHeaders       bool
    Namespace       string
    AuthClient      authorizationv1client.AuthorizationV1Interface
    DiscoveryClient discovery.DiscoveryInterface

    Verb           string
    Resource       schema.GroupVersionResource
    NonResourceURL string
    Subresource    string
    ResourceName   string
    List           bool

    genericclioptions.IOStreams
}

CanIOptions 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 (*CanIOptions) Complete Uses

func (o *CanIOptions) Complete(f cmdutil.Factory, args []string) error

Complete completes all the required options

func (*CanIOptions) RunAccessCheck Uses

func (o *CanIOptions) RunAccessCheck() (bool, error)

RunAccessCheck checks if user has access to a certain resource or non resource URL

func (*CanIOptions) RunAccessList Uses

func (o *CanIOptions) RunAccessList() error

RunAccessList lists all the access current user has

func (*CanIOptions) Validate Uses

func (o *CanIOptions) Validate() error

Validate makes sure provided values for CanIOptions are valid

type ReconcileOptions Uses

type ReconcileOptions struct {
    PrintFlags             *genericclioptions.PrintFlags
    FilenameOptions        *resource.FilenameOptions
    DryRun                 bool
    RemoveExtraPermissions bool
    RemoveExtraSubjects    bool

    Visitor         resource.Visitor
    RBACClient      rbacv1client.RbacV1Interface
    NamespaceClient corev1client.CoreV1Interface

    PrintObject printers.ResourcePrinterFunc

    genericclioptions.IOStreams
}

ReconcileOptions 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 NewReconcileOptions Uses

func NewReconcileOptions(ioStreams genericclioptions.IOStreams) *ReconcileOptions

NewReconcileOptions returns a new ReconcileOptions instance

func (*ReconcileOptions) Complete Uses

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

Complete completes all the required options

func (*ReconcileOptions) RunReconcile Uses

func (o *ReconcileOptions) RunReconcile() error

RunReconcile performs the execution

func (*ReconcileOptions) Validate Uses

func (o *ReconcileOptions) Validate() error

Validate makes sure provided values for ReconcileOptions are valid

Package auth imports 31 packages (graph) and is imported by 18 packages. Updated 2019-08-10. Refresh now. Tools for package owners.