rancherutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RancherKeyBaseURL        = "baseURL"
	RancherKeyToken          = "token"
	RancherKeyTokenState     = "token.state"
	RancherKeyTokenNext      = "token.next"
	RancherKeyTokenExpiresAt = "token.expiresAt"
)

Variables

This section is empty.

Functions

func RenewToken

func RenewToken(ctx context.Context, rc *rancher.Client, kc client.Client, sec *core.Secret, state string) (*rancher.Token, error)

Types

type RancherToken

type RancherToken struct {
	UserID    string
	TokenID   string
	Token     string
	ExpiresAt time.Time
}

func FindToken

func FindToken(ctx context.Context, sec *core.Secret, state string) (*rancher.Client, *RancherToken, error)

Jump to

Keyboard shortcuts

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