Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RakkessOptions ¶
type RakkessOptions struct { ConfigFlags *genericclioptions.ConfigFlags Verbs []string AsServiceAccount string OutputFormat string Streams *genericclioptions.IOStreams }
RakkessOptions holds all user configuration options.
func NewRakkessOptions ¶
func NewRakkessOptions() *RakkessOptions
NewRakkessOptions creates RakkessOptions with defaults.
func NewTestRakkessOptions ¶
Sets up options with in-memory buffers as in- and output-streams
func (*RakkessOptions) DiscoveryClient ¶
func (o *RakkessOptions) DiscoveryClient() (discovery.CachedDiscoveryInterface, error)
DiscoveryClient creates a kubernetes discovery client.
func (*RakkessOptions) ExpandServiceAccount ¶
func (o *RakkessOptions) ExpandServiceAccount() error
func (*RakkessOptions) ExpandVerbs ¶
func (o *RakkessOptions) ExpandVerbs()
ExpandVerbs expands wildcard verbs `*` and `all`.
func (*RakkessOptions) GetAuthClient ¶
func (o *RakkessOptions) GetAuthClient() (v1.SelfSubjectAccessReviewInterface, error)
GetAuthClient creates a client for SelfSubjectAccessReviews with high queries per second.
Click to show internal directories.
Click to hide internal directories.