v1

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BoundObjectReferenceBlank = (&BoundObjectReferenceDie{}).DieFeed(authenticationv1.BoundObjectReference{})
View Source
var SelfSubjectReviewBlank = (&SelfSubjectReviewDie{}).DieFeed(authenticationv1.SelfSubjectReview{})
View Source
var SelfSubjectReviewStatusBlank = (&SelfSubjectReviewStatusDie{}).DieFeed(authenticationv1.SelfSubjectReviewStatus{})
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) DieDiff added in v0.13.0

func (d *BoundObjectReferenceDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*BoundObjectReferenceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*BoundObjectReferenceDie) DieFeedJSON

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

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

func (*BoundObjectReferenceDie) DieFeedYAML

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

func (*BoundObjectReferenceDie) DieFeedYAMLFile

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) DiePatch added in v0.13.0

func (d *BoundObjectReferenceDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*BoundObjectReferenceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*BoundObjectReferenceDie) DieReleaseJSON

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

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

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

func (*BoundObjectReferenceDie) DieReleaseYAML

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

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

func (*BoundObjectReferenceDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*BoundObjectReferenceDie) DieSealFeed added in v0.13.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*BoundObjectReferenceDie) DieSealFeedPtr added in v0.13.0

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*BoundObjectReferenceDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*BoundObjectReferenceDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*BoundObjectReferenceDie) DieStamp

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

func (*BoundObjectReferenceDie) DieStampAt

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

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 SelfSubjectReviewDie added in v0.13.0

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

func (*SelfSubjectReviewDie) APIVersion added in v0.13.0

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 (*SelfSubjectReviewDie) DeepCopy added in v0.13.0

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

func (*SelfSubjectReviewDie) DeepCopyObject added in v0.13.0

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

func (*SelfSubjectReviewDie) DieDefaultTypeMetadata added in v0.13.0

func (d *SelfSubjectReviewDie) DieDefaultTypeMetadata() *SelfSubjectReviewDie

DieDefaultTypeMetadata sets the APIVersion and Kind to "authentication.k8s.io/v1" and "SelfSubjectReview" respectively.

func (*SelfSubjectReviewDie) DieDiff added in v0.13.0

func (d *SelfSubjectReviewDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*SelfSubjectReviewDie) DieFeed added in v0.13.0

DieFeed returns a new die with the provided resource.

func (*SelfSubjectReviewDie) DieFeedJSON added in v0.13.0

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

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

func (*SelfSubjectReviewDie) DieFeedPtr added in v0.13.0

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

func (*SelfSubjectReviewDie) DieFeedRawExtension added in v0.13.0

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

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

func (*SelfSubjectReviewDie) DieFeedYAML added in v0.13.0

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

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

func (*SelfSubjectReviewDie) DieFeedYAMLFile added in v0.13.0

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

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

func (*SelfSubjectReviewDie) DieImmutable added in v0.13.0

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

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

func (*SelfSubjectReviewDie) DiePatch added in v0.13.0

func (d *SelfSubjectReviewDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*SelfSubjectReviewDie) DieRelease added in v0.13.0

DieRelease returns the resource managed by the die.

func (*SelfSubjectReviewDie) DieReleaseJSON added in v0.13.0

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

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

func (*SelfSubjectReviewDie) DieReleasePtr added in v0.13.0

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

func (*SelfSubjectReviewDie) DieReleaseRawExtension added in v0.13.0

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

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

func (*SelfSubjectReviewDie) DieReleaseUnstructured added in v0.13.0

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

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

func (*SelfSubjectReviewDie) DieReleaseYAML added in v0.13.0

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

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

func (*SelfSubjectReviewDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*SelfSubjectReviewDie) DieSealFeed added in v0.13.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*SelfSubjectReviewDie) DieSealFeedPtr added in v0.13.0

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*SelfSubjectReviewDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*SelfSubjectReviewDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*SelfSubjectReviewDie) DieStamp added in v0.13.0

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

func (*SelfSubjectReviewDie) DieStampAt added in v0.13.0

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

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 (*SelfSubjectReviewDie) DieWith added in v0.13.0

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

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

func (*SelfSubjectReviewDie) GetObjectKind added in v0.13.0

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

func (*SelfSubjectReviewDie) Kind added in v0.13.0

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 (*SelfSubjectReviewDie) MarshalJSON added in v0.13.0

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

func (*SelfSubjectReviewDie) Metadata added in v0.13.0

