 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func NewCmdAuth(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCanI(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdReconcile(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- type CanIOptions
- type ReconcileOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdAuth ¶
NewCmdAuth returns an initialized Command instance for 'auth' sub command
func NewCmdCanI ¶
NewCmdCanI returns an initialized Command for 'auth can-i' sub command
func NewCmdReconcile ¶ added in v1.8.0
NewCmdReconcile holds the options for 'auth reconcile' sub command
Types ¶
type CanIOptions ¶
type CanIOptions struct {
	AllNamespaces bool
	Quiet         bool
	NoHeaders     bool
	Namespace     string
	AuthClient    authorizationv1client.AuthorizationV1Interface
	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 ¶
func (o *CanIOptions) Complete(f cmdutil.Factory, args []string) error
Complete completes all the required options
func (*CanIOptions) RunAccessCheck ¶
func (o *CanIOptions) RunAccessCheck() (bool, error)
RunAccessCheck checks if user has access to a certain resource or non resource URL
func (*CanIOptions) RunAccessList ¶ added in v1.14.0
func (o *CanIOptions) RunAccessList() error
RunAccessList lists all the access current user has
func (*CanIOptions) Validate ¶
func (o *CanIOptions) Validate() error
Validate makes sure provided values for CanIOptions are valid
type ReconcileOptions ¶ added in v1.8.0
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 ¶ added in v1.11.0
func NewReconcileOptions(ioStreams genericclioptions.IOStreams) *ReconcileOptions
NewReconcileOptions returns a new ReconcileOptions instance
func (*ReconcileOptions) RunReconcile ¶ added in v1.8.0
func (o *ReconcileOptions) RunReconcile() error
RunReconcile performs the execution
func (*ReconcileOptions) Validate ¶ added in v1.8.0
func (o *ReconcileOptions) Validate() error
Validate makes sure provided values for ReconcileOptions are valid