v1

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BoundObjectReferenceBlank = (&BoundObjectReferenceDie{}).DieFeed(authenticationv1.BoundObjectReference{})
View Source
var TokenRequestSpecBlank = (&TokenRequestSpecDie{}).DieFeed(authenticationv1.TokenRequestSpec{})
View Source
var TokenRequestStatusBlank = (&TokenRequestStatusDie{}).DieFeed(authenticationv1.TokenRequestStatus{})
View Source
var TokenReviewBlank = (&TokenReviewDie{}).DieFeed(authenticationv1.TokenReview{})
View Source
var UserInfoBlank = (&UserInfoDie{}).DieFeed(authenticationv1.UserInfo{})

Functions

This section is empty.

Types

type BoundObjectReferenceDie

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

func (*BoundObjectReferenceDie) APIVersion

API version of the referent.

func (*BoundObjectReferenceDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*BoundObjectReferenceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*BoundObjectReferenceDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*BoundObjectReferenceDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*BoundObjectReferenceDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*BoundObjectReferenceDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*BoundObjectReferenceDie) DieFeedYAMLFile added in v0.8.0

func (d *BoundObjectReferenceDie) DieFeedYAMLFile(name string) *BoundObjectReferenceDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*BoundObjectReferenceDie) DieImmutable

func (d *BoundObjectReferenceDie) DieImmutable(immutable bool) *BoundObjectReferenceDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*BoundObjectReferenceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*BoundObjectReferenceDie) DieReleaseJSON added in v0.8.0

func (d *BoundObjectReferenceDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*BoundObjectReferenceDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*BoundObjectReferenceDie) DieReleaseRawExtension added in v0.5.0

func (d *BoundObjectReferenceDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*BoundObjectReferenceDie) DieReleaseYAML added in v0.8.0

func (d *BoundObjectReferenceDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*BoundObjectReferenceDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*BoundObjectReferenceDie) DieStampAt added in v0.8.0

func (d *BoundObjectReferenceDie) DieStampAt(jp string, fn interface{}) *BoundObjectReferenceDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*BoundObjectReferenceDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*BoundObjectReferenceDie) Kind

Kind of the referent. Valid kinds are 'Pod' and 'Secret'.

func (*BoundObjectReferenceDie) Name

Name of the referent.

func (*BoundObjectReferenceDie) UID

UID of the referent.

type TokenRequestSpecDie

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

func (*TokenRequestSpecDie) Audiences

func (d *TokenRequestSpecDie) Audiences(v ...string) *TokenRequestSpecDie

Audiences are the intendend audiences of the token. A recipient of a

token must identify themself with an identifier in the list of

audiences of the token, and otherwise should reject the token. A

token issued for multiple audiences may be used to authenticate

against any of the audiences listed but implies a high degree of

trust between the target audiences.

func (*TokenRequestSpecDie) BoundObjectRef

BoundObjectRef is a reference to an object that the token will be bound to.

The token will only be valid for as long as the bound object exists.

NOTE: The API server's TokenReview endpoint will validate the

BoundObjectRef, but other audiences may not. Keep ExpirationSeconds

small if you want prompt revocation.

func (*TokenRequestSpecDie) BoundObjectRefDie

func (d *TokenRequestSpecDie) BoundObjectRefDie(fn func(d *BoundObjectReferenceDie)) *TokenRequestSpecDie

func (*TokenRequestSpecDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*TokenRequestSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*TokenRequestSpecDie) DieFeedJSON added in v0.8.0

func (d *TokenRequestSpecDie) DieFeedJSON(j []byte) *TokenRequestSpecDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TokenRequestSpecDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TokenRequestSpecDie) DieFeedRawExtension added in v0.5.0

func (d *TokenRequestSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *TokenRequestSpecDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TokenRequestSpecDie) DieFeedYAML added in v0.8.0

func (d *TokenRequestSpecDie) DieFeedYAML(y []byte) *TokenRequestSpecDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TokenRequestSpecDie) DieFeedYAMLFile added in v0.8.0

func (d *TokenRequestSpecDie) DieFeedYAMLFile(name string) *TokenRequestSpecDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*TokenRequestSpecDie) DieImmutable

func (d *TokenRequestSpecDie) DieImmutable(immutable bool) *TokenRequestSpecDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*TokenRequestSpecDie) DieRelease

DieRelease returns the resource managed by the die.

func (*TokenRequestSpecDie) DieReleaseJSON added in v0.8.0

func (d *TokenRequestSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TokenRequestSpecDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TokenRequestSpecDie) DieReleaseRawExtension added in v0.5.0

