token

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdToken

func NewCmdToken(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdToken returns the `echoctl token` command group

func NewCmdTokenCreate

func NewCmdTokenCreate(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdTokenCreate returns a cobra command for creating bootstrap tokens.

func NewCmdTokenDelete

func NewCmdTokenDelete(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdTokenDelete returns a cobra command for deleting a bootstrap token.

func NewCmdTokenList

func NewCmdTokenList(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdTokenList returns a cobra command for listing bootstrap tokens.

Types

type CreateOptions

type CreateOptions struct {
	AdminToken  string
	TTL         string
	MaxUsages   int32
	Description string

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

CreateOptions holds options for the token create command.

func (*CreateOptions) Run

func (o *CreateOptions) Run(ctx context.Context) error

func (*CreateOptions) Validate

func (o *CreateOptions) Validate() error

type DeleteOptions

type DeleteOptions struct {
	AdminToken string
	TokenID    string

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

DeleteOptions holds options for the token delete command.

func (*DeleteOptions) Run

func (o *DeleteOptions) Run(ctx context.Context) error

func (*DeleteOptions) Validate

func (o *DeleteOptions) Validate() error

type ListOptions

type ListOptions struct {
	AdminToken string

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

ListOptions holds options for the token list command.

func (*ListOptions) Run

func (o *ListOptions) Run(ctx context.Context) error

func (*ListOptions) Validate

func (o *ListOptions) Validate() error

Jump to

Keyboard shortcuts

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