privilege

package
v0.0.0-...-4a9a683 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Query

type Query struct {
	// contains filtered or unexported fields
}

Query contains data to search for a subject roles / cluster roles and result formating (JSON or YAML)

func NewQuery

func NewQuery() *Query

NewQuery query constructor

func (*Query) Client

func (q *Query) Client(c kubernetes.Interface) *Query

Client configures the k8s client

func (*Query) Do

func (q *Query) Do() ([]byte, error)

Do executes the query and formats the result

func (*Query) ResultFormat

func (q *Query) ResultFormat(f string) *Query

ResultFormat configures the query result format

func (*Query) Subjects

func (q *Query) Subjects(s []string) *Query

Subjects configures the query subjects

Jump to

Keyboard shortcuts

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