kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/auth/cani.go

type CanIOptions

var canILong

var canIExample

var resourceVerbs

var nonResourceURLVerbs

var nonStandardResourceNames

// NewCmdCanI returns an initialized Command for 'auth can-i' sub command
func NewCmdCanI(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command {}

// Complete completes all the required options
func (o *CanIOptions) Complete(f cmdutil.Factory, args []string) error {}

// Validate makes sure provided values for CanIOptions are valid
func (o *CanIOptions) Validate() error {}

// RunAccessList lists all the access current user has
func (o *CanIOptions) RunAccessList() error {}

// RunAccessCheck checks if user has access to a certain resource or non resource URL
func (o *CanIOptions) RunAccessCheck() (bool, error) {}

func (o *CanIOptions) resourceFor(mapper meta.RESTMapper, resourceArg string) schema.GroupVersionResource {}

func (o *CanIOptions) printStatus(status authorizationv1.SubjectRulesReviewStatus) error {}

func convertToPolicyRule(status authorizationv1.SubjectRulesReviewStatus) []rbacv1.PolicyRule {}

func printAccessHeaders(out io.Writer) error {}

func printAccess(out io.Writer, rules []rbacv1.PolicyRule) error {}

func isNamespaced(gvr schema.GroupVersionResource, discoveryClient discovery.DiscoveryInterface) (bool, error) {}

func isKnownResourceVerb(s string) bool {}

func isKnownNonResourceVerb(s string) bool {}