Documentation
¶
Index ¶
- Variables
- type BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) APIVersion(v string) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DeepCopy() *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DieFeed(r authenticationv1.BoundObjectReference) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DieFeedJSON(j []byte) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DieFeedPtr(r *authenticationv1.BoundObjectReference) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DieFeedRawExtension(raw runtime.RawExtension) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DieFeedYAML(y []byte) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DieFeedYAMLFile(name string) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DieImmutable(immutable bool) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DieRelease() authenticationv1.BoundObjectReference
- func (d *BoundObjectReferenceDie) DieReleaseJSON() []byte
- func (d *BoundObjectReferenceDie) DieReleasePtr() *authenticationv1.BoundObjectReference
- func (d *BoundObjectReferenceDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *BoundObjectReferenceDie) DieReleaseYAML() []byte
- func (d *BoundObjectReferenceDie) DieStamp(fn func(r *authenticationv1.BoundObjectReference)) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DieStampAt(jp string, fn interface{}) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DieWith(fns ...func(d *BoundObjectReferenceDie)) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) Kind(v string) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) Name(v string) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) UID(v types.UID) *BoundObjectReferenceDie
- type TokenRequestSpecDie
- func (d *TokenRequestSpecDie) Audiences(v ...string) *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) BoundObjectRef(v *authenticationv1.BoundObjectReference) *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) BoundObjectRefDie(fn func(d *BoundObjectReferenceDie)) *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) DeepCopy() *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) DieFeed(r authenticationv1.TokenRequestSpec) *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) DieFeedJSON(j []byte) *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) DieFeedPtr(r *authenticationv1.TokenRequestSpec) *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) DieFeedYAML(y []byte) *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) DieFeedYAMLFile(name string) *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) DieImmutable(immutable bool) *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) DieRelease() authenticationv1.TokenRequestSpec
- func (d *TokenRequestSpecDie) DieReleaseJSON() []byte
- func (d *TokenRequestSpecDie) DieReleasePtr() *authenticationv1.TokenRequestSpec
- func (d *TokenRequestSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *TokenRequestSpecDie) DieReleaseYAML() []byte
- func (d *TokenRequestSpecDie) DieStamp(fn func(r *authenticationv1.TokenRequestSpec)) *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) DieStampAt(jp string, fn interface{}) *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) DieWith(fns ...func(d *TokenRequestSpecDie)) *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) ExpirationSeconds(v *int64) *TokenRequestSpecDie
- type TokenRequestStatusDie
- func (d *TokenRequestStatusDie) DeepCopy() *TokenRequestStatusDie
- func (d *TokenRequestStatusDie) DieFeed(r authenticationv1.TokenRequestStatus) *TokenRequestStatusDie
- func (d *TokenRequestStatusDie) DieFeedJSON(j []byte) *TokenRequestStatusDie
- func (d *TokenRequestStatusDie) DieFeedPtr(r *authenticationv1.TokenRequestStatus) *TokenRequestStatusDie
- func (d *TokenRequestStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *TokenRequestStatusDie
- func (d *TokenRequestStatusDie) DieFeedYAML(y []byte) *TokenRequestStatusDie
- func (d *TokenRequestStatusDie) DieFeedYAMLFile(name string) *TokenRequestStatusDie
- func (d *TokenRequestStatusDie) DieImmutable(immutable bool) *TokenRequestStatusDie
- func (d *TokenRequestStatusDie) DieRelease() authenticationv1.TokenRequestStatus
- func (d *TokenRequestStatusDie) DieReleaseJSON() []byte
- func (d *TokenRequestStatusDie) DieReleasePtr() *authenticationv1.TokenRequestStatus
- func (d *TokenRequestStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *TokenRequestStatusDie) DieReleaseYAML() []byte
- func (d *TokenRequestStatusDie) DieStamp(fn func(r *authenticationv1.TokenRequestStatus)) *TokenRequestStatusDie
- func (d *TokenRequestStatusDie) DieStampAt(jp string, fn interface{}) *TokenRequestStatusDie
- func (d *TokenRequestStatusDie) DieWith(fns ...func(d *TokenRequestStatusDie)) *TokenRequestStatusDie
- func (d *TokenRequestStatusDie) ExpirationTimestamp(v apismetav1.Time) *TokenRequestStatusDie
- func (d *TokenRequestStatusDie) Token(v string) *TokenRequestStatusDie
- type TokenReviewDie
- func (d *TokenReviewDie) APIVersion(v string) *TokenReviewDie
- func (d *TokenReviewDie) DeepCopy() *TokenReviewDie
- func (d *TokenReviewDie) DeepCopyObject() runtime.Object
- func (d *TokenReviewDie) DieFeed(r authenticationv1.TokenReview) *TokenReviewDie
- func (d *TokenReviewDie) DieFeedJSON(j []byte) *TokenReviewDie
- func (d *TokenReviewDie) DieFeedPtr(r *authenticationv1.TokenReview) *TokenReviewDie
- func (d *TokenReviewDie) DieFeedRawExtension(raw runtime.RawExtension) *TokenReviewDie
- func (d *TokenReviewDie) DieFeedYAML(y []byte) *TokenReviewDie
- func (d *TokenReviewDie) DieFeedYAMLFile(name string) *TokenReviewDie
- func (d *TokenReviewDie) DieImmutable(immutable bool) *TokenReviewDie
- func (d *TokenReviewDie) DieRelease() authenticationv1.TokenReview
- func (d *TokenReviewDie) DieReleaseJSON() []byte
- func (d *TokenReviewDie) DieReleasePtr() *authenticationv1.TokenReview
- func (d *TokenReviewDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *TokenReviewDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *TokenReviewDie) DieReleaseYAML() []byte
- func (d *TokenReviewDie) DieStamp(fn func(r *authenticationv1.TokenReview)) *TokenReviewDie
- func (d *TokenReviewDie) DieStampAt(jp string, fn interface{}) *TokenReviewDie
- func (d *TokenReviewDie) DieWith(fns ...func(d *TokenReviewDie)) *TokenReviewDie
- func (d *TokenReviewDie) GetObjectKind() schema.ObjectKind
- func (d *TokenReviewDie) Kind(v string) *TokenReviewDie
- func (d *TokenReviewDie) MarshalJSON() ([]byte, error)
- func (d *TokenReviewDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *TokenReviewDie
- func (d *TokenReviewDie) Spec(v authenticationv1.TokenReviewSpec) *TokenReviewDie
- func (d *TokenReviewDie) Status(v authenticationv1.TokenReviewStatus) *TokenReviewDie
- func (d *TokenReviewDie) UnmarshalJSON(b []byte) error
- type UserInfoDie
- func (d *UserInfoDie) AddExtra(key string, value ...string) *UserInfoDie
- func (d *UserInfoDie) DeepCopy() *UserInfoDie
- func (d *UserInfoDie) DieFeed(r authenticationv1.UserInfo) *UserInfoDie
- func (d *UserInfoDie) DieFeedJSON(j []byte) *UserInfoDie
- func (d *UserInfoDie) DieFeedPtr(r *authenticationv1.UserInfo) *UserInfoDie
- func (d *UserInfoDie) DieFeedRawExtension(raw runtime.RawExtension) *UserInfoDie
- func (d *UserInfoDie) DieFeedYAML(y []byte) *UserInfoDie
- func (d *UserInfoDie) DieFeedYAMLFile(name string) *UserInfoDie
- func (d *UserInfoDie) DieImmutable(immutable bool) *UserInfoDie
- func (d *UserInfoDie) DieRelease() authenticationv1.UserInfo
- func (d *UserInfoDie) DieReleaseJSON() []byte
- func (d *UserInfoDie) DieReleasePtr() *authenticationv1.UserInfo
- func (d *UserInfoDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *UserInfoDie) DieReleaseYAML() []byte
- func (d *UserInfoDie) DieStamp(fn func(r *authenticationv1.UserInfo)) *UserInfoDie
- func (d *UserInfoDie) DieStampAt(jp string, fn interface{}) *UserInfoDie
- func (d *UserInfoDie) DieWith(fns ...func(d *UserInfoDie)) *UserInfoDie
- func (d *UserInfoDie) Extra(v map[string]authenticationv1.ExtraValue) *UserInfoDie
- func (d *UserInfoDie) Groups(v ...string) *UserInfoDie
- func (d *UserInfoDie) UID(v string) *UserInfoDie
- func (d *UserInfoDie) Username(v string) *UserInfoDie
Constants ¶
This section is empty.
Variables ¶
var BoundObjectReferenceBlank = (&BoundObjectReferenceDie{}).DieFeed(authenticationv1.BoundObjectReference{})
var TokenRequestSpecBlank = (&TokenRequestSpecDie{}).DieFeed(authenticationv1.TokenRequestSpec{})
var TokenRequestStatusBlank = (&TokenRequestStatusDie{}).DieFeed(authenticationv1.TokenRequestStatus{})
var TokenReviewBlank = (&TokenReviewDie{}).DieFeed(authenticationv1.TokenReview{})
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 ¶
func (d *BoundObjectReferenceDie) APIVersion(v string) *BoundObjectReferenceDie
API version of the referent.
func (*BoundObjectReferenceDie) DeepCopy ¶
func (d *BoundObjectReferenceDie) DeepCopy() *BoundObjectReferenceDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*BoundObjectReferenceDie) DieFeed ¶
func (d *BoundObjectReferenceDie) DieFeed(r authenticationv1.BoundObjectReference) *BoundObjectReferenceDie
DieFeed returns a new die with the provided resource.
func (*BoundObjectReferenceDie) DieFeedJSON ¶
func (d *BoundObjectReferenceDie) DieFeedJSON(j []byte) *BoundObjectReferenceDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*BoundObjectReferenceDie) DieFeedPtr ¶
func (d *BoundObjectReferenceDie) DieFeedPtr(r *authenticationv1.BoundObjectReference) *BoundObjectReferenceDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*BoundObjectReferenceDie) DieFeedRawExtension ¶
func (d *BoundObjectReferenceDie) DieFeedRawExtension(raw runtime.RawExtension) *BoundObjectReferenceDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*BoundObjectReferenceDie) DieFeedYAML ¶
func (d *BoundObjectReferenceDie) DieFeedYAML(y []byte) *BoundObjectReferenceDie
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) DieRelease ¶
func (d *BoundObjectReferenceDie) DieRelease() authenticationv1.BoundObjectReference
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 ¶
func (d *BoundObjectReferenceDie) DieReleasePtr() *authenticationv1.BoundObjectReference
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) DieStamp ¶
func (d *BoundObjectReferenceDie) DieStamp(fn func(r *authenticationv1.BoundObjectReference)) *BoundObjectReferenceDie
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 ¶
func (d *BoundObjectReferenceDie) DieWith(fns ...func(d *BoundObjectReferenceDie)) *BoundObjectReferenceDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*BoundObjectReferenceDie) Kind ¶
func (d *BoundObjectReferenceDie) Kind(v string) *BoundObjectReferenceDie
Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
func (*BoundObjectReferenceDie) Name ¶
func (d *BoundObjectReferenceDie) Name(v string) *BoundObjectReferenceDie
Name of the referent.
func (*BoundObjectReferenceDie) UID ¶
func (d *BoundObjectReferenceDie) UID(v types.UID) *BoundObjectReferenceDie
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 ¶
func (d *TokenRequestSpecDie) BoundObjectRef(v *authenticationv1.BoundObjectReference) *TokenRequestSpecDie
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 ¶
func (d *TokenRequestSpecDie) DeepCopy() *TokenRequestSpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*TokenRequestSpecDie) DieFeed ¶
func (d *TokenRequestSpecDie) DieFeed(r authenticationv1.TokenRequestSpec) *TokenRequestSpecDie
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 ¶
func (d *TokenRequestSpecDie) DieFeedPtr(r *authenticationv1.TokenRequestSpec) *TokenRequestSpecDie
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) DieRelease ¶
func (d *TokenRequestSpecDie) DieRelease() authenticationv1.TokenRequestSpec
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 ¶
func (d *TokenRequestSpecDie) DieReleasePtr() *authenticationv1.TokenRequestSpec
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) DieStamp ¶
func (d *TokenRequestSpecDie) DieStamp(fn func(r *authenticationv1.TokenRequestSpec)) *TokenRequestSpecDie
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 ¶
func (d *TokenRequestStatusDie) DeepCopy() *TokenRequestStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*TokenRequestStatusDie) DieFeed ¶
func (d *TokenRequestStatusDie) DieFeed(r authenticationv1.TokenRequestStatus) *TokenRequestStatusDie
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 ¶
func (d *TokenRequestStatusDie) DieFeedPtr(r *authenticationv1.TokenRequestStatus) *TokenRequestStatusDie
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) DieRelease ¶
func (d *TokenRequestStatusDie) DieRelease() authenticationv1.TokenRequestStatus
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 ¶
func (d *TokenRequestStatusDie) DieReleasePtr() *authenticationv1.TokenRequestStatus
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) DieStamp ¶
func (d *TokenRequestStatusDie) DieStamp(fn func(r *authenticationv1.TokenRequestStatus)) *TokenRequestStatusDie
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 ¶
func (d *TokenRequestStatusDie) DieWith(fns ...func(d *TokenRequestStatusDie)) *TokenRequestStatusDie
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 ¶
func (d *TokenRequestStatusDie) Token(v string) *TokenRequestStatusDie
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) DieFeed ¶
func (d *TokenReviewDie) DieFeed(r authenticationv1.TokenReview) *TokenReviewDie
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 ¶
func (d *TokenReviewDie) DieFeedPtr(r *authenticationv1.TokenReview) *TokenReviewDie
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) DieRelease ¶
func (d *TokenReviewDie) DieRelease() authenticationv1.TokenReview
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) 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) 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 ¶
func (d *TokenReviewDie) Spec(v authenticationv1.TokenReviewSpec) *TokenReviewDie
Spec holds information about the request being evaluated
func (*TokenReviewDie) Status ¶
func (d *TokenReviewDie) Status(v authenticationv1.TokenReviewStatus) *TokenReviewDie
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 ¶
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) DieFeed ¶
func (d *UserInfoDie) DieFeed(r authenticationv1.UserInfo) *UserInfoDie
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) 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) 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 ¶
func (d *UserInfoDie) Extra(v map[string]authenticationv1.ExtraValue) *UserInfoDie
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.