Help us shape the future of Go! Take the 2026 Go Developer Survey

validation

package
v1.153.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetSubClaimPrefixAndDelimiterFunc = func() (string, string) {
	delimiter := ":"
	return strings.Join([]string{"gardener.cloud", "workloadidentity"}, delimiter), delimiter
}

GetSubClaimPrefixAndDelimiterFunc is func providing the prefix value for the 'sub' claim and the delimiter used to concatenate the various parts.

Functions

func ValidateCredentialsBinding

func ValidateCredentialsBinding(binding *security.CredentialsBinding) field.ErrorList

ValidateCredentialsBinding validates a CredentialsBinding.

func ValidateCredentialsBindingProvider

func ValidateCredentialsBindingProvider(provider security.CredentialsBindingProvider, fldPath *field.Path) field.ErrorList

ValidateCredentialsBindingProvider validates a CredentialsBindingProvider object.

func ValidateCredentialsBindingUpdate

func ValidateCredentialsBindingUpdate(newBinding, oldBinding *security.CredentialsBinding) field.ErrorList

ValidateCredentialsBindingUpdate validates a CredentialsBinding object before an update.

func ValidateTokenRequest

func ValidateTokenRequest(request *security.TokenRequest) field.ErrorList

ValidateTokenRequest validates a TokenRequest.

func ValidateWorkloadIdentity

func ValidateWorkloadIdentity(workloadIdentity *security.WorkloadIdentity) field.ErrorList

ValidateWorkloadIdentity validates a WorkloadIdentity.

func ValidateWorkloadIdentityUpdate

func ValidateWorkloadIdentityUpdate(newWorkloadIdentity, oldWorkloadIdentity *security.WorkloadIdentity) field.ErrorList

ValidateWorkloadIdentityUpdate validates a WorkloadIdentity object before an update.

Types

This section is empty.

Jump to

Keyboard shortcuts

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