func (d *TokenRequestSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TokenRequestSpecDie) DieReleaseYAML added in v0.8.0

func (d *TokenRequestSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*TokenRequestSpecDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*TokenRequestSpecDie) DieStampAt added in v0.8.0

func (d *TokenRequestSpecDie) DieStampAt(jp string, fn interface{}) *TokenRequestSpecDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*TokenRequestSpecDie) DieWith added in v0.9.0

func (d *TokenRequestSpecDie) DieWith(fns ...func(d *TokenRequestSpecDie)) *TokenRequestSpecDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*TokenRequestSpecDie) ExpirationSeconds

func (d *TokenRequestSpecDie) ExpirationSeconds(v *int64) *TokenRequestSpecDie

ExpirationSeconds is the requested duration of validity of the request. The

token issuer may return a token with a different validity duration so a

client needs to check the 'expiration' field in a response.

type TokenRequestStatusDie

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

func (*TokenRequestStatusDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*TokenRequestStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*TokenRequestStatusDie) DieFeedJSON added in v0.8.0

func (d *TokenRequestStatusDie) DieFeedJSON(j []byte) *TokenRequestStatusDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TokenRequestStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TokenRequestStatusDie) DieFeedRawExtension added in v0.5.0

func (d *TokenRequestStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *TokenRequestStatusDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TokenRequestStatusDie) DieFeedYAML added in v0.8.0

func (d *TokenRequestStatusDie) DieFeedYAML(y []byte) *TokenRequestStatusDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TokenRequestStatusDie) DieFeedYAMLFile added in v0.8.0

func (d *TokenRequestStatusDie) DieFeedYAMLFile(name string) *TokenRequestStatusDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*TokenRequestStatusDie) DieImmutable

func (d *TokenRequestStatusDie) DieImmutable(immutable bool) *TokenRequestStatusDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*TokenRequestStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*TokenRequestStatusDie) DieReleaseJSON added in v0.8.0

func (d *TokenRequestStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TokenRequestStatusDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TokenRequestStatusDie) DieReleaseRawExtension added in v0.5.0

func (d *TokenRequestStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TokenRequestStatusDie) DieReleaseYAML added in v0.8.0

func (d *TokenRequestStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*TokenRequestStatusDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*TokenRequestStatusDie) DieStampAt added in v0.8.0

func (d *TokenRequestStatusDie) DieStampAt(jp string, fn interface{}) *TokenRequestStatusDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*TokenRequestStatusDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*TokenRequestStatusDie) ExpirationTimestamp

func (d *TokenRequestStatusDie) ExpirationTimestamp(v apismetav1.Time) *TokenRequestStatusDie

ExpirationTimestamp is the time of expiration of the returned token.

func (*TokenRequestStatusDie) Token

Token is the opaque bearer token.

type TokenReviewDie

type TokenReviewDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*TokenReviewDie) APIVersion added in v0.5.0

func (d *TokenReviewDie) APIVersion(v string) *TokenReviewDie

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (*TokenReviewDie) DeepCopy

func (d *TokenReviewDie) DeepCopy() *TokenReviewDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*TokenReviewDie) DeepCopyObject

func (d *TokenReviewDie) DeepCopyObject() runtime.Object

func (*TokenReviewDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*TokenReviewDie) DieFeedJSON added in v0.8.0

func (d *TokenReviewDie) DieFeedJSON(j []byte) *TokenReviewDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TokenReviewDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TokenReviewDie) DieFeedRawExtension added in v0.5.0

func (d *TokenReviewDie) DieFeedRawExtension(raw runtime.RawExtension) *TokenReviewDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TokenReviewDie) DieFeedYAML added in v0.8.0

func (d *TokenReviewDie) DieFeedYAML(y []byte) *TokenReviewDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TokenReviewDie) DieFeedYAMLFile added in v0.8.0

func (d *TokenReviewDie) DieFeedYAMLFile(name string) *TokenReviewDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*TokenReviewDie) DieImmutable

func (d *TokenReviewDie) DieImmutable(immutable bool) *TokenReviewDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*TokenReviewDie) DieRelease

DieRelease returns the resource managed by the die.

func (*TokenReviewDie) DieReleaseJSON added in v0.8.0

func (d *TokenReviewDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TokenReviewDie) DieReleasePtr

func (d *TokenReviewDie) DieReleasePtr() *authenticationv1.TokenReview

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TokenReviewDie) DieReleaseRawExtension added in v0.5.0

func (d *TokenReviewDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TokenReviewDie) DieReleaseUnstructured

func (d *TokenReviewDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*TokenReviewDie) DieReleaseYAML added in v0.8.0

