auth

package
v1.7.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: May 5, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdAuth

func NewCmdAuth(f cmdutil.Factory, out, errOut io.Writer) *cobra.Command

func NewCmdCanI

func NewCmdCanI(f cmdutil.Factory, out, err io.Writer) *cobra.Command

Types

type CanIOptions

type CanIOptions struct {
	AllNamespaces bool
	Quiet         bool
	Namespace     string
	SelfSARClient internalauthorizationclient.SelfSubjectAccessReviewsGetter

	Verb         string
	Resource     schema.GroupVersionResource
	Subresource  string
	ResourceName string

	Out io.Writer
	Err io.Writer
}

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

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

func (*CanIOptions) RunAccessCheck

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

func (*CanIOptions) Validate

func (o *CanIOptions) Validate() error

Jump to

Keyboard shortcuts

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