auth

package
v1.13.3-k3s.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdAuth

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

func NewCmdCanI

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

func NewCmdReconcile

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

Types

type CanIOptions

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

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

	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

func (*CanIOptions) RunAccessCheck

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

func (*CanIOptions) Validate

func (o *CanIOptions) Validate() error

type ReconcileOptions

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

func NewReconcileOptions(ioStreams genericclioptions.IOStreams) *ReconcileOptions

func (*ReconcileOptions) Complete

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

func (*ReconcileOptions) RunReconcile

func (o *ReconcileOptions) RunReconcile() error

func (*ReconcileOptions) Validate

func (o *ReconcileOptions) Validate() error

Jump to

Keyboard shortcuts

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