func (d *TokenReviewDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*TokenReviewDie) DieStamp

func (d *TokenReviewDie) DieStamp(fn func(r *authenticationv1.TokenReview)) *TokenReviewDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*TokenReviewDie) DieStampAt added in v0.8.0

func (d *TokenReviewDie) DieStampAt(jp string, fn interface{}) *TokenReviewDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*TokenReviewDie) DieWith added in v0.9.0

func (d *TokenReviewDie) DieWith(fns ...func(d *TokenReviewDie)) *TokenReviewDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*TokenReviewDie) GetObjectKind

func (d *TokenReviewDie) GetObjectKind() schema.ObjectKind

func (*TokenReviewDie) Kind added in v0.5.0

func (d *TokenReviewDie) Kind(v string) *TokenReviewDie

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*TokenReviewDie) MarshalJSON

func (d *TokenReviewDie) MarshalJSON() ([]byte, error)

func (*TokenReviewDie) MetadataDie

func (d *TokenReviewDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *TokenReviewDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*TokenReviewDie) Spec

Spec holds information about the request being evaluated

func (*TokenReviewDie) Status

Status is filled in by the server and indicates whether the request can be authenticated.

func (*TokenReviewDie) UnmarshalJSON

func (d *TokenReviewDie) UnmarshalJSON(b []byte) error

type UserInfoDie added in v0.5.0

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

func (*UserInfoDie) AddExtra added in v0.5.0

func (d *UserInfoDie) AddExtra(key string, value ...string) *UserInfoDie

func (*UserInfoDie) DeepCopy added in v0.5.0

func (d *UserInfoDie) DeepCopy() *UserInfoDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*UserInfoDie) DieFeed added in v0.5.0

DieFeed returns a new die with the provided resource.

func (*UserInfoDie) DieFeedJSON added in v0.8.0

func (d *UserInfoDie) DieFeedJSON(j []byte) *UserInfoDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*UserInfoDie) DieFeedPtr added in v0.5.0

func (d *UserInfoDie) DieFeedPtr(r *authenticationv1.UserInfo) *UserInfoDie

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*UserInfoDie) DieFeedRawExtension added in v0.5.0

func (d *UserInfoDie) DieFeedRawExtension(raw runtime.RawExtension) *UserInfoDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*UserInfoDie) DieFeedYAML added in v0.8.0

func (d *UserInfoDie) DieFeedYAML(y []byte) *UserInfoDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*UserInfoDie) DieFeedYAMLFile added in v0.8.0

func (d *UserInfoDie) DieFeedYAMLFile(name string) *UserInfoDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*UserInfoDie) DieImmutable added in v0.5.0

func (d *UserInfoDie) DieImmutable(immutable bool) *UserInfoDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*UserInfoDie) DieRelease added in v0.5.0

func (d *UserInfoDie) DieRelease() authenticationv1.UserInfo

DieRelease returns the resource managed by the die.

func (*UserInfoDie) DieReleaseJSON added in v0.8.0

func (d *UserInfoDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*UserInfoDie) DieReleasePtr added in v0.5.0

func (d *UserInfoDie) DieReleasePtr() *authenticationv1.UserInfo

DieReleasePtr returns a pointer to the resource managed by the die.

func (*UserInfoDie) DieReleaseRawExtension added in v0.5.0

func (d *UserInfoDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*UserInfoDie) DieReleaseYAML added in v0.8.0

func (d *UserInfoDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*UserInfoDie) DieStamp added in v0.5.0

func (d *UserInfoDie) DieStamp(fn func(r *authenticationv1.UserInfo)) *UserInfoDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*UserInfoDie) DieStampAt added in v0.8.0

func (d *UserInfoDie) DieStampAt(jp string, fn interface{}) *UserInfoDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*UserInfoDie) DieWith added in v0.9.0

func (d *UserInfoDie) DieWith(fns ...func(d *UserInfoDie)) *UserInfoDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*UserInfoDie) Extra added in v0.5.0

Any additional information provided by the authenticator.

func (*UserInfoDie) Groups added in v0.5.0

func (d *UserInfoDie) Groups(v ...string) *UserInfoDie

The names of groups this user is a part of.

func (*UserInfoDie) UID added in v0.5.0

func (d *UserInfoDie) UID(v string) *UserInfoDie

A unique value that identifies this user across time. If this user is

deleted and another user by the same name is added, they will have

different UIDs.

func (*UserInfoDie) Username added in v0.5.0

func (d *UserInfoDie) Username(v string) *UserInfoDie

The name that uniquely identifies this user among all active users.

Jump to

Keyboard shortcuts

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