package auth
import "k8s.io/kubernetes/pkg/kubectl/cmd/auth"
Index ¶
- func NewCmdAuth(f cmdutil.Factory, out, errOut io.Writer) *cobra.Command
- func NewCmdCanI(f cmdutil.Factory, out, err io.Writer) *cobra.Command
- type CanIOptions
Functions ¶
func NewCmdAuth ¶
func NewCmdCanI ¶
Types ¶
type CanIOptions ¶
type CanIOptions struct { AllNamespaces bool Quiet bool Namespace string SelfSARClient internalauthorizationclient.SelfSubjectAccessReviewsGetter Verb string Resource schema.GroupVersionResource 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
Source Files ¶
auth.go cani.go
- Version
- v1.6.3-beta.0
- Published
- Apr 19, 2017
- Platform
- js/wasm
- Imports
- 14 packages
- Last checked
- 6 minutes ago –
Tools for package owners.