seedidentity

package
v1.105.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserType added in v1.77.0

type UserType string

UserType is used for distinguishing between clients running on a seed cluster when authenticating against the garden cluster.

const (
	// UserTypeGardenlet is the UserType of a gardenlet client.
	UserTypeGardenlet UserType = "gardenlet"
	// UserTypeExtension is the UserType of a extension client.
	UserTypeExtension UserType = "extension"
)

func FromAuthenticationV1UserInfo

func FromAuthenticationV1UserInfo(userInfo authenticationv1.UserInfo) (string, bool, UserType)

FromAuthenticationV1UserInfo converts an authenticationv1.UserInfo structure to the user.Info interface and calls FromUserInfoInterface to return the seed name.

func FromCertificateSigningRequest added in v1.23.0

func FromCertificateSigningRequest(csr *x509.CertificateRequest) (string, bool, UserType)

FromCertificateSigningRequest converts a *x509.CertificateRequest structure to the user.Info interface and calls FromUserInfoInterface to return the seed name.

func FromUserInfoInterface

func FromUserInfoInterface(u user.Info) (string, bool, UserType)

FromUserInfoInterface returns the seed name, a boolean indicating whether the provided user is a seed client, and the client's UserType.

Jump to

Keyboard shortcuts

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