Metadata standard object's metadata.

func (*SelfSubjectReviewDie) MetadataDie added in v0.13.0

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

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

func (*SelfSubjectReviewDie) Status added in v0.13.0

Status is filled in by the server with the user attributes.

func (*SelfSubjectReviewDie) StatusDie added in v0.13.0

StatusDie stamps the resource's status field with a mutable die.

func (*SelfSubjectReviewDie) TypeMetadata added in v0.13.0

TypeMetadata standard object's type metadata.

func (*SelfSubjectReviewDie) TypeMetadataDie added in v0.13.0

func (d *SelfSubjectReviewDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *SelfSubjectReviewDie

TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.

func (*SelfSubjectReviewDie) UnmarshalJSON added in v0.13.0

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

type SelfSubjectReviewStatusDie added in v0.13.0

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

func (*SelfSubjectReviewStatusDie) DeepCopy added in v0.13.0

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

func (*SelfSubjectReviewStatusDie) DieDiff added in v0.13.0

func (d *SelfSubjectReviewStatusDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*SelfSubjectReviewStatusDie) DieFeed added in v0.13.0

DieFeed returns a new die with the provided resource.

func (*SelfSubjectReviewStatusDie) DieFeedJSON added in v0.13.0

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

func (*SelfSubjectReviewStatusDie) DieFeedPtr added in v0.13.0

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

func (*SelfSubjectReviewStatusDie) DieFeedRawExtension added in v0.13.0

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

func (*SelfSubjectReviewStatusDie) DieFeedYAML added in v0.13.0

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

func (*SelfSubjectReviewStatusDie) DieFeedYAMLFile added in v0.13.0

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

func (*SelfSubjectReviewStatusDie) DieImmutable added in v0.13.0

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

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

func (*SelfSubjectReviewStatusDie) DiePatch added in v0.13.0

func (d *SelfSubjectReviewStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*SelfSubjectReviewStatusDie) DieRelease added in v0.13.0

DieRelease returns the resource managed by the die.

func (*SelfSubjectReviewStatusDie) DieReleaseJSON added in v0.13.0

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

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

func (*SelfSubjectReviewStatusDie) DieReleasePtr added in v0.13.0

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

func (*SelfSubjectReviewStatusDie) DieReleaseRawExtension added in v0.13.0

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

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

func (*SelfSubjectReviewStatusDie) DieReleaseYAML added in v0.13.0

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

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

func (*SelfSubjectReviewStatusDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*SelfSubjectReviewStatusDie) DieSealFeed added in v0.13.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*SelfSubjectReviewStatusDie) DieSealFeedPtr added in v0.13.0

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*SelfSubjectReviewStatusDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*SelfSubjectReviewStatusDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*SelfSubjectReviewStatusDie) DieStamp added in v0.13.0

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

func (*SelfSubjectReviewStatusDie) DieStampAt added in v0.13.0

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

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 (*SelfSubjectReviewStatusDie) DieWith added in v0.13.0

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

func (*SelfSubjectReviewStatusDie) UserInfo added in v0.13.0

User attributes of the user making this request.

func (*SelfSubjectReviewStatusDie) UserInfoDie added in v0.13.0

UserInfoDie mutates UserInfo as a die.

User attributes of the user making this request.

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

BoundObjectRefDie mutates BoundObjectRef as a die.

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) DeepCopy

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

func (*TokenRequestSpecDie) DieDiff added in v0.13.0

func (d *TokenRequestSpecDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*TokenRequestSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*TokenRequestSpecDie) DieFeedJSON

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

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

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

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

func (*TokenRequestSpecDie) DieFeedYAMLFile

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) DiePatch added in v0.13.0

func (d *TokenRequestSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*TokenRequestSpecDie) DieRelease

DieRelease returns the resource managed by the die.

func (*TokenRequestSpecDie) DieReleaseJSON

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

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

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

func (*TokenRequestSpecDie) DieReleaseYAML

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

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

func (*TokenRequestSpecDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*TokenRequestSpecDie) DieSealFeed added in v0.13.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*TokenRequestSpecDie) DieSealFeedPtr added in v0.13.0

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*TokenRequestSpecDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*TokenRequestSpecDie) DieSealReleasePtr added in v0.13.0

func (d *TokenRequestSpecDie) DieSealReleasePtr() *authenticationv1.TokenRequestSpec

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*TokenRequestSpecDie) DieStamp

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

