options

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

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

func NewTestRakkessOptions() (*RakkessOptions, *bytes.Buffer, *bytes.Buffer, *bytes.Buffer)

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

GetAuthClient creates a client for SelfSubjectAccessReviews with high queries per second.

Jump to

Keyboard shortcuts

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