Documentation
¶
Index ¶
- Variables
- type BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) APIVersion(v string) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DeepCopy() *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DieSealFeed(r authenticationv1.BoundObjectReference) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DieSealFeedPtr(r *authenticationv1.BoundObjectReference) *BoundObjectReferenceDie
- func (d *BoundObjectReferenceDie) DieSealRelease() authenticationv1.BoundObjectReference
- func (d *BoundObjectReferenceDie) DieSealReleasePtr() *authenticationv1.BoundObjectReference
- 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 SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) APIVersion(v string) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) DeepCopy() *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) DeepCopyObject() runtime.Object
- func (d *SelfSubjectReviewDie) DieDefaultTypeMetadata() *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) DieDiff(opts ...cmp.Option) string
- func (d *SelfSubjectReviewDie) DieFeed(r authenticationv1.SelfSubjectReview) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) DieFeedJSON(j []byte) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) DieFeedPtr(r *authenticationv1.SelfSubjectReview) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) DieFeedRawExtension(raw runtime.RawExtension) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) DieFeedYAML(y []byte) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) DieFeedYAMLFile(name string) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) DieImmutable(immutable bool) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *SelfSubjectReviewDie) DieRelease() authenticationv1.SelfSubjectReview
- func (d *SelfSubjectReviewDie) DieReleaseJSON() []byte
- func (d *SelfSubjectReviewDie) DieReleasePtr() *authenticationv1.SelfSubjectReview
- func (d *SelfSubjectReviewDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *SelfSubjectReviewDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *SelfSubjectReviewDie) DieReleaseYAML() []byte
- func (d *SelfSubjectReviewDie) DieSeal() *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) DieSealFeed(r authenticationv1.SelfSubjectReview) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) DieSealFeedPtr(r *authenticationv1.SelfSubjectReview) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) DieSealRelease() authenticationv1.SelfSubjectReview
- func (d *SelfSubjectReviewDie) DieSealReleasePtr() *authenticationv1.SelfSubjectReview
- func (d *SelfSubjectReviewDie) DieStamp(fn func(r *authenticationv1.SelfSubjectReview)) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) DieStampAt(jp string, fn interface{}) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) DieWith(fns ...func(d *SelfSubjectReviewDie)) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) GetObjectKind() schema.ObjectKind
- func (d *SelfSubjectReviewDie) Kind(v string) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) MarshalJSON() ([]byte, error)
- func (d *SelfSubjectReviewDie) Metadata(v apismetav1.ObjectMeta) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) Status(v authenticationv1.SelfSubjectReviewStatus) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) StatusDie(fn func(d *SelfSubjectReviewStatusDie)) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) TypeMetadata(v apismetav1.TypeMeta) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *SelfSubjectReviewDie
- func (d *SelfSubjectReviewDie) UnmarshalJSON(b []byte) error
- type SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) DeepCopy() *SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) DieDiff(opts ...cmp.Option) string
- func (d *SelfSubjectReviewStatusDie) DieFeed(r authenticationv1.SelfSubjectReviewStatus) *SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) DieFeedJSON(j []byte) *SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) DieFeedPtr(r *authenticationv1.SelfSubjectReviewStatus) *SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) DieFeedYAML(y []byte) *SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) DieFeedYAMLFile(name string) *SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) DieImmutable(immutable bool) *SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *SelfSubjectReviewStatusDie) DieRelease() authenticationv1.SelfSubjectReviewStatus
- func (d *SelfSubjectReviewStatusDie) DieReleaseJSON() []byte
- func (d *SelfSubjectReviewStatusDie) DieReleasePtr() *authenticationv1.SelfSubjectReviewStatus
- func (d *SelfSubjectReviewStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *SelfSubjectReviewStatusDie) DieReleaseYAML() []byte
- func (d *SelfSubjectReviewStatusDie) DieSeal() *SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) DieSealFeed(r authenticationv1.SelfSubjectReviewStatus) *SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) DieSealFeedPtr(r *authenticationv1.SelfSubjectReviewStatus) *SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) DieSealRelease() authenticationv1.SelfSubjectReviewStatus
- func (d *SelfSubjectReviewStatusDie) DieSealReleasePtr() *authenticationv1.SelfSubjectReviewStatus
- func (d *SelfSubjectReviewStatusDie) DieStamp(fn func(r *authenticationv1.SelfSubjectReviewStatus)) *SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) DieStampAt(jp string, fn interface{}) *SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) DieWith(fns ...func(d *SelfSubjectReviewStatusDie)) *SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) UserInfo(v authenticationv1.UserInfo) *SelfSubjectReviewStatusDie
- func (d *SelfSubjectReviewStatusDie) UserInfoDie(fn func(d *UserInfoDie)) *SelfSubjectReviewStatusDie
- 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) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) DieSealFeed(r authenticationv1.TokenRequestSpec) *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) DieSealFeedPtr(r *authenticationv1.TokenRequestSpec) *TokenRequestSpecDie
- func (d *TokenRequestSpecDie) DieSealRelease() authenticationv1.TokenRequestSpec
- func (d *TokenRequestSpecDie) DieSealReleasePtr() *authenticationv1.TokenRequestSpec
- 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) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *TokenRequestStatusDie
- func (d *TokenRequestStatusDie) DieSealFeed(r authenticationv1.TokenRequestStatus) *TokenRequestStatusDie
- func (d *TokenRequestStatusDie) DieSealFeedPtr(r *authenticationv1.TokenRequestStatus) *TokenRequestStatusDie
- func (d *TokenRequestStatusDie) DieSealRelease() authenticationv1.TokenRequestStatus
- func (d *TokenRequestStatusDie) DieSealReleasePtr() *authenticationv1.TokenRequestStatus
- 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) DieDefaultTypeMetadata() *TokenReviewDie
- func (d *TokenReviewDie) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *TokenReviewDie
- func (d *TokenReviewDie) DieSealFeed(r authenticationv1.TokenReview) *TokenReviewDie
- func (d *TokenReviewDie) DieSealFeedPtr(r *authenticationv1.TokenReview) *TokenReviewDie
- func (d *TokenReviewDie) DieSealRelease() authenticationv1.TokenReview
- func (d *TokenReviewDie) DieSealReleasePtr() *authenticationv1.TokenReview
- 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) Metadata(v apismetav1.ObjectMeta) *TokenReviewDie
- 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) TypeMetadata(v apismetav1.TypeMeta) *TokenReviewDie
- func (d *TokenReviewDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *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) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *UserInfoDie
- func (d *UserInfoDie) DieSealFeed(r authenticationv1.UserInfo) *UserInfoDie
- func (d *UserInfoDie) DieSealFeedPtr(r *authenticationv1.UserInfo) *UserInfoDie
- func (d *UserInfoDie) DieSealRelease() authenticationv1.UserInfo
- func (d *UserInfoDie) DieSealReleasePtr() *authenticationv1.UserInfo
- 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 SelfSubjectReviewBlank = (&SelfSubjectReviewDie{}).DieFeed(authenticationv1.SelfSubjectReview{})
var SelfSubjectReviewStatusBlank = (&SelfSubjectReviewStatusDie{}).DieFeed(authenticationv1.SelfSubjectReviewStatus{})
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) 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 ¶
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) 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 ¶
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) DieSeal ¶ added in v0.13.0
func (d *BoundObjectReferenceDie) DieSeal() *BoundObjectReferenceDie
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
func (d *BoundObjectReferenceDie) DieSealFeed(r authenticationv1.BoundObjectReference) *BoundObjectReferenceDie
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
func (d *BoundObjectReferenceDie) DieSealFeedPtr(r *authenticationv1.BoundObjectReference) *BoundObjectReferenceDie
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
func (d *BoundObjectReferenceDie) DieSealRelease() authenticationv1.BoundObjectReference
DieSealRelease returns the sealed resource managed by the die.
func (*BoundObjectReferenceDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *BoundObjectReferenceDie) DieSealReleasePtr() *authenticationv1.BoundObjectReference
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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 SelfSubjectReviewDie ¶ added in v0.13.0
type SelfSubjectReviewDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*SelfSubjectReviewDie) APIVersion ¶ added in v0.13.0
func (d *SelfSubjectReviewDie) APIVersion(v string) *SelfSubjectReviewDie
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
func (d *SelfSubjectReviewDie) DeepCopy() *SelfSubjectReviewDie
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
func (d *SelfSubjectReviewDie) DieFeed(r authenticationv1.SelfSubjectReview) *SelfSubjectReviewDie
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
func (d *SelfSubjectReviewDie) DieFeedPtr(r *authenticationv1.SelfSubjectReview) *SelfSubjectReviewDie
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
func (d *SelfSubjectReviewDie) DieRelease() authenticationv1.SelfSubjectReview
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
func (d *SelfSubjectReviewDie) DieReleasePtr() *authenticationv1.SelfSubjectReview
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
func (d *SelfSubjectReviewDie) DieSeal() *SelfSubjectReviewDie
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
func (d *SelfSubjectReviewDie) DieSealFeed(r authenticationv1.SelfSubjectReview) *SelfSubjectReviewDie
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
func (d *SelfSubjectReviewDie) DieSealFeedPtr(r *authenticationv1.SelfSubjectReview) *SelfSubjectReviewDie
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
func (d *SelfSubjectReviewDie) DieSealRelease() authenticationv1.SelfSubjectReview
DieSealRelease returns the sealed resource managed by the die.
func (*SelfSubjectReviewDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *SelfSubjectReviewDie) DieSealReleasePtr() *authenticationv1.SelfSubjectReview
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*SelfSubjectReviewDie) DieStamp ¶ added in v0.13.0
func (d *SelfSubjectReviewDie) DieStamp(fn func(r *authenticationv1.SelfSubjectReview)) *SelfSubjectReviewDie
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
func (d *SelfSubjectReviewDie) Kind(v string) *SelfSubjectReviewDie
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
func (d *SelfSubjectReviewDie) Metadata(v apismetav1.ObjectMeta) *SelfSubjectReviewDie
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
func (d *SelfSubjectReviewDie) Status(v authenticationv1.SelfSubjectReviewStatus) *SelfSubjectReviewDie
Status is filled in by the server with the user attributes.
func (*SelfSubjectReviewDie) StatusDie ¶ added in v0.13.0
func (d *SelfSubjectReviewDie) StatusDie(fn func(d *SelfSubjectReviewStatusDie)) *SelfSubjectReviewDie
StatusDie stamps the resource's status field with a mutable die.
func (*SelfSubjectReviewDie) TypeMetadata ¶ added in v0.13.0
func (d *SelfSubjectReviewDie) TypeMetadata(v apismetav1.TypeMeta) *SelfSubjectReviewDie
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
func (d *SelfSubjectReviewStatusDie) DeepCopy() *SelfSubjectReviewStatusDie
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
func (d *SelfSubjectReviewStatusDie) DieFeed(r authenticationv1.SelfSubjectReviewStatus) *SelfSubjectReviewStatusDie
DieFeed returns a new die with the provided resource.
func (*SelfSubjectReviewStatusDie) DieFeedJSON ¶ added in v0.13.0
func (d *SelfSubjectReviewStatusDie) DieFeedJSON(j []byte) *SelfSubjectReviewStatusDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*SelfSubjectReviewStatusDie) DieFeedPtr ¶ added in v0.13.0
func (d *SelfSubjectReviewStatusDie) DieFeedPtr(r *authenticationv1.SelfSubjectReviewStatus) *SelfSubjectReviewStatusDie
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
func (d *SelfSubjectReviewStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *SelfSubjectReviewStatusDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SelfSubjectReviewStatusDie) DieFeedYAML ¶ added in v0.13.0
func (d *SelfSubjectReviewStatusDie) DieFeedYAML(y []byte) *SelfSubjectReviewStatusDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*SelfSubjectReviewStatusDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *SelfSubjectReviewStatusDie) DieFeedYAMLFile(name string) *SelfSubjectReviewStatusDie
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
func (d *SelfSubjectReviewStatusDie) DieRelease() authenticationv1.SelfSubjectReviewStatus
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
func (d *SelfSubjectReviewStatusDie) DieReleasePtr() *authenticationv1.SelfSubjectReviewStatus
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
func (d *SelfSubjectReviewStatusDie) DieSeal() *SelfSubjectReviewStatusDie
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
func (d *SelfSubjectReviewStatusDie) DieSealFeed(r authenticationv1.SelfSubjectReviewStatus) *SelfSubjectReviewStatusDie
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
func (d *SelfSubjectReviewStatusDie) DieSealFeedPtr(r *authenticationv1.SelfSubjectReviewStatus) *SelfSubjectReviewStatusDie
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
func (d *SelfSubjectReviewStatusDie) DieSealRelease() authenticationv1.SelfSubjectReviewStatus
DieSealRelease returns the sealed resource managed by the die.
func (*SelfSubjectReviewStatusDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *SelfSubjectReviewStatusDie) DieSealReleasePtr() *authenticationv1.SelfSubjectReviewStatus
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*SelfSubjectReviewStatusDie) DieStamp ¶ added in v0.13.0
func (d *SelfSubjectReviewStatusDie) DieStamp(fn func(r *authenticationv1.SelfSubjectReviewStatus)) *SelfSubjectReviewStatusDie
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
func (d *SelfSubjectReviewStatusDie) DieWith(fns ...func(d *SelfSubjectReviewStatusDie)) *SelfSubjectReviewStatusDie
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
func (d *SelfSubjectReviewStatusDie) UserInfo(v authenticationv1.UserInfo) *SelfSubjectReviewStatusDie
User attributes of the user making this request.
func (*SelfSubjectReviewStatusDie) UserInfoDie ¶ added in v0.13.0
func (d *SelfSubjectReviewStatusDie) UserInfoDie(fn func(d *UserInfoDie)) *SelfSubjectReviewStatusDie
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 ¶
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
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 ¶
func (d *TokenRequestSpecDie) DeepCopy() *TokenRequestSpecDie
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 ¶
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) 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 ¶
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) DieSeal ¶ added in v0.13.0
func (d *TokenRequestSpecDie) DieSeal() *TokenRequestSpecDie
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
func (d *TokenRequestSpecDie) DieSealFeed(r authenticationv1.TokenRequestSpec) *TokenRequestSpecDie
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
func (d *TokenRequestSpecDie) DieSealFeedPtr(r *authenticationv1.TokenRequestSpec) *TokenRequestSpecDie
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
func (d *TokenRequestSpecDie) DieSealRelease() authenticationv1.TokenRequestSpec
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 ¶
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) 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 ¶
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) 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 ¶
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) DieSeal ¶ added in v0.13.0
func (d *TokenRequestStatusDie) DieSeal() *TokenRequestStatusDie
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
func (d *TokenRequestStatusDie) DieSealFeed(r authenticationv1.TokenRequestStatus) *TokenRequestStatusDie
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
func (d *TokenRequestStatusDie) DieSealFeedPtr(r *authenticationv1.TokenRequestStatus) *TokenRequestStatusDie
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
func (d *TokenRequestStatusDie) DieSealRelease() authenticationv1.TokenRequestStatus
DieSealRelease returns the sealed resource managed by the die.
func (*TokenRequestStatusDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *TokenRequestStatusDie) DieSealReleasePtr() *authenticationv1.TokenRequestStatus
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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) 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 ¶
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) 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 ¶
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) 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
func (d *TokenReviewDie) DieSealFeed(r authenticationv1.TokenReview) *TokenReviewDie
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
func (d *TokenReviewDie) DieSealFeedPtr(r *authenticationv1.TokenReview) *TokenReviewDie
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
func (d *TokenReviewDie) Metadata(v apismetav1.ObjectMeta) *TokenReviewDie
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 ¶
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) 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 ¶
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) 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 ¶
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.