func (*TokenRequestSpecDie) DieStampAt

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

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) DieDiff added in v0.13.0

func (d *TokenRequestStatusDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*TokenRequestStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*TokenRequestStatusDie) DieFeedJSON

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

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

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

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

func (*TokenRequestStatusDie) DieFeedYAMLFile

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) DiePatch added in v0.13.0

func (d *TokenRequestStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*TokenRequestStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*TokenRequestStatusDie) DieReleaseJSON

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

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

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

func (*TokenRequestStatusDie) DieReleaseYAML

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

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

func (*TokenRequestStatusDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*TokenRequestStatusDie) DieSealFeed added in v0.13.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*TokenRequestStatusDie) DieSealFeedPtr added in v0.13.0

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*TokenRequestStatusDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*TokenRequestStatusDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*TokenRequestStatusDie) DieStamp

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

func (*TokenRequestStatusDie) DieStampAt

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

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

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) DieDefaultTypeMetadata added in v0.13.0

func (d *TokenReviewDie) DieDefaultTypeMetadata() *TokenReviewDie

DieDefaultTypeMetadata sets the APIVersion and Kind to "authentication.k8s.io/v1" and "TokenReview" respectively.

func (*TokenReviewDie) DieDiff added in v0.13.0

func (d *TokenReviewDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*TokenReviewDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*TokenReviewDie) DieFeedJSON

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

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

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

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

func (*TokenReviewDie) DieFeedYAMLFile

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) DiePatch added in v0.13.0

func (d *TokenReviewDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*TokenReviewDie) DieRelease

DieRelease returns the resource managed by the die.

func (*TokenReviewDie) DieReleaseJSON

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

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

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

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

func (*TokenReviewDie) DieSeal added in v0.13.0

func (d *TokenReviewDie) DieSeal() *TokenReviewDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*TokenReviewDie) DieSealFeed added in v0.13.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*TokenReviewDie) DieSealFeedPtr added in v0.13.0

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*TokenReviewDie) DieSealRelease added in v0.13.0

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

DieSealRelease returns the sealed resource managed by the die.

func (*TokenReviewDie) DieSealReleasePtr added in v0.13.0

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

DieSealReleasePtr returns the sealed resource pointer managed by the die.

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

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

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

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) Metadata added in v0.13.0

Metadata standard object's metadata.

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) TypeMetadata added in v0.13.0

func (d *TokenReviewDie) TypeMetadata(v apismetav1.TypeMeta) *TokenReviewDie

TypeMetadata standard object's type metadata.

func (*TokenReviewDie) TypeMetadataDie added in v0.13.0

func (d *TokenReviewDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *TokenReviewDie

TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.

func (*TokenReviewDie) UnmarshalJSON

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

type UserInfoDie

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

func (*UserInfoDie) AddExtra

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

func (*UserInfoDie) DeepCopy

func (d *UserInfoDie) DeepCopy() *UserInfoDie

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

func (*UserInfoDie) DieDiff added in v0.13.0

func (d *UserInfoDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*UserInfoDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*UserInfoDie) DieFeedJSON

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

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

func (*UserInfoDie) DieFeedPtr

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

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

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

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

func (*UserInfoDie) DieFeedYAMLFile

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

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

func (*UserInfoDie) DieImmutable

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) DiePatch added in v0.13.0

func (d *UserInfoDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*UserInfoDie) DieRelease

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

DieRelease returns the resource managed by the die.

func (*UserInfoDie) DieReleaseJSON

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

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

func (*UserInfoDie) DieReleasePtr

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

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

func (*UserInfoDie) DieReleaseRawExtension

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

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

func (*UserInfoDie) DieReleaseYAML

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

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

func (*UserInfoDie) DieSeal added in v0.13.0

func (d *UserInfoDie) DieSeal() *UserInfoDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*UserInfoDie) DieSealFeed added in v0.13.0

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

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*UserInfoDie) DieSealFeedPtr added in v0.13.0

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

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*UserInfoDie) DieSealRelease added in v0.13.0

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

DieSealRelease returns the sealed resource managed by the die.

func (*UserInfoDie) DieSealReleasePtr added in v0.13.0

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

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*UserInfoDie) DieStamp

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

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

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

Any additional information provided by the authenticator.

func (*UserInfoDie) Groups

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

The names of groups this user is a part of.

func (*UserInfoDie) UID

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

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