token

package
v0.29.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JoinScriptEndpointAnnotation = "vcluster.loft.sh/join-script-endpoint"
)

Functions

func CreateBootstrapToken

func CreateBootstrapToken(ctx context.Context, vClient *kubernetes.Clientset, expires string, controlPlane bool) (string, string, string, string, error)

CreateBootstrapToken attempts to create a token with the given ID. Its public because it's used in e2e tests.

func NewCreateCmd

func NewCreateCmd(globalFlags *flags.GlobalFlags) *cobra.Command

func NewDeleteCmd

func NewDeleteCmd(globalFlags *flags.GlobalFlags) *cobra.Command

func NewListCmd

func NewListCmd(globalFlags *flags.GlobalFlags) *cobra.Command

func NewTokenCmd

func NewTokenCmd(globalFlags *flags.GlobalFlags) *cobra.Command

Types

type CreateCmd

type CreateCmd struct {
	*flags.GlobalFlags

	Expires      string
	Kubeadm      bool
	ControlPlane bool
	Log          log.Logger
}

func (*CreateCmd) Run

func (cmd *CreateCmd) Run(ctx context.Context) error

type DeleteCmd

type DeleteCmd struct {
	*flags.GlobalFlags

	Log log.Logger
}

func (*DeleteCmd) Run

func (cmd *DeleteCmd) Run(ctx context.Context, args []string) error

type ListCmd

type ListCmd struct {
	*flags.GlobalFlags

	Output string

	Log log.Logger
}

func (*ListCmd) Run

func (cmd *ListCmd) Run(ctx context.Context) error

type Token

type Token struct {
	ID      string
	Created time.Time
	Expires string
}

Jump to

Keyboard shortcuts

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