k8s

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelAccountID                    = "account.nauth.io/id"
	LabelAccountSignedBy              = "account.nauth.io/signed-by"
	LabelUserID                       = "user.nauth.io/id"
	LabelUserAccountID                = "user.nauth.io/account-id"
	LabelUserSignedBy                 = "user.nauth.io/signed-by"
	LabelSecretType                   = "nauth.io/secret-type"
	LabelManaged                      = "nauth.io/managed"
	LabelManagedValue                 = "true"
	LabelManagementPolicy             = "nauth.io/management-policy"
	LabelManagementPolicyObserveValue = "observe"
)
View Source
const (
	DeprecatedSecretNameAccountRootTemplate = "%s-ac-root"
	DeprecatedSecretNameAccountSignTemplate = "%s-ac-sign"
)
View Source
const (
	SecretTypeAccountRoot            = "account-root"
	SecretTypeAccountSign            = "account-sign"
	SecretTypeOperatorSign           = "operator-sign"
	SecretTypeSystemAccountUserCreds = "system-account-user-creds"
	SecretTypeUserCredentials        = "user-creds"
	DefaultSecretKeyName             = "default"
	UserCredentialSecretKeyName      = "user.creds"
)

Variables

View Source
var (
	ErrNoAccountFound  = errors.New("no account found")
	ErrAccountNotReady = errors.New("account is not ready")
	ErrNotFound        = errors.New("not found")
)

Functions

This section is empty.

Types

type AccountClient

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

func NewAccountClient

func NewAccountClient(client client.Client) *AccountClient

func (*AccountClient) Get

func (a *AccountClient) Get(ctx context.Context, accountRefName string, namespace string) (account *v1alpha1.Account, err error)

Gets the referenced Account Requires the account to be reconciled and ready

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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