kubetoken

package
v0.0.0-...-06d3161 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

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

Cmd generates a kubernetes token for a given namespace

func NewKubetokenCmd

func NewKubetokenCmd(optFunc ...kubetokenOption) *Cmd

NewKubetokenCmd returns a new cobra command

func (*Cmd) Cmd

func (kc *Cmd) Cmd() *cobra.Command

func (*Cmd) Run

func (kc *Cmd) Run(ctx context.Context, flags Flags) error

Run executes the kubetoken command

type Flags

type Flags struct {
	Namespace string
	Context   string
}

Flags represents the flags available for kubetoken

type Options

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

Options represents the options for kubetoken

type Serializer

type Serializer struct{}

func (*Serializer) ToJson

func (*Serializer) ToJson(kubetoken types.KubeTokenResponse) (string, error)

Jump to

Keyboard shortcuts

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