Documentation
¶
Index ¶
- Variables
- type FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) DeepCopy() *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) DieDiff(opts ...cmp.Option) string
- func (d *FieldSelectorAttributesDie) DieFeed(r authorizationv1.FieldSelectorAttributes) *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) DieFeedJSON(j []byte) *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) DieFeedPtr(r *authorizationv1.FieldSelectorAttributes) *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) DieFeedRawExtension(raw runtime.RawExtension) *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) DieFeedYAML(y []byte) *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) DieFeedYAMLFile(name string) *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) DieImmutable(immutable bool) *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *FieldSelectorAttributesDie) DieRelease() authorizationv1.FieldSelectorAttributes
- func (d *FieldSelectorAttributesDie) DieReleaseJSON() []byte
- func (d *FieldSelectorAttributesDie) DieReleasePtr() *authorizationv1.FieldSelectorAttributes
- func (d *FieldSelectorAttributesDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *FieldSelectorAttributesDie) DieReleaseYAML() []byte
- func (d *FieldSelectorAttributesDie) DieSeal() *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) DieSealFeed(r authorizationv1.FieldSelectorAttributes) *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) DieSealFeedPtr(r *authorizationv1.FieldSelectorAttributes) *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) DieSealRelease() authorizationv1.FieldSelectorAttributes
- func (d *FieldSelectorAttributesDie) DieSealReleasePtr() *authorizationv1.FieldSelectorAttributes
- func (d *FieldSelectorAttributesDie) DieStamp(fn func(r *authorizationv1.FieldSelectorAttributes)) *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) DieStampAt(jp string, fn interface{}) *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) DieWith(fns ...func(d *FieldSelectorAttributesDie)) *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) RawSelector(v string) *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) Requirements(v ...apismetav1.FieldSelectorRequirement) *FieldSelectorAttributesDie
- func (d *FieldSelectorAttributesDie) RequirementsDie(v ...*metav1.FieldSelectorRequirementDie) *FieldSelectorAttributesDie
- type LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) DeepCopy() *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) DieDiff(opts ...cmp.Option) string
- func (d *LabelSelectorAttributesDie) DieFeed(r authorizationv1.LabelSelectorAttributes) *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) DieFeedJSON(j []byte) *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) DieFeedPtr(r *authorizationv1.LabelSelectorAttributes) *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) DieFeedRawExtension(raw runtime.RawExtension) *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) DieFeedYAML(y []byte) *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) DieFeedYAMLFile(name string) *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) DieImmutable(immutable bool) *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *LabelSelectorAttributesDie) DieRelease() authorizationv1.LabelSelectorAttributes
- func (d *LabelSelectorAttributesDie) DieReleaseJSON() []byte
- func (d *LabelSelectorAttributesDie) DieReleasePtr() *authorizationv1.LabelSelectorAttributes
- func (d *LabelSelectorAttributesDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *LabelSelectorAttributesDie) DieReleaseYAML() []byte
- func (d *LabelSelectorAttributesDie) DieSeal() *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) DieSealFeed(r authorizationv1.LabelSelectorAttributes) *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) DieSealFeedPtr(r *authorizationv1.LabelSelectorAttributes) *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) DieSealRelease() authorizationv1.LabelSelectorAttributes
- func (d *LabelSelectorAttributesDie) DieSealReleasePtr() *authorizationv1.LabelSelectorAttributes
- func (d *LabelSelectorAttributesDie) DieStamp(fn func(r *authorizationv1.LabelSelectorAttributes)) *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) DieStampAt(jp string, fn interface{}) *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) DieWith(fns ...func(d *LabelSelectorAttributesDie)) *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) RawSelector(v string) *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) Requirements(v ...apismetav1.LabelSelectorRequirement) *LabelSelectorAttributesDie
- func (d *LabelSelectorAttributesDie) RequirementsDie(v ...*metav1.LabelSelectorRequirementDie) *LabelSelectorAttributesDie
- type LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) APIVersion(v string) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) DeepCopy() *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) DeepCopyObject() runtime.Object
- func (d *LocalSubjectAccessReviewDie) DieDefaultTypeMetadata() *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) DieDiff(opts ...cmp.Option) string
- func (d *LocalSubjectAccessReviewDie) DieFeed(r authorizationv1.LocalSubjectAccessReview) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) DieFeedJSON(j []byte) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) DieFeedPtr(r *authorizationv1.LocalSubjectAccessReview) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) DieFeedRawExtension(raw runtime.RawExtension) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) DieFeedYAML(y []byte) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) DieFeedYAMLFile(name string) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) DieImmutable(immutable bool) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *LocalSubjectAccessReviewDie) DieRelease() authorizationv1.LocalSubjectAccessReview
- func (d *LocalSubjectAccessReviewDie) DieReleaseJSON() []byte
- func (d *LocalSubjectAccessReviewDie) DieReleasePtr() *authorizationv1.LocalSubjectAccessReview
- func (d *LocalSubjectAccessReviewDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *LocalSubjectAccessReviewDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *LocalSubjectAccessReviewDie) DieReleaseYAML() []byte
- func (d *LocalSubjectAccessReviewDie) DieSeal() *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) DieSealFeed(r authorizationv1.LocalSubjectAccessReview) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) DieSealFeedPtr(r *authorizationv1.LocalSubjectAccessReview) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) DieSealRelease() authorizationv1.LocalSubjectAccessReview
- func (d *LocalSubjectAccessReviewDie) DieSealReleasePtr() *authorizationv1.LocalSubjectAccessReview
- func (d *LocalSubjectAccessReviewDie) DieStamp(fn func(r *authorizationv1.LocalSubjectAccessReview)) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) DieStampAt(jp string, fn interface{}) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) DieWith(fns ...func(d *LocalSubjectAccessReviewDie)) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) GetObjectKind() schema.ObjectKind
- func (d *LocalSubjectAccessReviewDie) Kind(v string) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) MarshalJSON() ([]byte, error)
- func (d *LocalSubjectAccessReviewDie) Metadata(v apismetav1.ObjectMeta) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) Spec(v authorizationv1.SubjectAccessReviewSpec) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) Status(v authorizationv1.SubjectAccessReviewStatus) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) TypeMetadata(v apismetav1.TypeMeta) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *LocalSubjectAccessReviewDie
- func (d *LocalSubjectAccessReviewDie) UnmarshalJSON(b []byte) error
- type NonResourceAttributesDie
- func (d *NonResourceAttributesDie) DeepCopy() *NonResourceAttributesDie
- func (d *NonResourceAttributesDie) DieDiff(opts ...cmp.Option) string
- func (d *NonResourceAttributesDie) DieFeed(r authorizationv1.NonResourceAttributes) *NonResourceAttributesDie
- func (d *NonResourceAttributesDie) DieFeedJSON(j []byte) *NonResourceAttributesDie
- func (d *NonResourceAttributesDie) DieFeedPtr(r *authorizationv1.NonResourceAttributes) *NonResourceAttributesDie
- func (d *NonResourceAttributesDie) DieFeedRawExtension(raw runtime.RawExtension) *NonResourceAttributesDie
- func (d *NonResourceAttributesDie) DieFeedYAML(y []byte) *NonResourceAttributesDie
- func (d *NonResourceAttributesDie) DieFeedYAMLFile(name string) *NonResourceAttributesDie
- func (d *NonResourceAttributesDie) DieImmutable(immutable bool) *NonResourceAttributesDie
- func (d *NonResourceAttributesDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *NonResourceAttributesDie) DieRelease() authorizationv1.NonResourceAttributes
- func (d *NonResourceAttributesDie) DieReleaseJSON() []byte
- func (d *NonResourceAttributesDie) DieReleasePtr() *authorizationv1.NonResourceAttributes
- func (d *NonResourceAttributesDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *NonResourceAttributesDie) DieReleaseYAML() []byte
- func (d *NonResourceAttributesDie) DieSeal() *NonResourceAttributesDie
- func (d *NonResourceAttributesDie) DieSealFeed(r authorizationv1.NonResourceAttributes) *NonResourceAttributesDie
- func (d *NonResourceAttributesDie) DieSealFeedPtr(r *authorizationv1.NonResourceAttributes) *NonResourceAttributesDie
- func (d *NonResourceAttributesDie) DieSealRelease() authorizationv1.NonResourceAttributes
- func (d *NonResourceAttributesDie) DieSealReleasePtr() *authorizationv1.NonResourceAttributes
- func (d *NonResourceAttributesDie) DieStamp(fn func(r *authorizationv1.NonResourceAttributes)) *NonResourceAttributesDie
- func (d *NonResourceAttributesDie) DieStampAt(jp string, fn interface{}) *NonResourceAttributesDie
- func (d *NonResourceAttributesDie) DieWith(fns ...func(d *NonResourceAttributesDie)) *NonResourceAttributesDie
- func (d *NonResourceAttributesDie) Path(v string) *NonResourceAttributesDie
- func (d *NonResourceAttributesDie) Verb(v string) *NonResourceAttributesDie
- type NonResourceRuleDie
- func (d *NonResourceRuleDie) DeepCopy() *NonResourceRuleDie
- func (d *NonResourceRuleDie) DieDiff(opts ...cmp.Option) string
- func (d *NonResourceRuleDie) DieFeed(r authorizationv1.NonResourceRule) *NonResourceRuleDie
- func (d *NonResourceRuleDie) DieFeedJSON(j []byte) *NonResourceRuleDie
- func (d *NonResourceRuleDie) DieFeedPtr(r *authorizationv1.NonResourceRule) *NonResourceRuleDie
- func (d *NonResourceRuleDie) DieFeedRawExtension(raw runtime.RawExtension) *NonResourceRuleDie
- func (d *NonResourceRuleDie) DieFeedYAML(y []byte) *NonResourceRuleDie
- func (d *NonResourceRuleDie) DieFeedYAMLFile(name string) *NonResourceRuleDie
- func (d *NonResourceRuleDie) DieImmutable(immutable bool) *NonResourceRuleDie
- func (d *NonResourceRuleDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *NonResourceRuleDie) DieRelease() authorizationv1.NonResourceRule
- func (d *NonResourceRuleDie) DieReleaseJSON() []byte
- func (d *NonResourceRuleDie) DieReleasePtr() *authorizationv1.NonResourceRule
- func (d *NonResourceRuleDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *NonResourceRuleDie) DieReleaseYAML() []byte
- func (d *NonResourceRuleDie) DieSeal() *NonResourceRuleDie
- func (d *NonResourceRuleDie) DieSealFeed(r authorizationv1.NonResourceRule) *NonResourceRuleDie
- func (d *NonResourceRuleDie) DieSealFeedPtr(r *authorizationv1.NonResourceRule) *NonResourceRuleDie
- func (d *NonResourceRuleDie) DieSealRelease() authorizationv1.NonResourceRule
- func (d *NonResourceRuleDie) DieSealReleasePtr() *authorizationv1.NonResourceRule
- func (d *NonResourceRuleDie) DieStamp(fn func(r *authorizationv1.NonResourceRule)) *NonResourceRuleDie
- func (d *NonResourceRuleDie) DieStampAt(jp string, fn interface{}) *NonResourceRuleDie
- func (d *NonResourceRuleDie) DieWith(fns ...func(d *NonResourceRuleDie)) *NonResourceRuleDie
- func (d *NonResourceRuleDie) NonResourceURLs(v ...string) *NonResourceRuleDie
- func (d *NonResourceRuleDie) Verbs(v ...string) *NonResourceRuleDie
- type ResourceAttributesDie
- func (d *ResourceAttributesDie) DeepCopy() *ResourceAttributesDie
- func (d *ResourceAttributesDie) DieDiff(opts ...cmp.Option) string
- func (d *ResourceAttributesDie) DieFeed(r authorizationv1.ResourceAttributes) *ResourceAttributesDie
- func (d *ResourceAttributesDie) DieFeedJSON(j []byte) *ResourceAttributesDie
- func (d *ResourceAttributesDie) DieFeedPtr(r *authorizationv1.ResourceAttributes) *ResourceAttributesDie
- func (d *ResourceAttributesDie) DieFeedRawExtension(raw runtime.RawExtension) *ResourceAttributesDie
- func (d *ResourceAttributesDie) DieFeedYAML(y []byte) *ResourceAttributesDie
- func (d *ResourceAttributesDie) DieFeedYAMLFile(name string) *ResourceAttributesDie
- func (d *ResourceAttributesDie) DieImmutable(immutable bool) *ResourceAttributesDie
- func (d *ResourceAttributesDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ResourceAttributesDie) DieRelease() authorizationv1.ResourceAttributes
- func (d *ResourceAttributesDie) DieReleaseJSON() []byte
- func (d *ResourceAttributesDie) DieReleasePtr() *authorizationv1.ResourceAttributes
- func (d *ResourceAttributesDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ResourceAttributesDie) DieReleaseYAML() []byte
- func (d *ResourceAttributesDie) DieSeal() *ResourceAttributesDie
- func (d *ResourceAttributesDie) DieSealFeed(r authorizationv1.ResourceAttributes) *ResourceAttributesDie
- func (d *ResourceAttributesDie) DieSealFeedPtr(r *authorizationv1.ResourceAttributes) *ResourceAttributesDie
- func (d *ResourceAttributesDie) DieSealRelease() authorizationv1.ResourceAttributes
- func (d *ResourceAttributesDie) DieSealReleasePtr() *authorizationv1.ResourceAttributes
- func (d *ResourceAttributesDie) DieStamp(fn func(r *authorizationv1.ResourceAttributes)) *ResourceAttributesDie
- func (d *ResourceAttributesDie) DieStampAt(jp string, fn interface{}) *ResourceAttributesDie
- func (d *ResourceAttributesDie) DieWith(fns ...func(d *ResourceAttributesDie)) *ResourceAttributesDie
- func (d *ResourceAttributesDie) FieldSelector(v *authorizationv1.FieldSelectorAttributes) *ResourceAttributesDie
- func (d *ResourceAttributesDie) FieldSelectorDie(fn func(d *FieldSelectorAttributesDie)) *ResourceAttributesDie
- func (d *ResourceAttributesDie) Group(v string) *ResourceAttributesDie
- func (d *ResourceAttributesDie) LabelSelector(v *authorizationv1.LabelSelectorAttributes) *ResourceAttributesDie
- func (d *ResourceAttributesDie) LabelSelectorDie(fn func(d *LabelSelectorAttributesDie)) *ResourceAttributesDie
- func (d *ResourceAttributesDie) Name(v string) *ResourceAttributesDie
- func (d *ResourceAttributesDie) Namespace(v string) *ResourceAttributesDie
- func (d *ResourceAttributesDie) Resource(v string) *ResourceAttributesDie
- func (d *ResourceAttributesDie) Subresource(v string) *ResourceAttributesDie
- func (d *ResourceAttributesDie) Verb(v string) *ResourceAttributesDie
- func (d *ResourceAttributesDie) Version(v string) *ResourceAttributesDie
- type ResourceRuleDie
- func (d *ResourceRuleDie) APIGroups(v ...string) *ResourceRuleDie
- func (d *ResourceRuleDie) DeepCopy() *ResourceRuleDie
- func (d *ResourceRuleDie) DieDiff(opts ...cmp.Option) string
- func (d *ResourceRuleDie) DieFeed(r authorizationv1.ResourceRule) *ResourceRuleDie
- func (d *ResourceRuleDie) DieFeedJSON(j []byte) *ResourceRuleDie
- func (d *ResourceRuleDie) DieFeedPtr(r *authorizationv1.ResourceRule) *ResourceRuleDie
- func (d *ResourceRuleDie) DieFeedRawExtension(raw runtime.RawExtension) *ResourceRuleDie
- func (d *ResourceRuleDie) DieFeedYAML(y []byte) *ResourceRuleDie
- func (d *ResourceRuleDie) DieFeedYAMLFile(name string) *ResourceRuleDie
- func (d *ResourceRuleDie) DieImmutable(immutable bool) *ResourceRuleDie
- func (d *ResourceRuleDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ResourceRuleDie) DieRelease() authorizationv1.ResourceRule
- func (d *ResourceRuleDie) DieReleaseJSON() []byte
- func (d *ResourceRuleDie) DieReleasePtr() *authorizationv1.ResourceRule
- func (d *ResourceRuleDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ResourceRuleDie) DieReleaseYAML() []byte
- func (d *ResourceRuleDie) DieSeal() *ResourceRuleDie
- func (d *ResourceRuleDie) DieSealFeed(r authorizationv1.ResourceRule) *ResourceRuleDie
- func (d *ResourceRuleDie) DieSealFeedPtr(r *authorizationv1.ResourceRule) *ResourceRuleDie
- func (d *ResourceRuleDie) DieSealRelease() authorizationv1.ResourceRule
- func (d *ResourceRuleDie) DieSealReleasePtr() *authorizationv1.ResourceRule
- func (d *ResourceRuleDie) DieStamp(fn func(r *authorizationv1.ResourceRule)) *ResourceRuleDie
- func (d *ResourceRuleDie) DieStampAt(jp string, fn interface{}) *ResourceRuleDie
- func (d *ResourceRuleDie) DieWith(fns ...func(d *ResourceRuleDie)) *ResourceRuleDie
- func (d *ResourceRuleDie) ResourceNames(v ...string) *ResourceRuleDie
- func (d *ResourceRuleDie) Resources(v ...string) *ResourceRuleDie
- func (d *ResourceRuleDie) Verbs(v ...string) *ResourceRuleDie
- type SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) APIVersion(v string) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) DeepCopy() *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) DeepCopyObject() runtime.Object
- func (d *SelfSubjectAccessReviewDie) DieDefaultTypeMetadata() *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) DieDiff(opts ...cmp.Option) string
- func (d *SelfSubjectAccessReviewDie) DieFeed(r authorizationv1.SelfSubjectAccessReview) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) DieFeedJSON(j []byte) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) DieFeedPtr(r *authorizationv1.SelfSubjectAccessReview) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) DieFeedRawExtension(raw runtime.RawExtension) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) DieFeedYAML(y []byte) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) DieFeedYAMLFile(name string) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) DieImmutable(immutable bool) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *SelfSubjectAccessReviewDie) DieRelease() authorizationv1.SelfSubjectAccessReview
- func (d *SelfSubjectAccessReviewDie) DieReleaseJSON() []byte
- func (d *SelfSubjectAccessReviewDie) DieReleasePtr() *authorizationv1.SelfSubjectAccessReview
- func (d *SelfSubjectAccessReviewDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *SelfSubjectAccessReviewDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *SelfSubjectAccessReviewDie) DieReleaseYAML() []byte
- func (d *SelfSubjectAccessReviewDie) DieSeal() *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) DieSealFeed(r authorizationv1.SelfSubjectAccessReview) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) DieSealFeedPtr(r *authorizationv1.SelfSubjectAccessReview) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) DieSealRelease() authorizationv1.SelfSubjectAccessReview
- func (d *SelfSubjectAccessReviewDie) DieSealReleasePtr() *authorizationv1.SelfSubjectAccessReview
- func (d *SelfSubjectAccessReviewDie) DieStamp(fn func(r *authorizationv1.SelfSubjectAccessReview)) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) DieStampAt(jp string, fn interface{}) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) DieWith(fns ...func(d *SelfSubjectAccessReviewDie)) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) GetObjectKind() schema.ObjectKind
- func (d *SelfSubjectAccessReviewDie) Kind(v string) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) MarshalJSON() ([]byte, error)
- func (d *SelfSubjectAccessReviewDie) Metadata(v apismetav1.ObjectMeta) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) Spec(v authorizationv1.SelfSubjectAccessReviewSpec) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) SpecDie(fn func(d *SelfSubjectAccessReviewSpecDie)) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) Status(v authorizationv1.SubjectAccessReviewStatus) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) StatusDie(fn func(d *SubjectAccessReviewStatusDie)) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) TypeMetadata(v apismetav1.TypeMeta) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *SelfSubjectAccessReviewDie
- func (d *SelfSubjectAccessReviewDie) UnmarshalJSON(b []byte) error
- type SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) DeepCopy() *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) DieDiff(opts ...cmp.Option) string
- func (d *SelfSubjectAccessReviewSpecDie) DieFeed(r authorizationv1.SelfSubjectAccessReviewSpec) *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) DieFeedJSON(j []byte) *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) DieFeedPtr(r *authorizationv1.SelfSubjectAccessReviewSpec) *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) DieFeedYAML(y []byte) *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) DieFeedYAMLFile(name string) *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) DieImmutable(immutable bool) *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *SelfSubjectAccessReviewSpecDie) DieRelease() authorizationv1.SelfSubjectAccessReviewSpec
- func (d *SelfSubjectAccessReviewSpecDie) DieReleaseJSON() []byte
- func (d *SelfSubjectAccessReviewSpecDie) DieReleasePtr() *authorizationv1.SelfSubjectAccessReviewSpec
- func (d *SelfSubjectAccessReviewSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *SelfSubjectAccessReviewSpecDie) DieReleaseYAML() []byte
- func (d *SelfSubjectAccessReviewSpecDie) DieSeal() *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) DieSealFeed(r authorizationv1.SelfSubjectAccessReviewSpec) *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) DieSealFeedPtr(r *authorizationv1.SelfSubjectAccessReviewSpec) *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) DieSealRelease() authorizationv1.SelfSubjectAccessReviewSpec
- func (d *SelfSubjectAccessReviewSpecDie) DieSealReleasePtr() *authorizationv1.SelfSubjectAccessReviewSpec
- func (d *SelfSubjectAccessReviewSpecDie) DieStamp(fn func(r *authorizationv1.SelfSubjectAccessReviewSpec)) *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) DieStampAt(jp string, fn interface{}) *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) DieWith(fns ...func(d *SelfSubjectAccessReviewSpecDie)) *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) NonResourceAttributes(v *authorizationv1.NonResourceAttributes) *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) NonResourceAttributesDie(fn func(d *NonResourceAttributesDie)) *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) ResourceAttributes(v *authorizationv1.ResourceAttributes) *SelfSubjectAccessReviewSpecDie
- func (d *SelfSubjectAccessReviewSpecDie) ResourceAttributesDie(fn func(d *ResourceAttributesDie)) *SelfSubjectAccessReviewSpecDie
- type SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) APIVersion(v string) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) DeepCopy() *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) DeepCopyObject() runtime.Object
- func (d *SelfSubjectRulesReviewDie) DieDefaultTypeMetadata() *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) DieDiff(opts ...cmp.Option) string
- func (d *SelfSubjectRulesReviewDie) DieFeed(r authorizationv1.SelfSubjectRulesReview) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) DieFeedJSON(j []byte) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) DieFeedPtr(r *authorizationv1.SelfSubjectRulesReview) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) DieFeedRawExtension(raw runtime.RawExtension) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) DieFeedYAML(y []byte) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) DieFeedYAMLFile(name string) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) DieImmutable(immutable bool) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *SelfSubjectRulesReviewDie) DieRelease() authorizationv1.SelfSubjectRulesReview
- func (d *SelfSubjectRulesReviewDie) DieReleaseJSON() []byte
- func (d *SelfSubjectRulesReviewDie) DieReleasePtr() *authorizationv1.SelfSubjectRulesReview
- func (d *SelfSubjectRulesReviewDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *SelfSubjectRulesReviewDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *SelfSubjectRulesReviewDie) DieReleaseYAML() []byte
- func (d *SelfSubjectRulesReviewDie) DieSeal() *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) DieSealFeed(r authorizationv1.SelfSubjectRulesReview) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) DieSealFeedPtr(r *authorizationv1.SelfSubjectRulesReview) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) DieSealRelease() authorizationv1.SelfSubjectRulesReview
- func (d *SelfSubjectRulesReviewDie) DieSealReleasePtr() *authorizationv1.SelfSubjectRulesReview
- func (d *SelfSubjectRulesReviewDie) DieStamp(fn func(r *authorizationv1.SelfSubjectRulesReview)) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) DieStampAt(jp string, fn interface{}) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) DieWith(fns ...func(d *SelfSubjectRulesReviewDie)) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) GetObjectKind() schema.ObjectKind
- func (d *SelfSubjectRulesReviewDie) Kind(v string) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) MarshalJSON() ([]byte, error)
- func (d *SelfSubjectRulesReviewDie) Metadata(v apismetav1.ObjectMeta) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) Spec(v authorizationv1.SelfSubjectRulesReviewSpec) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) SpecDie(fn func(d *SelfSubjectRulesReviewSpecDie)) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) Status(v authorizationv1.SubjectRulesReviewStatus) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) StatusDie(fn func(d *SubjectRulesReviewStatusDie)) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) TypeMetadata(v apismetav1.TypeMeta) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *SelfSubjectRulesReviewDie
- func (d *SelfSubjectRulesReviewDie) UnmarshalJSON(b []byte) error
- type SelfSubjectRulesReviewSpecDie
- func (d *SelfSubjectRulesReviewSpecDie) DeepCopy() *SelfSubjectRulesReviewSpecDie
- func (d *SelfSubjectRulesReviewSpecDie) DieDiff(opts ...cmp.Option) string
- func (d *SelfSubjectRulesReviewSpecDie) DieFeed(r authorizationv1.SelfSubjectRulesReviewSpec) *SelfSubjectRulesReviewSpecDie
- func (d *SelfSubjectRulesReviewSpecDie) DieFeedJSON(j []byte) *SelfSubjectRulesReviewSpecDie
- func (d *SelfSubjectRulesReviewSpecDie) DieFeedPtr(r *authorizationv1.SelfSubjectRulesReviewSpec) *SelfSubjectRulesReviewSpecDie
- func (d *SelfSubjectRulesReviewSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *SelfSubjectRulesReviewSpecDie
- func (d *SelfSubjectRulesReviewSpecDie) DieFeedYAML(y []byte) *SelfSubjectRulesReviewSpecDie
- func (d *SelfSubjectRulesReviewSpecDie) DieFeedYAMLFile(name string) *SelfSubjectRulesReviewSpecDie
- func (d *SelfSubjectRulesReviewSpecDie) DieImmutable(immutable bool) *SelfSubjectRulesReviewSpecDie
- func (d *SelfSubjectRulesReviewSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *SelfSubjectRulesReviewSpecDie) DieRelease() authorizationv1.SelfSubjectRulesReviewSpec
- func (d *SelfSubjectRulesReviewSpecDie) DieReleaseJSON() []byte
- func (d *SelfSubjectRulesReviewSpecDie) DieReleasePtr() *authorizationv1.SelfSubjectRulesReviewSpec
- func (d *SelfSubjectRulesReviewSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *SelfSubjectRulesReviewSpecDie) DieReleaseYAML() []byte
- func (d *SelfSubjectRulesReviewSpecDie) DieSeal() *SelfSubjectRulesReviewSpecDie
- func (d *SelfSubjectRulesReviewSpecDie) DieSealFeed(r authorizationv1.SelfSubjectRulesReviewSpec) *SelfSubjectRulesReviewSpecDie
- func (d *SelfSubjectRulesReviewSpecDie) DieSealFeedPtr(r *authorizationv1.SelfSubjectRulesReviewSpec) *SelfSubjectRulesReviewSpecDie
- func (d *SelfSubjectRulesReviewSpecDie) DieSealRelease() authorizationv1.SelfSubjectRulesReviewSpec
- func (d *SelfSubjectRulesReviewSpecDie) DieSealReleasePtr() *authorizationv1.SelfSubjectRulesReviewSpec
- func (d *SelfSubjectRulesReviewSpecDie) DieStamp(fn func(r *authorizationv1.SelfSubjectRulesReviewSpec)) *SelfSubjectRulesReviewSpecDie
- func (d *SelfSubjectRulesReviewSpecDie) DieStampAt(jp string, fn interface{}) *SelfSubjectRulesReviewSpecDie
- func (d *SelfSubjectRulesReviewSpecDie) DieWith(fns ...func(d *SelfSubjectRulesReviewSpecDie)) *SelfSubjectRulesReviewSpecDie
- func (d *SelfSubjectRulesReviewSpecDie) Namespace(v string) *SelfSubjectRulesReviewSpecDie
- type SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) APIVersion(v string) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) DeepCopy() *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) DeepCopyObject() runtime.Object
- func (d *SubjectAccessReviewDie) DieDefaultTypeMetadata() *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) DieDiff(opts ...cmp.Option) string
- func (d *SubjectAccessReviewDie) DieFeed(r authorizationv1.SubjectAccessReview) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) DieFeedJSON(j []byte) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) DieFeedPtr(r *authorizationv1.SubjectAccessReview) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) DieFeedRawExtension(raw runtime.RawExtension) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) DieFeedYAML(y []byte) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) DieFeedYAMLFile(name string) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) DieImmutable(immutable bool) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *SubjectAccessReviewDie) DieRelease() authorizationv1.SubjectAccessReview
- func (d *SubjectAccessReviewDie) DieReleaseJSON() []byte
- func (d *SubjectAccessReviewDie) DieReleasePtr() *authorizationv1.SubjectAccessReview
- func (d *SubjectAccessReviewDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *SubjectAccessReviewDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *SubjectAccessReviewDie) DieReleaseYAML() []byte
- func (d *SubjectAccessReviewDie) DieSeal() *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) DieSealFeed(r authorizationv1.SubjectAccessReview) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) DieSealFeedPtr(r *authorizationv1.SubjectAccessReview) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) DieSealRelease() authorizationv1.SubjectAccessReview
- func (d *SubjectAccessReviewDie) DieSealReleasePtr() *authorizationv1.SubjectAccessReview
- func (d *SubjectAccessReviewDie) DieStamp(fn func(r *authorizationv1.SubjectAccessReview)) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) DieStampAt(jp string, fn interface{}) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) DieWith(fns ...func(d *SubjectAccessReviewDie)) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) GetObjectKind() schema.ObjectKind
- func (d *SubjectAccessReviewDie) Kind(v string) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) MarshalJSON() ([]byte, error)
- func (d *SubjectAccessReviewDie) Metadata(v apismetav1.ObjectMeta) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) Spec(v authorizationv1.SubjectAccessReviewSpec) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) SpecDie(fn func(d *SubjectAccessReviewSpecDie)) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) Status(v authorizationv1.SubjectAccessReviewStatus) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) StatusDie(fn func(d *SubjectAccessReviewStatusDie)) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) TypeMetadata(v apismetav1.TypeMeta) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *SubjectAccessReviewDie
- func (d *SubjectAccessReviewDie) UnmarshalJSON(b []byte) error
- type SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) AddExtra(key string, value authorizationv1.ExtraValue) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) DeepCopy() *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) DieDiff(opts ...cmp.Option) string
- func (d *SubjectAccessReviewSpecDie) DieFeed(r authorizationv1.SubjectAccessReviewSpec) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) DieFeedJSON(j []byte) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) DieFeedPtr(r *authorizationv1.SubjectAccessReviewSpec) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) DieFeedYAML(y []byte) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) DieFeedYAMLFile(name string) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) DieImmutable(immutable bool) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *SubjectAccessReviewSpecDie) DieRelease() authorizationv1.SubjectAccessReviewSpec
- func (d *SubjectAccessReviewSpecDie) DieReleaseJSON() []byte
- func (d *SubjectAccessReviewSpecDie) DieReleasePtr() *authorizationv1.SubjectAccessReviewSpec
- func (d *SubjectAccessReviewSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *SubjectAccessReviewSpecDie) DieReleaseYAML() []byte
- func (d *SubjectAccessReviewSpecDie) DieSeal() *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) DieSealFeed(r authorizationv1.SubjectAccessReviewSpec) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) DieSealFeedPtr(r *authorizationv1.SubjectAccessReviewSpec) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) DieSealRelease() authorizationv1.SubjectAccessReviewSpec
- func (d *SubjectAccessReviewSpecDie) DieSealReleasePtr() *authorizationv1.SubjectAccessReviewSpec
- func (d *SubjectAccessReviewSpecDie) DieStamp(fn func(r *authorizationv1.SubjectAccessReviewSpec)) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) DieStampAt(jp string, fn interface{}) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) DieWith(fns ...func(d *SubjectAccessReviewSpecDie)) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) Extra(v map[string]authorizationv1.ExtraValue) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) Groups(v ...string) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) NonResourceAttributes(v *authorizationv1.NonResourceAttributes) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) NonResourceAttributesDie(fn func(d *NonResourceAttributesDie)) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) ResourceAttributes(v *authorizationv1.ResourceAttributes) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) ResourceAttributesDie(fn func(d *ResourceAttributesDie)) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) UID(v string) *SubjectAccessReviewSpecDie
- func (d *SubjectAccessReviewSpecDie) User(v string) *SubjectAccessReviewSpecDie
- type SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) Allowed(v bool) *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) DeepCopy() *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) Denied(v bool) *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) DieDiff(opts ...cmp.Option) string
- func (d *SubjectAccessReviewStatusDie) DieFeed(r authorizationv1.SubjectAccessReviewStatus) *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) DieFeedJSON(j []byte) *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) DieFeedPtr(r *authorizationv1.SubjectAccessReviewStatus) *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) DieFeedYAML(y []byte) *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) DieFeedYAMLFile(name string) *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) DieImmutable(immutable bool) *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *SubjectAccessReviewStatusDie) DieRelease() authorizationv1.SubjectAccessReviewStatus
- func (d *SubjectAccessReviewStatusDie) DieReleaseJSON() []byte
- func (d *SubjectAccessReviewStatusDie) DieReleasePtr() *authorizationv1.SubjectAccessReviewStatus
- func (d *SubjectAccessReviewStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *SubjectAccessReviewStatusDie) DieReleaseYAML() []byte
- func (d *SubjectAccessReviewStatusDie) DieSeal() *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) DieSealFeed(r authorizationv1.SubjectAccessReviewStatus) *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) DieSealFeedPtr(r *authorizationv1.SubjectAccessReviewStatus) *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) DieSealRelease() authorizationv1.SubjectAccessReviewStatus
- func (d *SubjectAccessReviewStatusDie) DieSealReleasePtr() *authorizationv1.SubjectAccessReviewStatus
- func (d *SubjectAccessReviewStatusDie) DieStamp(fn func(r *authorizationv1.SubjectAccessReviewStatus)) *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) DieStampAt(jp string, fn interface{}) *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) DieWith(fns ...func(d *SubjectAccessReviewStatusDie)) *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) EvaluationError(v string) *SubjectAccessReviewStatusDie
- func (d *SubjectAccessReviewStatusDie) Reason(v string) *SubjectAccessReviewStatusDie
- type SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) DeepCopy() *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) DieDiff(opts ...cmp.Option) string
- func (d *SubjectRulesReviewStatusDie) DieFeed(r authorizationv1.SubjectRulesReviewStatus) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) DieFeedJSON(j []byte) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) DieFeedPtr(r *authorizationv1.SubjectRulesReviewStatus) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) DieFeedYAML(y []byte) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) DieFeedYAMLFile(name string) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) DieImmutable(immutable bool) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *SubjectRulesReviewStatusDie) DieRelease() authorizationv1.SubjectRulesReviewStatus
- func (d *SubjectRulesReviewStatusDie) DieReleaseJSON() []byte
- func (d *SubjectRulesReviewStatusDie) DieReleasePtr() *authorizationv1.SubjectRulesReviewStatus
- func (d *SubjectRulesReviewStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *SubjectRulesReviewStatusDie) DieReleaseYAML() []byte
- func (d *SubjectRulesReviewStatusDie) DieSeal() *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) DieSealFeed(r authorizationv1.SubjectRulesReviewStatus) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) DieSealFeedPtr(r *authorizationv1.SubjectRulesReviewStatus) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) DieSealRelease() authorizationv1.SubjectRulesReviewStatus
- func (d *SubjectRulesReviewStatusDie) DieSealReleasePtr() *authorizationv1.SubjectRulesReviewStatus
- func (d *SubjectRulesReviewStatusDie) DieStamp(fn func(r *authorizationv1.SubjectRulesReviewStatus)) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) DieStampAt(jp string, fn interface{}) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) DieWith(fns ...func(d *SubjectRulesReviewStatusDie)) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) EvaluationError(v string) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) Incomplete(v bool) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) NonResourceRules(v ...authorizationv1.NonResourceRule) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) NonResourceRulesDie(v ...*NonResourceRuleDie) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) ResourceRules(v ...authorizationv1.ResourceRule) *SubjectRulesReviewStatusDie
- func (d *SubjectRulesReviewStatusDie) ResourceRulesDie(v ...*ResourceRuleDie) *SubjectRulesReviewStatusDie
Constants ¶
This section is empty.
Variables ¶
var FieldSelectorAttributesBlank = (&FieldSelectorAttributesDie{}).DieFeed(authorizationv1.FieldSelectorAttributes{})
var LabelSelectorAttributesBlank = (&LabelSelectorAttributesDie{}).DieFeed(authorizationv1.LabelSelectorAttributes{})
var LocalSubjectAccessReviewBlank = (&LocalSubjectAccessReviewDie{}).DieFeed(authorizationv1.LocalSubjectAccessReview{})
var NonResourceAttributesBlank = (&NonResourceAttributesDie{}).DieFeed(authorizationv1.NonResourceAttributes{})
var NonResourceRuleBlank = (&NonResourceRuleDie{}).DieFeed(authorizationv1.NonResourceRule{})
var ResourceAttributesBlank = (&ResourceAttributesDie{}).DieFeed(authorizationv1.ResourceAttributes{})
var ResourceRuleBlank = (&ResourceRuleDie{}).DieFeed(authorizationv1.ResourceRule{})
var SelfSubjectAccessReviewBlank = (&SelfSubjectAccessReviewDie{}).DieFeed(authorizationv1.SelfSubjectAccessReview{})
var SelfSubjectAccessReviewSpecBlank = (&SelfSubjectAccessReviewSpecDie{}).DieFeed(authorizationv1.SelfSubjectAccessReviewSpec{})
var SelfSubjectRulesReviewBlank = (&SelfSubjectRulesReviewDie{}).DieFeed(authorizationv1.SelfSubjectRulesReview{})
var SelfSubjectRulesReviewSpecBlank = (&SelfSubjectRulesReviewSpecDie{}).DieFeed(authorizationv1.SelfSubjectRulesReviewSpec{})
var SubjectAccessReviewBlank = (&SubjectAccessReviewDie{}).DieFeed(authorizationv1.SubjectAccessReview{})
var SubjectAccessReviewSpecBlank = (&SubjectAccessReviewSpecDie{}).DieFeed(authorizationv1.SubjectAccessReviewSpec{})
var SubjectAccessReviewStatusBlank = (&SubjectAccessReviewStatusDie{}).DieFeed(authorizationv1.SubjectAccessReviewStatus{})
var SubjectRulesReviewStatusBlank = (&SubjectRulesReviewStatusDie{}).DieFeed(authorizationv1.SubjectRulesReviewStatus{})
Functions ¶
This section is empty.
Types ¶
type FieldSelectorAttributesDie ¶ added in v0.14.0
type FieldSelectorAttributesDie struct {
// contains filtered or unexported fields
}
func (*FieldSelectorAttributesDie) DeepCopy ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DeepCopy() *FieldSelectorAttributesDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*FieldSelectorAttributesDie) DieDiff ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*FieldSelectorAttributesDie) DieFeed ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieFeed(r authorizationv1.FieldSelectorAttributes) *FieldSelectorAttributesDie
DieFeed returns a new die with the provided resource.
func (*FieldSelectorAttributesDie) DieFeedJSON ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieFeedJSON(j []byte) *FieldSelectorAttributesDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*FieldSelectorAttributesDie) DieFeedPtr ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieFeedPtr(r *authorizationv1.FieldSelectorAttributes) *FieldSelectorAttributesDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*FieldSelectorAttributesDie) DieFeedRawExtension ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieFeedRawExtension(raw runtime.RawExtension) *FieldSelectorAttributesDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*FieldSelectorAttributesDie) DieFeedYAML ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieFeedYAML(y []byte) *FieldSelectorAttributesDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*FieldSelectorAttributesDie) DieFeedYAMLFile ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieFeedYAMLFile(name string) *FieldSelectorAttributesDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*FieldSelectorAttributesDie) DieImmutable ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieImmutable(immutable bool) *FieldSelectorAttributesDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*FieldSelectorAttributesDie) DiePatch ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*FieldSelectorAttributesDie) DieRelease ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieRelease() authorizationv1.FieldSelectorAttributes
DieRelease returns the resource managed by the die.
func (*FieldSelectorAttributesDie) DieReleaseJSON ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*FieldSelectorAttributesDie) DieReleasePtr ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieReleasePtr() *authorizationv1.FieldSelectorAttributes
DieReleasePtr returns a pointer to the resource managed by the die.
func (*FieldSelectorAttributesDie) DieReleaseRawExtension ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*FieldSelectorAttributesDie) DieReleaseYAML ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*FieldSelectorAttributesDie) DieSeal ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieSeal() *FieldSelectorAttributesDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*FieldSelectorAttributesDie) DieSealFeed ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieSealFeed(r authorizationv1.FieldSelectorAttributes) *FieldSelectorAttributesDie
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 (*FieldSelectorAttributesDie) DieSealFeedPtr ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieSealFeedPtr(r *authorizationv1.FieldSelectorAttributes) *FieldSelectorAttributesDie
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 (*FieldSelectorAttributesDie) DieSealRelease ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieSealRelease() authorizationv1.FieldSelectorAttributes
DieSealRelease returns the sealed resource managed by the die.
func (*FieldSelectorAttributesDie) DieSealReleasePtr ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieSealReleasePtr() *authorizationv1.FieldSelectorAttributes
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*FieldSelectorAttributesDie) DieStamp ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieStamp(fn func(r *authorizationv1.FieldSelectorAttributes)) *FieldSelectorAttributesDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*FieldSelectorAttributesDie) DieStampAt ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieStampAt(jp string, fn interface{}) *FieldSelectorAttributesDie
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 (*FieldSelectorAttributesDie) DieWith ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) DieWith(fns ...func(d *FieldSelectorAttributesDie)) *FieldSelectorAttributesDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*FieldSelectorAttributesDie) RawSelector ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) RawSelector(v string) *FieldSelectorAttributesDie
rawSelector is the serialization of a field selector that would be included in a query parameter.
Webhook implementations are encouraged to ignore rawSelector.
The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.
func (*FieldSelectorAttributesDie) Requirements ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) Requirements(v ...apismetav1.FieldSelectorRequirement) *FieldSelectorAttributesDie
requirements is the parsed interpretation of a field selector.
All requirements must be met for a resource instance to match the selector.
Webhook implementations should handle requirements, but how to handle them is up to the webhook.
Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements ¶
are not understood.
func (*FieldSelectorAttributesDie) RequirementsDie ¶ added in v0.14.0
func (d *FieldSelectorAttributesDie) RequirementsDie(v ...*metav1.FieldSelectorRequirementDie) *FieldSelectorAttributesDie
RequirementsDie replaces Requirements by collecting the released value from each die passed.
requirements is the parsed interpretation of a field selector.
All requirements must be met for a resource instance to match the selector.
Webhook implementations should handle requirements, but how to handle them is up to the webhook.
Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements ¶
are not understood.
type LabelSelectorAttributesDie ¶ added in v0.14.0
type LabelSelectorAttributesDie struct {
// contains filtered or unexported fields
}
func (*LabelSelectorAttributesDie) DeepCopy ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DeepCopy() *LabelSelectorAttributesDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*LabelSelectorAttributesDie) DieDiff ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*LabelSelectorAttributesDie) DieFeed ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieFeed(r authorizationv1.LabelSelectorAttributes) *LabelSelectorAttributesDie
DieFeed returns a new die with the provided resource.
func (*LabelSelectorAttributesDie) DieFeedJSON ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieFeedJSON(j []byte) *LabelSelectorAttributesDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*LabelSelectorAttributesDie) DieFeedPtr ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieFeedPtr(r *authorizationv1.LabelSelectorAttributes) *LabelSelectorAttributesDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*LabelSelectorAttributesDie) DieFeedRawExtension ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieFeedRawExtension(raw runtime.RawExtension) *LabelSelectorAttributesDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*LabelSelectorAttributesDie) DieFeedYAML ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieFeedYAML(y []byte) *LabelSelectorAttributesDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*LabelSelectorAttributesDie) DieFeedYAMLFile ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieFeedYAMLFile(name string) *LabelSelectorAttributesDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*LabelSelectorAttributesDie) DieImmutable ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieImmutable(immutable bool) *LabelSelectorAttributesDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*LabelSelectorAttributesDie) DiePatch ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*LabelSelectorAttributesDie) DieRelease ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieRelease() authorizationv1.LabelSelectorAttributes
DieRelease returns the resource managed by the die.
func (*LabelSelectorAttributesDie) DieReleaseJSON ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*LabelSelectorAttributesDie) DieReleasePtr ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieReleasePtr() *authorizationv1.LabelSelectorAttributes
DieReleasePtr returns a pointer to the resource managed by the die.
func (*LabelSelectorAttributesDie) DieReleaseRawExtension ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*LabelSelectorAttributesDie) DieReleaseYAML ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*LabelSelectorAttributesDie) DieSeal ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieSeal() *LabelSelectorAttributesDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*LabelSelectorAttributesDie) DieSealFeed ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieSealFeed(r authorizationv1.LabelSelectorAttributes) *LabelSelectorAttributesDie
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 (*LabelSelectorAttributesDie) DieSealFeedPtr ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieSealFeedPtr(r *authorizationv1.LabelSelectorAttributes) *LabelSelectorAttributesDie
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 (*LabelSelectorAttributesDie) DieSealRelease ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieSealRelease() authorizationv1.LabelSelectorAttributes
DieSealRelease returns the sealed resource managed by the die.
func (*LabelSelectorAttributesDie) DieSealReleasePtr ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieSealReleasePtr() *authorizationv1.LabelSelectorAttributes
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*LabelSelectorAttributesDie) DieStamp ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieStamp(fn func(r *authorizationv1.LabelSelectorAttributes)) *LabelSelectorAttributesDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*LabelSelectorAttributesDie) DieStampAt ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieStampAt(jp string, fn interface{}) *LabelSelectorAttributesDie
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 (*LabelSelectorAttributesDie) DieWith ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) DieWith(fns ...func(d *LabelSelectorAttributesDie)) *LabelSelectorAttributesDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*LabelSelectorAttributesDie) RawSelector ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) RawSelector(v string) *LabelSelectorAttributesDie
rawSelector is the serialization of a field selector that would be included in a query parameter.
Webhook implementations are encouraged to ignore rawSelector.
The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.
func (*LabelSelectorAttributesDie) Requirements ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) Requirements(v ...apismetav1.LabelSelectorRequirement) *LabelSelectorAttributesDie
requirements is the parsed interpretation of a label selector.
All requirements must be met for a resource instance to match the selector.
Webhook implementations should handle requirements, but how to handle them is up to the webhook.
Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements ¶
are not understood.
func (*LabelSelectorAttributesDie) RequirementsDie ¶ added in v0.14.0
func (d *LabelSelectorAttributesDie) RequirementsDie(v ...*metav1.LabelSelectorRequirementDie) *LabelSelectorAttributesDie
RequirementsDie replaces Requirements by collecting the released value from each die passed.
requirements is the parsed interpretation of a label selector.
All requirements must be met for a resource instance to match the selector.
Webhook implementations should handle requirements, but how to handle them is up to the webhook.
Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements ¶
are not understood.
type LocalSubjectAccessReviewDie ¶
type LocalSubjectAccessReviewDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*LocalSubjectAccessReviewDie) APIVersion ¶
func (d *LocalSubjectAccessReviewDie) APIVersion(v string) *LocalSubjectAccessReviewDie
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 (*LocalSubjectAccessReviewDie) DeepCopy ¶
func (d *LocalSubjectAccessReviewDie) DeepCopy() *LocalSubjectAccessReviewDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*LocalSubjectAccessReviewDie) DeepCopyObject ¶
func (d *LocalSubjectAccessReviewDie) DeepCopyObject() runtime.Object
func (*LocalSubjectAccessReviewDie) DieDefaultTypeMetadata ¶ added in v0.13.0
func (d *LocalSubjectAccessReviewDie) DieDefaultTypeMetadata() *LocalSubjectAccessReviewDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "authorization.k8s.io/v1" and "LocalSubjectAccessReview" respectively.
func (*LocalSubjectAccessReviewDie) DieDiff ¶ added in v0.13.0
func (d *LocalSubjectAccessReviewDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*LocalSubjectAccessReviewDie) DieFeed ¶
func (d *LocalSubjectAccessReviewDie) DieFeed(r authorizationv1.LocalSubjectAccessReview) *LocalSubjectAccessReviewDie
DieFeed returns a new die with the provided resource.
func (*LocalSubjectAccessReviewDie) DieFeedJSON ¶
func (d *LocalSubjectAccessReviewDie) DieFeedJSON(j []byte) *LocalSubjectAccessReviewDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*LocalSubjectAccessReviewDie) DieFeedPtr ¶
func (d *LocalSubjectAccessReviewDie) DieFeedPtr(r *authorizationv1.LocalSubjectAccessReview) *LocalSubjectAccessReviewDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*LocalSubjectAccessReviewDie) DieFeedRawExtension ¶
func (d *LocalSubjectAccessReviewDie) DieFeedRawExtension(raw runtime.RawExtension) *LocalSubjectAccessReviewDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*LocalSubjectAccessReviewDie) DieFeedYAML ¶
func (d *LocalSubjectAccessReviewDie) DieFeedYAML(y []byte) *LocalSubjectAccessReviewDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*LocalSubjectAccessReviewDie) DieFeedYAMLFile ¶
func (d *LocalSubjectAccessReviewDie) DieFeedYAMLFile(name string) *LocalSubjectAccessReviewDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*LocalSubjectAccessReviewDie) DieImmutable ¶
func (d *LocalSubjectAccessReviewDie) DieImmutable(immutable bool) *LocalSubjectAccessReviewDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*LocalSubjectAccessReviewDie) DiePatch ¶ added in v0.13.0
func (d *LocalSubjectAccessReviewDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*LocalSubjectAccessReviewDie) DieRelease ¶
func (d *LocalSubjectAccessReviewDie) DieRelease() authorizationv1.LocalSubjectAccessReview
DieRelease returns the resource managed by the die.
func (*LocalSubjectAccessReviewDie) DieReleaseJSON ¶
func (d *LocalSubjectAccessReviewDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*LocalSubjectAccessReviewDie) DieReleasePtr ¶
func (d *LocalSubjectAccessReviewDie) DieReleasePtr() *authorizationv1.LocalSubjectAccessReview
DieReleasePtr returns a pointer to the resource managed by the die.
func (*LocalSubjectAccessReviewDie) DieReleaseRawExtension ¶
func (d *LocalSubjectAccessReviewDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*LocalSubjectAccessReviewDie) DieReleaseUnstructured ¶
func (d *LocalSubjectAccessReviewDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*LocalSubjectAccessReviewDie) DieReleaseYAML ¶
func (d *LocalSubjectAccessReviewDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*LocalSubjectAccessReviewDie) DieSeal ¶ added in v0.13.0
func (d *LocalSubjectAccessReviewDie) DieSeal() *LocalSubjectAccessReviewDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*LocalSubjectAccessReviewDie) DieSealFeed ¶ added in v0.13.0
func (d *LocalSubjectAccessReviewDie) DieSealFeed(r authorizationv1.LocalSubjectAccessReview) *LocalSubjectAccessReviewDie
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 (*LocalSubjectAccessReviewDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *LocalSubjectAccessReviewDie) DieSealFeedPtr(r *authorizationv1.LocalSubjectAccessReview) *LocalSubjectAccessReviewDie
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 (*LocalSubjectAccessReviewDie) DieSealRelease ¶ added in v0.13.0
func (d *LocalSubjectAccessReviewDie) DieSealRelease() authorizationv1.LocalSubjectAccessReview
DieSealRelease returns the sealed resource managed by the die.
func (*LocalSubjectAccessReviewDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *LocalSubjectAccessReviewDie) DieSealReleasePtr() *authorizationv1.LocalSubjectAccessReview
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*LocalSubjectAccessReviewDie) DieStamp ¶
func (d *LocalSubjectAccessReviewDie) DieStamp(fn func(r *authorizationv1.LocalSubjectAccessReview)) *LocalSubjectAccessReviewDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*LocalSubjectAccessReviewDie) DieStampAt ¶
func (d *LocalSubjectAccessReviewDie) DieStampAt(jp string, fn interface{}) *LocalSubjectAccessReviewDie
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 (*LocalSubjectAccessReviewDie) DieWith ¶
func (d *LocalSubjectAccessReviewDie) DieWith(fns ...func(d *LocalSubjectAccessReviewDie)) *LocalSubjectAccessReviewDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*LocalSubjectAccessReviewDie) GetObjectKind ¶
func (d *LocalSubjectAccessReviewDie) GetObjectKind() schema.ObjectKind
func (*LocalSubjectAccessReviewDie) Kind ¶
func (d *LocalSubjectAccessReviewDie) Kind(v string) *LocalSubjectAccessReviewDie
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 (*LocalSubjectAccessReviewDie) MarshalJSON ¶
func (d *LocalSubjectAccessReviewDie) MarshalJSON() ([]byte, error)
func (*LocalSubjectAccessReviewDie) Metadata ¶ added in v0.13.0
func (d *LocalSubjectAccessReviewDie) Metadata(v apismetav1.ObjectMeta) *LocalSubjectAccessReviewDie
Metadata standard object's metadata.
func (*LocalSubjectAccessReviewDie) MetadataDie ¶
func (d *LocalSubjectAccessReviewDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *LocalSubjectAccessReviewDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*LocalSubjectAccessReviewDie) Spec ¶
func (d *LocalSubjectAccessReviewDie) Spec(v authorizationv1.SubjectAccessReviewSpec) *LocalSubjectAccessReviewDie
Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace
you made the request against. If empty, it is defaulted.
func (*LocalSubjectAccessReviewDie) Status ¶
func (d *LocalSubjectAccessReviewDie) Status(v authorizationv1.SubjectAccessReviewStatus) *LocalSubjectAccessReviewDie
Status is filled in by the server and indicates whether the request is allowed or not
func (*LocalSubjectAccessReviewDie) TypeMetadata ¶ added in v0.13.0
func (d *LocalSubjectAccessReviewDie) TypeMetadata(v apismetav1.TypeMeta) *LocalSubjectAccessReviewDie
TypeMetadata standard object's type metadata.
func (*LocalSubjectAccessReviewDie) TypeMetadataDie ¶ added in v0.13.0
func (d *LocalSubjectAccessReviewDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *LocalSubjectAccessReviewDie
TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.
func (*LocalSubjectAccessReviewDie) UnmarshalJSON ¶
func (d *LocalSubjectAccessReviewDie) UnmarshalJSON(b []byte) error
type NonResourceAttributesDie ¶
type NonResourceAttributesDie struct {
// contains filtered or unexported fields
}
func (*NonResourceAttributesDie) DeepCopy ¶
func (d *NonResourceAttributesDie) DeepCopy() *NonResourceAttributesDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*NonResourceAttributesDie) DieDiff ¶ added in v0.13.0
func (d *NonResourceAttributesDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*NonResourceAttributesDie) DieFeed ¶
func (d *NonResourceAttributesDie) DieFeed(r authorizationv1.NonResourceAttributes) *NonResourceAttributesDie
DieFeed returns a new die with the provided resource.
func (*NonResourceAttributesDie) DieFeedJSON ¶
func (d *NonResourceAttributesDie) DieFeedJSON(j []byte) *NonResourceAttributesDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*NonResourceAttributesDie) DieFeedPtr ¶
func (d *NonResourceAttributesDie) DieFeedPtr(r *authorizationv1.NonResourceAttributes) *NonResourceAttributesDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*NonResourceAttributesDie) DieFeedRawExtension ¶
func (d *NonResourceAttributesDie) DieFeedRawExtension(raw runtime.RawExtension) *NonResourceAttributesDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*NonResourceAttributesDie) DieFeedYAML ¶
func (d *NonResourceAttributesDie) DieFeedYAML(y []byte) *NonResourceAttributesDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*NonResourceAttributesDie) DieFeedYAMLFile ¶
func (d *NonResourceAttributesDie) DieFeedYAMLFile(name string) *NonResourceAttributesDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*NonResourceAttributesDie) DieImmutable ¶
func (d *NonResourceAttributesDie) DieImmutable(immutable bool) *NonResourceAttributesDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*NonResourceAttributesDie) DiePatch ¶ added in v0.13.0
func (d *NonResourceAttributesDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*NonResourceAttributesDie) DieRelease ¶
func (d *NonResourceAttributesDie) DieRelease() authorizationv1.NonResourceAttributes
DieRelease returns the resource managed by the die.
func (*NonResourceAttributesDie) DieReleaseJSON ¶
func (d *NonResourceAttributesDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*NonResourceAttributesDie) DieReleasePtr ¶
func (d *NonResourceAttributesDie) DieReleasePtr() *authorizationv1.NonResourceAttributes
DieReleasePtr returns a pointer to the resource managed by the die.
func (*NonResourceAttributesDie) DieReleaseRawExtension ¶
func (d *NonResourceAttributesDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*NonResourceAttributesDie) DieReleaseYAML ¶
func (d *NonResourceAttributesDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*NonResourceAttributesDie) DieSeal ¶ added in v0.13.0
func (d *NonResourceAttributesDie) DieSeal() *NonResourceAttributesDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*NonResourceAttributesDie) DieSealFeed ¶ added in v0.13.0
func (d *NonResourceAttributesDie) DieSealFeed(r authorizationv1.NonResourceAttributes) *NonResourceAttributesDie
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 (*NonResourceAttributesDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *NonResourceAttributesDie) DieSealFeedPtr(r *authorizationv1.NonResourceAttributes) *NonResourceAttributesDie
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 (*NonResourceAttributesDie) DieSealRelease ¶ added in v0.13.0
func (d *NonResourceAttributesDie) DieSealRelease() authorizationv1.NonResourceAttributes
DieSealRelease returns the sealed resource managed by the die.
func (*NonResourceAttributesDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *NonResourceAttributesDie) DieSealReleasePtr() *authorizationv1.NonResourceAttributes
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*NonResourceAttributesDie) DieStamp ¶
func (d *NonResourceAttributesDie) DieStamp(fn func(r *authorizationv1.NonResourceAttributes)) *NonResourceAttributesDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*NonResourceAttributesDie) DieStampAt ¶
func (d *NonResourceAttributesDie) DieStampAt(jp string, fn interface{}) *NonResourceAttributesDie
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 (*NonResourceAttributesDie) DieWith ¶
func (d *NonResourceAttributesDie) DieWith(fns ...func(d *NonResourceAttributesDie)) *NonResourceAttributesDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*NonResourceAttributesDie) Path ¶
func (d *NonResourceAttributesDie) Path(v string) *NonResourceAttributesDie
Path is the URL path of the request
func (*NonResourceAttributesDie) Verb ¶
func (d *NonResourceAttributesDie) Verb(v string) *NonResourceAttributesDie
Verb is the standard HTTP verb
type NonResourceRuleDie ¶
type NonResourceRuleDie struct {
// contains filtered or unexported fields
}
func (*NonResourceRuleDie) DeepCopy ¶
func (d *NonResourceRuleDie) DeepCopy() *NonResourceRuleDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*NonResourceRuleDie) DieDiff ¶ added in v0.13.0
func (d *NonResourceRuleDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*NonResourceRuleDie) DieFeed ¶
func (d *NonResourceRuleDie) DieFeed(r authorizationv1.NonResourceRule) *NonResourceRuleDie
DieFeed returns a new die with the provided resource.
func (*NonResourceRuleDie) DieFeedJSON ¶
func (d *NonResourceRuleDie) DieFeedJSON(j []byte) *NonResourceRuleDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*NonResourceRuleDie) DieFeedPtr ¶
func (d *NonResourceRuleDie) DieFeedPtr(r *authorizationv1.NonResourceRule) *NonResourceRuleDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*NonResourceRuleDie) DieFeedRawExtension ¶
func (d *NonResourceRuleDie) DieFeedRawExtension(raw runtime.RawExtension) *NonResourceRuleDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*NonResourceRuleDie) DieFeedYAML ¶
func (d *NonResourceRuleDie) DieFeedYAML(y []byte) *NonResourceRuleDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*NonResourceRuleDie) DieFeedYAMLFile ¶
func (d *NonResourceRuleDie) DieFeedYAMLFile(name string) *NonResourceRuleDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*NonResourceRuleDie) DieImmutable ¶
func (d *NonResourceRuleDie) DieImmutable(immutable bool) *NonResourceRuleDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*NonResourceRuleDie) DiePatch ¶ added in v0.13.0
func (d *NonResourceRuleDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*NonResourceRuleDie) DieRelease ¶
func (d *NonResourceRuleDie) DieRelease() authorizationv1.NonResourceRule
DieRelease returns the resource managed by the die.
func (*NonResourceRuleDie) DieReleaseJSON ¶
func (d *NonResourceRuleDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*NonResourceRuleDie) DieReleasePtr ¶
func (d *NonResourceRuleDie) DieReleasePtr() *authorizationv1.NonResourceRule
DieReleasePtr returns a pointer to the resource managed by the die.
func (*NonResourceRuleDie) DieReleaseRawExtension ¶
func (d *NonResourceRuleDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*NonResourceRuleDie) DieReleaseYAML ¶
func (d *NonResourceRuleDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*NonResourceRuleDie) DieSeal ¶ added in v0.13.0
func (d *NonResourceRuleDie) DieSeal() *NonResourceRuleDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*NonResourceRuleDie) DieSealFeed ¶ added in v0.13.0
func (d *NonResourceRuleDie) DieSealFeed(r authorizationv1.NonResourceRule) *NonResourceRuleDie
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 (*NonResourceRuleDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *NonResourceRuleDie) DieSealFeedPtr(r *authorizationv1.NonResourceRule) *NonResourceRuleDie
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 (*NonResourceRuleDie) DieSealRelease ¶ added in v0.13.0
func (d *NonResourceRuleDie) DieSealRelease() authorizationv1.NonResourceRule
DieSealRelease returns the sealed resource managed by the die.
func (*NonResourceRuleDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *NonResourceRuleDie) DieSealReleasePtr() *authorizationv1.NonResourceRule
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*NonResourceRuleDie) DieStamp ¶
func (d *NonResourceRuleDie) DieStamp(fn func(r *authorizationv1.NonResourceRule)) *NonResourceRuleDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*NonResourceRuleDie) DieStampAt ¶
func (d *NonResourceRuleDie) DieStampAt(jp string, fn interface{}) *NonResourceRuleDie
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 (*NonResourceRuleDie) DieWith ¶
func (d *NonResourceRuleDie) DieWith(fns ...func(d *NonResourceRuleDie)) *NonResourceRuleDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*NonResourceRuleDie) NonResourceURLs ¶
func (d *NonResourceRuleDie) NonResourceURLs(v ...string) *NonResourceRuleDie
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full,
final step in the path. "*" means all.
func (*NonResourceRuleDie) Verbs ¶
func (d *NonResourceRuleDie) Verbs(v ...string) *NonResourceRuleDie
Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all.
type ResourceAttributesDie ¶
type ResourceAttributesDie struct {
// contains filtered or unexported fields
}
func (*ResourceAttributesDie) DeepCopy ¶
func (d *ResourceAttributesDie) DeepCopy() *ResourceAttributesDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ResourceAttributesDie) DieDiff ¶ added in v0.13.0
func (d *ResourceAttributesDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*ResourceAttributesDie) DieFeed ¶
func (d *ResourceAttributesDie) DieFeed(r authorizationv1.ResourceAttributes) *ResourceAttributesDie
DieFeed returns a new die with the provided resource.
func (*ResourceAttributesDie) DieFeedJSON ¶
func (d *ResourceAttributesDie) DieFeedJSON(j []byte) *ResourceAttributesDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ResourceAttributesDie) DieFeedPtr ¶
func (d *ResourceAttributesDie) DieFeedPtr(r *authorizationv1.ResourceAttributes) *ResourceAttributesDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ResourceAttributesDie) DieFeedRawExtension ¶
func (d *ResourceAttributesDie) DieFeedRawExtension(raw runtime.RawExtension) *ResourceAttributesDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ResourceAttributesDie) DieFeedYAML ¶
func (d *ResourceAttributesDie) DieFeedYAML(y []byte) *ResourceAttributesDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ResourceAttributesDie) DieFeedYAMLFile ¶
func (d *ResourceAttributesDie) DieFeedYAMLFile(name string) *ResourceAttributesDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ResourceAttributesDie) DieImmutable ¶
func (d *ResourceAttributesDie) DieImmutable(immutable bool) *ResourceAttributesDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ResourceAttributesDie) DiePatch ¶ added in v0.13.0
func (d *ResourceAttributesDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*ResourceAttributesDie) DieRelease ¶
func (d *ResourceAttributesDie) DieRelease() authorizationv1.ResourceAttributes
DieRelease returns the resource managed by the die.
func (*ResourceAttributesDie) DieReleaseJSON ¶
func (d *ResourceAttributesDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ResourceAttributesDie) DieReleasePtr ¶
func (d *ResourceAttributesDie) DieReleasePtr() *authorizationv1.ResourceAttributes
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ResourceAttributesDie) DieReleaseRawExtension ¶
func (d *ResourceAttributesDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ResourceAttributesDie) DieReleaseYAML ¶
func (d *ResourceAttributesDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ResourceAttributesDie) DieSeal ¶ added in v0.13.0
func (d *ResourceAttributesDie) DieSeal() *ResourceAttributesDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*ResourceAttributesDie) DieSealFeed ¶ added in v0.13.0
func (d *ResourceAttributesDie) DieSealFeed(r authorizationv1.ResourceAttributes) *ResourceAttributesDie
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 (*ResourceAttributesDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *ResourceAttributesDie) DieSealFeedPtr(r *authorizationv1.ResourceAttributes) *ResourceAttributesDie
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 (*ResourceAttributesDie) DieSealRelease ¶ added in v0.13.0
func (d *ResourceAttributesDie) DieSealRelease() authorizationv1.ResourceAttributes
DieSealRelease returns the sealed resource managed by the die.
func (*ResourceAttributesDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *ResourceAttributesDie) DieSealReleasePtr() *authorizationv1.ResourceAttributes
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ResourceAttributesDie) DieStamp ¶
func (d *ResourceAttributesDie) DieStamp(fn func(r *authorizationv1.ResourceAttributes)) *ResourceAttributesDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ResourceAttributesDie) DieStampAt ¶
func (d *ResourceAttributesDie) DieStampAt(jp string, fn interface{}) *ResourceAttributesDie
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 (*ResourceAttributesDie) DieWith ¶
func (d *ResourceAttributesDie) DieWith(fns ...func(d *ResourceAttributesDie)) *ResourceAttributesDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ResourceAttributesDie) FieldSelector ¶ added in v0.14.0
func (d *ResourceAttributesDie) FieldSelector(v *authorizationv1.FieldSelectorAttributes) *ResourceAttributesDie
fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.
This field is alpha-level. To use this field, you must enable the
`AuthorizeWithSelectors` feature gate (disabled by default).
func (*ResourceAttributesDie) FieldSelectorDie ¶ added in v0.14.0
func (d *ResourceAttributesDie) FieldSelectorDie(fn func(d *FieldSelectorAttributesDie)) *ResourceAttributesDie
FieldSelectorDie mutates FieldSelector as a die.
fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.
This field is alpha-level. To use this field, you must enable the
`AuthorizeWithSelectors` feature gate (disabled by default).
func (*ResourceAttributesDie) Group ¶
func (d *ResourceAttributesDie) Group(v string) *ResourceAttributesDie
Group is the API Group of the Resource. "*" means all.
func (*ResourceAttributesDie) LabelSelector ¶ added in v0.14.0
func (d *ResourceAttributesDie) LabelSelector(v *authorizationv1.LabelSelectorAttributes) *ResourceAttributesDie
labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.
This field is alpha-level. To use this field, you must enable the
`AuthorizeWithSelectors` feature gate (disabled by default).
func (*ResourceAttributesDie) LabelSelectorDie ¶ added in v0.14.0
func (d *ResourceAttributesDie) LabelSelectorDie(fn func(d *LabelSelectorAttributesDie)) *ResourceAttributesDie
LabelSelectorDie mutates LabelSelector as a die.
labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.
This field is alpha-level. To use this field, you must enable the
`AuthorizeWithSelectors` feature gate (disabled by default).
func (*ResourceAttributesDie) Name ¶
func (d *ResourceAttributesDie) Name(v string) *ResourceAttributesDie
Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
func (*ResourceAttributesDie) Namespace ¶
func (d *ResourceAttributesDie) Namespace(v string) *ResourceAttributesDie
Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces
"" (empty) is defaulted for LocalSubjectAccessReviews
"" (empty) is empty for cluster-scoped resources
"" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
func (*ResourceAttributesDie) Resource ¶
func (d *ResourceAttributesDie) Resource(v string) *ResourceAttributesDie
Resource is one of the existing resource types. "*" means all.
func (*ResourceAttributesDie) Subresource ¶
func (d *ResourceAttributesDie) Subresource(v string) *ResourceAttributesDie
Subresource is one of the existing resource types. "" means none.
func (*ResourceAttributesDie) Verb ¶
func (d *ResourceAttributesDie) Verb(v string) *ResourceAttributesDie
Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all.
func (*ResourceAttributesDie) Version ¶
func (d *ResourceAttributesDie) Version(v string) *ResourceAttributesDie
Version is the API Version of the Resource. "*" means all.
type ResourceRuleDie ¶
type ResourceRuleDie struct {
// contains filtered or unexported fields
}
func (*ResourceRuleDie) APIGroups ¶
func (d *ResourceRuleDie) APIGroups(v ...string) *ResourceRuleDie
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of
the enumerated resources in any API group will be allowed. "*" means all.
func (*ResourceRuleDie) DeepCopy ¶
func (d *ResourceRuleDie) DeepCopy() *ResourceRuleDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ResourceRuleDie) DieDiff ¶ added in v0.13.0
func (d *ResourceRuleDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*ResourceRuleDie) DieFeed ¶
func (d *ResourceRuleDie) DieFeed(r authorizationv1.ResourceRule) *ResourceRuleDie
DieFeed returns a new die with the provided resource.
func (*ResourceRuleDie) DieFeedJSON ¶
func (d *ResourceRuleDie) DieFeedJSON(j []byte) *ResourceRuleDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ResourceRuleDie) DieFeedPtr ¶
func (d *ResourceRuleDie) DieFeedPtr(r *authorizationv1.ResourceRule) *ResourceRuleDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ResourceRuleDie) DieFeedRawExtension ¶
func (d *ResourceRuleDie) DieFeedRawExtension(raw runtime.RawExtension) *ResourceRuleDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ResourceRuleDie) DieFeedYAML ¶
func (d *ResourceRuleDie) DieFeedYAML(y []byte) *ResourceRuleDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ResourceRuleDie) DieFeedYAMLFile ¶
func (d *ResourceRuleDie) DieFeedYAMLFile(name string) *ResourceRuleDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ResourceRuleDie) DieImmutable ¶
func (d *ResourceRuleDie) DieImmutable(immutable bool) *ResourceRuleDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ResourceRuleDie) DiePatch ¶ added in v0.13.0
func (d *ResourceRuleDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*ResourceRuleDie) DieRelease ¶
func (d *ResourceRuleDie) DieRelease() authorizationv1.ResourceRule
DieRelease returns the resource managed by the die.
func (*ResourceRuleDie) DieReleaseJSON ¶
func (d *ResourceRuleDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ResourceRuleDie) DieReleasePtr ¶
func (d *ResourceRuleDie) DieReleasePtr() *authorizationv1.ResourceRule
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ResourceRuleDie) DieReleaseRawExtension ¶
func (d *ResourceRuleDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ResourceRuleDie) DieReleaseYAML ¶
func (d *ResourceRuleDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ResourceRuleDie) DieSeal ¶ added in v0.13.0
func (d *ResourceRuleDie) DieSeal() *ResourceRuleDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*ResourceRuleDie) DieSealFeed ¶ added in v0.13.0
func (d *ResourceRuleDie) DieSealFeed(r authorizationv1.ResourceRule) *ResourceRuleDie
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 (*ResourceRuleDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *ResourceRuleDie) DieSealFeedPtr(r *authorizationv1.ResourceRule) *ResourceRuleDie
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 (*ResourceRuleDie) DieSealRelease ¶ added in v0.13.0
func (d *ResourceRuleDie) DieSealRelease() authorizationv1.ResourceRule
DieSealRelease returns the sealed resource managed by the die.
func (*ResourceRuleDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *ResourceRuleDie) DieSealReleasePtr() *authorizationv1.ResourceRule
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ResourceRuleDie) DieStamp ¶
func (d *ResourceRuleDie) DieStamp(fn func(r *authorizationv1.ResourceRule)) *ResourceRuleDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ResourceRuleDie) DieStampAt ¶
func (d *ResourceRuleDie) DieStampAt(jp string, fn interface{}) *ResourceRuleDie
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 (*ResourceRuleDie) DieWith ¶
func (d *ResourceRuleDie) DieWith(fns ...func(d *ResourceRuleDie)) *ResourceRuleDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ResourceRuleDie) ResourceNames ¶
func (d *ResourceRuleDie) ResourceNames(v ...string) *ResourceRuleDie
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all.
func (*ResourceRuleDie) Resources ¶
func (d *ResourceRuleDie) Resources(v ...string) *ResourceRuleDie
Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups.
"*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
func (*ResourceRuleDie) Verbs ¶
func (d *ResourceRuleDie) Verbs(v ...string) *ResourceRuleDie
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
type SelfSubjectAccessReviewDie ¶
type SelfSubjectAccessReviewDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*SelfSubjectAccessReviewDie) APIVersion ¶
func (d *SelfSubjectAccessReviewDie) APIVersion(v string) *SelfSubjectAccessReviewDie
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 (*SelfSubjectAccessReviewDie) DeepCopy ¶
func (d *SelfSubjectAccessReviewDie) DeepCopy() *SelfSubjectAccessReviewDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*SelfSubjectAccessReviewDie) DeepCopyObject ¶
func (d *SelfSubjectAccessReviewDie) DeepCopyObject() runtime.Object
func (*SelfSubjectAccessReviewDie) DieDefaultTypeMetadata ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewDie) DieDefaultTypeMetadata() *SelfSubjectAccessReviewDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "authorization.k8s.io/v1" and "SelfSubjectAccessReview" respectively.
func (*SelfSubjectAccessReviewDie) DieDiff ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*SelfSubjectAccessReviewDie) DieFeed ¶
func (d *SelfSubjectAccessReviewDie) DieFeed(r authorizationv1.SelfSubjectAccessReview) *SelfSubjectAccessReviewDie
DieFeed returns a new die with the provided resource.
func (*SelfSubjectAccessReviewDie) DieFeedJSON ¶
func (d *SelfSubjectAccessReviewDie) DieFeedJSON(j []byte) *SelfSubjectAccessReviewDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*SelfSubjectAccessReviewDie) DieFeedPtr ¶
func (d *SelfSubjectAccessReviewDie) DieFeedPtr(r *authorizationv1.SelfSubjectAccessReview) *SelfSubjectAccessReviewDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*SelfSubjectAccessReviewDie) DieFeedRawExtension ¶
func (d *SelfSubjectAccessReviewDie) DieFeedRawExtension(raw runtime.RawExtension) *SelfSubjectAccessReviewDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SelfSubjectAccessReviewDie) DieFeedYAML ¶
func (d *SelfSubjectAccessReviewDie) DieFeedYAML(y []byte) *SelfSubjectAccessReviewDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*SelfSubjectAccessReviewDie) DieFeedYAMLFile ¶
func (d *SelfSubjectAccessReviewDie) DieFeedYAMLFile(name string) *SelfSubjectAccessReviewDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*SelfSubjectAccessReviewDie) DieImmutable ¶
func (d *SelfSubjectAccessReviewDie) DieImmutable(immutable bool) *SelfSubjectAccessReviewDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*SelfSubjectAccessReviewDie) DiePatch ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*SelfSubjectAccessReviewDie) DieRelease ¶
func (d *SelfSubjectAccessReviewDie) DieRelease() authorizationv1.SelfSubjectAccessReview
DieRelease returns the resource managed by the die.
func (*SelfSubjectAccessReviewDie) DieReleaseJSON ¶
func (d *SelfSubjectAccessReviewDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*SelfSubjectAccessReviewDie) DieReleasePtr ¶
func (d *SelfSubjectAccessReviewDie) DieReleasePtr() *authorizationv1.SelfSubjectAccessReview
DieReleasePtr returns a pointer to the resource managed by the die.
func (*SelfSubjectAccessReviewDie) DieReleaseRawExtension ¶
func (d *SelfSubjectAccessReviewDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SelfSubjectAccessReviewDie) DieReleaseUnstructured ¶
func (d *SelfSubjectAccessReviewDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*SelfSubjectAccessReviewDie) DieReleaseYAML ¶
func (d *SelfSubjectAccessReviewDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*SelfSubjectAccessReviewDie) DieSeal ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewDie) DieSeal() *SelfSubjectAccessReviewDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*SelfSubjectAccessReviewDie) DieSealFeed ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewDie) DieSealFeed(r authorizationv1.SelfSubjectAccessReview) *SelfSubjectAccessReviewDie
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 (*SelfSubjectAccessReviewDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewDie) DieSealFeedPtr(r *authorizationv1.SelfSubjectAccessReview) *SelfSubjectAccessReviewDie
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 (*SelfSubjectAccessReviewDie) DieSealRelease ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewDie) DieSealRelease() authorizationv1.SelfSubjectAccessReview
DieSealRelease returns the sealed resource managed by the die.
func (*SelfSubjectAccessReviewDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewDie) DieSealReleasePtr() *authorizationv1.SelfSubjectAccessReview
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*SelfSubjectAccessReviewDie) DieStamp ¶
func (d *SelfSubjectAccessReviewDie) DieStamp(fn func(r *authorizationv1.SelfSubjectAccessReview)) *SelfSubjectAccessReviewDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*SelfSubjectAccessReviewDie) DieStampAt ¶
func (d *SelfSubjectAccessReviewDie) DieStampAt(jp string, fn interface{}) *SelfSubjectAccessReviewDie
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 (*SelfSubjectAccessReviewDie) DieWith ¶
func (d *SelfSubjectAccessReviewDie) DieWith(fns ...func(d *SelfSubjectAccessReviewDie)) *SelfSubjectAccessReviewDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*SelfSubjectAccessReviewDie) GetObjectKind ¶
func (d *SelfSubjectAccessReviewDie) GetObjectKind() schema.ObjectKind
func (*SelfSubjectAccessReviewDie) Kind ¶
func (d *SelfSubjectAccessReviewDie) Kind(v string) *SelfSubjectAccessReviewDie
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 (*SelfSubjectAccessReviewDie) MarshalJSON ¶
func (d *SelfSubjectAccessReviewDie) MarshalJSON() ([]byte, error)
func (*SelfSubjectAccessReviewDie) Metadata ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewDie) Metadata(v apismetav1.ObjectMeta) *SelfSubjectAccessReviewDie
Metadata standard object's metadata.
func (*SelfSubjectAccessReviewDie) MetadataDie ¶
func (d *SelfSubjectAccessReviewDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *SelfSubjectAccessReviewDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*SelfSubjectAccessReviewDie) Spec ¶
func (d *SelfSubjectAccessReviewDie) Spec(v authorizationv1.SelfSubjectAccessReviewSpec) *SelfSubjectAccessReviewDie
Spec holds information about the request being evaluated. user and groups must be empty
func (*SelfSubjectAccessReviewDie) SpecDie ¶
func (d *SelfSubjectAccessReviewDie) SpecDie(fn func(d *SelfSubjectAccessReviewSpecDie)) *SelfSubjectAccessReviewDie
SpecDie stamps the resource's spec field with a mutable die.
func (*SelfSubjectAccessReviewDie) Status ¶
func (d *SelfSubjectAccessReviewDie) Status(v authorizationv1.SubjectAccessReviewStatus) *SelfSubjectAccessReviewDie
Status is filled in by the server and indicates whether the request is allowed or not
func (*SelfSubjectAccessReviewDie) StatusDie ¶
func (d *SelfSubjectAccessReviewDie) StatusDie(fn func(d *SubjectAccessReviewStatusDie)) *SelfSubjectAccessReviewDie
StatusDie stamps the resource's status field with a mutable die.
func (*SelfSubjectAccessReviewDie) TypeMetadata ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewDie) TypeMetadata(v apismetav1.TypeMeta) *SelfSubjectAccessReviewDie
TypeMetadata standard object's type metadata.
func (*SelfSubjectAccessReviewDie) TypeMetadataDie ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *SelfSubjectAccessReviewDie
TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.
func (*SelfSubjectAccessReviewDie) UnmarshalJSON ¶
func (d *SelfSubjectAccessReviewDie) UnmarshalJSON(b []byte) error
type SelfSubjectAccessReviewSpecDie ¶
type SelfSubjectAccessReviewSpecDie struct {
// contains filtered or unexported fields
}
func (*SelfSubjectAccessReviewSpecDie) DeepCopy ¶
func (d *SelfSubjectAccessReviewSpecDie) DeepCopy() *SelfSubjectAccessReviewSpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*SelfSubjectAccessReviewSpecDie) DieDiff ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewSpecDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*SelfSubjectAccessReviewSpecDie) DieFeed ¶
func (d *SelfSubjectAccessReviewSpecDie) DieFeed(r authorizationv1.SelfSubjectAccessReviewSpec) *SelfSubjectAccessReviewSpecDie
DieFeed returns a new die with the provided resource.
func (*SelfSubjectAccessReviewSpecDie) DieFeedJSON ¶
func (d *SelfSubjectAccessReviewSpecDie) DieFeedJSON(j []byte) *SelfSubjectAccessReviewSpecDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*SelfSubjectAccessReviewSpecDie) DieFeedPtr ¶
func (d *SelfSubjectAccessReviewSpecDie) DieFeedPtr(r *authorizationv1.SelfSubjectAccessReviewSpec) *SelfSubjectAccessReviewSpecDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*SelfSubjectAccessReviewSpecDie) DieFeedRawExtension ¶
func (d *SelfSubjectAccessReviewSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *SelfSubjectAccessReviewSpecDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SelfSubjectAccessReviewSpecDie) DieFeedYAML ¶
func (d *SelfSubjectAccessReviewSpecDie) DieFeedYAML(y []byte) *SelfSubjectAccessReviewSpecDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*SelfSubjectAccessReviewSpecDie) DieFeedYAMLFile ¶
func (d *SelfSubjectAccessReviewSpecDie) DieFeedYAMLFile(name string) *SelfSubjectAccessReviewSpecDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*SelfSubjectAccessReviewSpecDie) DieImmutable ¶
func (d *SelfSubjectAccessReviewSpecDie) DieImmutable(immutable bool) *SelfSubjectAccessReviewSpecDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*SelfSubjectAccessReviewSpecDie) DiePatch ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*SelfSubjectAccessReviewSpecDie) DieRelease ¶
func (d *SelfSubjectAccessReviewSpecDie) DieRelease() authorizationv1.SelfSubjectAccessReviewSpec
DieRelease returns the resource managed by the die.
func (*SelfSubjectAccessReviewSpecDie) DieReleaseJSON ¶
func (d *SelfSubjectAccessReviewSpecDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*SelfSubjectAccessReviewSpecDie) DieReleasePtr ¶
func (d *SelfSubjectAccessReviewSpecDie) DieReleasePtr() *authorizationv1.SelfSubjectAccessReviewSpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*SelfSubjectAccessReviewSpecDie) DieReleaseRawExtension ¶
func (d *SelfSubjectAccessReviewSpecDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SelfSubjectAccessReviewSpecDie) DieReleaseYAML ¶
func (d *SelfSubjectAccessReviewSpecDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*SelfSubjectAccessReviewSpecDie) DieSeal ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewSpecDie) DieSeal() *SelfSubjectAccessReviewSpecDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*SelfSubjectAccessReviewSpecDie) DieSealFeed ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewSpecDie) DieSealFeed(r authorizationv1.SelfSubjectAccessReviewSpec) *SelfSubjectAccessReviewSpecDie
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 (*SelfSubjectAccessReviewSpecDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewSpecDie) DieSealFeedPtr(r *authorizationv1.SelfSubjectAccessReviewSpec) *SelfSubjectAccessReviewSpecDie
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 (*SelfSubjectAccessReviewSpecDie) DieSealRelease ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewSpecDie) DieSealRelease() authorizationv1.SelfSubjectAccessReviewSpec
DieSealRelease returns the sealed resource managed by the die.
func (*SelfSubjectAccessReviewSpecDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *SelfSubjectAccessReviewSpecDie) DieSealReleasePtr() *authorizationv1.SelfSubjectAccessReviewSpec
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*SelfSubjectAccessReviewSpecDie) DieStamp ¶
func (d *SelfSubjectAccessReviewSpecDie) DieStamp(fn func(r *authorizationv1.SelfSubjectAccessReviewSpec)) *SelfSubjectAccessReviewSpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*SelfSubjectAccessReviewSpecDie) DieStampAt ¶
func (d *SelfSubjectAccessReviewSpecDie) DieStampAt(jp string, fn interface{}) *SelfSubjectAccessReviewSpecDie
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 (*SelfSubjectAccessReviewSpecDie) DieWith ¶
func (d *SelfSubjectAccessReviewSpecDie) DieWith(fns ...func(d *SelfSubjectAccessReviewSpecDie)) *SelfSubjectAccessReviewSpecDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*SelfSubjectAccessReviewSpecDie) NonResourceAttributes ¶
func (d *SelfSubjectAccessReviewSpecDie) NonResourceAttributes(v *authorizationv1.NonResourceAttributes) *SelfSubjectAccessReviewSpecDie
NonResourceAttributes describes information for a non-resource access request
func (*SelfSubjectAccessReviewSpecDie) NonResourceAttributesDie ¶
func (d *SelfSubjectAccessReviewSpecDie) NonResourceAttributesDie(fn func(d *NonResourceAttributesDie)) *SelfSubjectAccessReviewSpecDie
NonResourceAttributesDie mutates NonResourceAttributes as a die.
NonResourceAttributes describes information for a non-resource access request
func (*SelfSubjectAccessReviewSpecDie) ResourceAttributes ¶
func (d *SelfSubjectAccessReviewSpecDie) ResourceAttributes(v *authorizationv1.ResourceAttributes) *SelfSubjectAccessReviewSpecDie
ResourceAuthorizationAttributes describes information for a resource access request
func (*SelfSubjectAccessReviewSpecDie) ResourceAttributesDie ¶
func (d *SelfSubjectAccessReviewSpecDie) ResourceAttributesDie(fn func(d *ResourceAttributesDie)) *SelfSubjectAccessReviewSpecDie
ResourceAttributesDie mutates ResourceAttributes as a die.
ResourceAuthorizationAttributes describes information for a resource access request
type SelfSubjectRulesReviewDie ¶
type SelfSubjectRulesReviewDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*SelfSubjectRulesReviewDie) APIVersion ¶
func (d *SelfSubjectRulesReviewDie) APIVersion(v string) *SelfSubjectRulesReviewDie
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 (*SelfSubjectRulesReviewDie) DeepCopy ¶
func (d *SelfSubjectRulesReviewDie) DeepCopy() *SelfSubjectRulesReviewDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*SelfSubjectRulesReviewDie) DeepCopyObject ¶
func (d *SelfSubjectRulesReviewDie) DeepCopyObject() runtime.Object
func (*SelfSubjectRulesReviewDie) DieDefaultTypeMetadata ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewDie) DieDefaultTypeMetadata() *SelfSubjectRulesReviewDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "authorization.k8s.io/v1" and "SelfSubjectRulesReview" respectively.
func (*SelfSubjectRulesReviewDie) DieDiff ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*SelfSubjectRulesReviewDie) DieFeed ¶
func (d *SelfSubjectRulesReviewDie) DieFeed(r authorizationv1.SelfSubjectRulesReview) *SelfSubjectRulesReviewDie
DieFeed returns a new die with the provided resource.
func (*SelfSubjectRulesReviewDie) DieFeedJSON ¶
func (d *SelfSubjectRulesReviewDie) DieFeedJSON(j []byte) *SelfSubjectRulesReviewDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*SelfSubjectRulesReviewDie) DieFeedPtr ¶
func (d *SelfSubjectRulesReviewDie) DieFeedPtr(r *authorizationv1.SelfSubjectRulesReview) *SelfSubjectRulesReviewDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*SelfSubjectRulesReviewDie) DieFeedRawExtension ¶
func (d *SelfSubjectRulesReviewDie) DieFeedRawExtension(raw runtime.RawExtension) *SelfSubjectRulesReviewDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SelfSubjectRulesReviewDie) DieFeedYAML ¶
func (d *SelfSubjectRulesReviewDie) DieFeedYAML(y []byte) *SelfSubjectRulesReviewDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*SelfSubjectRulesReviewDie) DieFeedYAMLFile ¶
func (d *SelfSubjectRulesReviewDie) DieFeedYAMLFile(name string) *SelfSubjectRulesReviewDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*SelfSubjectRulesReviewDie) DieImmutable ¶
func (d *SelfSubjectRulesReviewDie) DieImmutable(immutable bool) *SelfSubjectRulesReviewDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*SelfSubjectRulesReviewDie) DiePatch ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*SelfSubjectRulesReviewDie) DieRelease ¶
func (d *SelfSubjectRulesReviewDie) DieRelease() authorizationv1.SelfSubjectRulesReview
DieRelease returns the resource managed by the die.
func (*SelfSubjectRulesReviewDie) DieReleaseJSON ¶
func (d *SelfSubjectRulesReviewDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*SelfSubjectRulesReviewDie) DieReleasePtr ¶
func (d *SelfSubjectRulesReviewDie) DieReleasePtr() *authorizationv1.SelfSubjectRulesReview
DieReleasePtr returns a pointer to the resource managed by the die.
func (*SelfSubjectRulesReviewDie) DieReleaseRawExtension ¶
func (d *SelfSubjectRulesReviewDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SelfSubjectRulesReviewDie) DieReleaseUnstructured ¶
func (d *SelfSubjectRulesReviewDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*SelfSubjectRulesReviewDie) DieReleaseYAML ¶
func (d *SelfSubjectRulesReviewDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*SelfSubjectRulesReviewDie) DieSeal ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewDie) DieSeal() *SelfSubjectRulesReviewDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*SelfSubjectRulesReviewDie) DieSealFeed ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewDie) DieSealFeed(r authorizationv1.SelfSubjectRulesReview) *SelfSubjectRulesReviewDie
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 (*SelfSubjectRulesReviewDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewDie) DieSealFeedPtr(r *authorizationv1.SelfSubjectRulesReview) *SelfSubjectRulesReviewDie
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 (*SelfSubjectRulesReviewDie) DieSealRelease ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewDie) DieSealRelease() authorizationv1.SelfSubjectRulesReview
DieSealRelease returns the sealed resource managed by the die.
func (*SelfSubjectRulesReviewDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewDie) DieSealReleasePtr() *authorizationv1.SelfSubjectRulesReview
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*SelfSubjectRulesReviewDie) DieStamp ¶
func (d *SelfSubjectRulesReviewDie) DieStamp(fn func(r *authorizationv1.SelfSubjectRulesReview)) *SelfSubjectRulesReviewDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*SelfSubjectRulesReviewDie) DieStampAt ¶
func (d *SelfSubjectRulesReviewDie) DieStampAt(jp string, fn interface{}) *SelfSubjectRulesReviewDie
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 (*SelfSubjectRulesReviewDie) DieWith ¶
func (d *SelfSubjectRulesReviewDie) DieWith(fns ...func(d *SelfSubjectRulesReviewDie)) *SelfSubjectRulesReviewDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*SelfSubjectRulesReviewDie) GetObjectKind ¶
func (d *SelfSubjectRulesReviewDie) GetObjectKind() schema.ObjectKind
func (*SelfSubjectRulesReviewDie) Kind ¶
func (d *SelfSubjectRulesReviewDie) Kind(v string) *SelfSubjectRulesReviewDie
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 (*SelfSubjectRulesReviewDie) MarshalJSON ¶
func (d *SelfSubjectRulesReviewDie) MarshalJSON() ([]byte, error)
func (*SelfSubjectRulesReviewDie) Metadata ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewDie) Metadata(v apismetav1.ObjectMeta) *SelfSubjectRulesReviewDie
Metadata standard object's metadata.
func (*SelfSubjectRulesReviewDie) MetadataDie ¶
func (d *SelfSubjectRulesReviewDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *SelfSubjectRulesReviewDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*SelfSubjectRulesReviewDie) Spec ¶
func (d *SelfSubjectRulesReviewDie) Spec(v authorizationv1.SelfSubjectRulesReviewSpec) *SelfSubjectRulesReviewDie
Spec holds information about the request being evaluated.
func (*SelfSubjectRulesReviewDie) SpecDie ¶
func (d *SelfSubjectRulesReviewDie) SpecDie(fn func(d *SelfSubjectRulesReviewSpecDie)) *SelfSubjectRulesReviewDie
SpecDie stamps the resource's spec field with a mutable die.
func (*SelfSubjectRulesReviewDie) Status ¶
func (d *SelfSubjectRulesReviewDie) Status(v authorizationv1.SubjectRulesReviewStatus) *SelfSubjectRulesReviewDie
Status is filled in by the server and indicates the set of actions a user can perform.
func (*SelfSubjectRulesReviewDie) StatusDie ¶
func (d *SelfSubjectRulesReviewDie) StatusDie(fn func(d *SubjectRulesReviewStatusDie)) *SelfSubjectRulesReviewDie
StatusDie stamps the resource's status field with a mutable die.
func (*SelfSubjectRulesReviewDie) TypeMetadata ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewDie) TypeMetadata(v apismetav1.TypeMeta) *SelfSubjectRulesReviewDie
TypeMetadata standard object's type metadata.
func (*SelfSubjectRulesReviewDie) TypeMetadataDie ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *SelfSubjectRulesReviewDie
TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.
func (*SelfSubjectRulesReviewDie) UnmarshalJSON ¶
func (d *SelfSubjectRulesReviewDie) UnmarshalJSON(b []byte) error
type SelfSubjectRulesReviewSpecDie ¶
type SelfSubjectRulesReviewSpecDie struct {
// contains filtered or unexported fields
}
func (*SelfSubjectRulesReviewSpecDie) DeepCopy ¶
func (d *SelfSubjectRulesReviewSpecDie) DeepCopy() *SelfSubjectRulesReviewSpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*SelfSubjectRulesReviewSpecDie) DieDiff ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewSpecDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*SelfSubjectRulesReviewSpecDie) DieFeed ¶
func (d *SelfSubjectRulesReviewSpecDie) DieFeed(r authorizationv1.SelfSubjectRulesReviewSpec) *SelfSubjectRulesReviewSpecDie
DieFeed returns a new die with the provided resource.
func (*SelfSubjectRulesReviewSpecDie) DieFeedJSON ¶
func (d *SelfSubjectRulesReviewSpecDie) DieFeedJSON(j []byte) *SelfSubjectRulesReviewSpecDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*SelfSubjectRulesReviewSpecDie) DieFeedPtr ¶
func (d *SelfSubjectRulesReviewSpecDie) DieFeedPtr(r *authorizationv1.SelfSubjectRulesReviewSpec) *SelfSubjectRulesReviewSpecDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*SelfSubjectRulesReviewSpecDie) DieFeedRawExtension ¶
func (d *SelfSubjectRulesReviewSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *SelfSubjectRulesReviewSpecDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SelfSubjectRulesReviewSpecDie) DieFeedYAML ¶
func (d *SelfSubjectRulesReviewSpecDie) DieFeedYAML(y []byte) *SelfSubjectRulesReviewSpecDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*SelfSubjectRulesReviewSpecDie) DieFeedYAMLFile ¶
func (d *SelfSubjectRulesReviewSpecDie) DieFeedYAMLFile(name string) *SelfSubjectRulesReviewSpecDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*SelfSubjectRulesReviewSpecDie) DieImmutable ¶
func (d *SelfSubjectRulesReviewSpecDie) DieImmutable(immutable bool) *SelfSubjectRulesReviewSpecDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*SelfSubjectRulesReviewSpecDie) DiePatch ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*SelfSubjectRulesReviewSpecDie) DieRelease ¶
func (d *SelfSubjectRulesReviewSpecDie) DieRelease() authorizationv1.SelfSubjectRulesReviewSpec
DieRelease returns the resource managed by the die.
func (*SelfSubjectRulesReviewSpecDie) DieReleaseJSON ¶
func (d *SelfSubjectRulesReviewSpecDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*SelfSubjectRulesReviewSpecDie) DieReleasePtr ¶
func (d *SelfSubjectRulesReviewSpecDie) DieReleasePtr() *authorizationv1.SelfSubjectRulesReviewSpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*SelfSubjectRulesReviewSpecDie) DieReleaseRawExtension ¶
func (d *SelfSubjectRulesReviewSpecDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SelfSubjectRulesReviewSpecDie) DieReleaseYAML ¶
func (d *SelfSubjectRulesReviewSpecDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*SelfSubjectRulesReviewSpecDie) DieSeal ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewSpecDie) DieSeal() *SelfSubjectRulesReviewSpecDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*SelfSubjectRulesReviewSpecDie) DieSealFeed ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewSpecDie) DieSealFeed(r authorizationv1.SelfSubjectRulesReviewSpec) *SelfSubjectRulesReviewSpecDie
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 (*SelfSubjectRulesReviewSpecDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewSpecDie) DieSealFeedPtr(r *authorizationv1.SelfSubjectRulesReviewSpec) *SelfSubjectRulesReviewSpecDie
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 (*SelfSubjectRulesReviewSpecDie) DieSealRelease ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewSpecDie) DieSealRelease() authorizationv1.SelfSubjectRulesReviewSpec
DieSealRelease returns the sealed resource managed by the die.
func (*SelfSubjectRulesReviewSpecDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *SelfSubjectRulesReviewSpecDie) DieSealReleasePtr() *authorizationv1.SelfSubjectRulesReviewSpec
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*SelfSubjectRulesReviewSpecDie) DieStamp ¶
func (d *SelfSubjectRulesReviewSpecDie) DieStamp(fn func(r *authorizationv1.SelfSubjectRulesReviewSpec)) *SelfSubjectRulesReviewSpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*SelfSubjectRulesReviewSpecDie) DieStampAt ¶
func (d *SelfSubjectRulesReviewSpecDie) DieStampAt(jp string, fn interface{}) *SelfSubjectRulesReviewSpecDie
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 (*SelfSubjectRulesReviewSpecDie) DieWith ¶
func (d *SelfSubjectRulesReviewSpecDie) DieWith(fns ...func(d *SelfSubjectRulesReviewSpecDie)) *SelfSubjectRulesReviewSpecDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*SelfSubjectRulesReviewSpecDie) Namespace ¶
func (d *SelfSubjectRulesReviewSpecDie) Namespace(v string) *SelfSubjectRulesReviewSpecDie
Namespace to evaluate rules for. Required.
type SubjectAccessReviewDie ¶
type SubjectAccessReviewDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*SubjectAccessReviewDie) APIVersion ¶
func (d *SubjectAccessReviewDie) APIVersion(v string) *SubjectAccessReviewDie
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 (*SubjectAccessReviewDie) DeepCopy ¶
func (d *SubjectAccessReviewDie) DeepCopy() *SubjectAccessReviewDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*SubjectAccessReviewDie) DeepCopyObject ¶
func (d *SubjectAccessReviewDie) DeepCopyObject() runtime.Object
func (*SubjectAccessReviewDie) DieDefaultTypeMetadata ¶ added in v0.13.0
func (d *SubjectAccessReviewDie) DieDefaultTypeMetadata() *SubjectAccessReviewDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "authorization.k8s.io/v1" and "SubjectAccessReview" respectively.
func (*SubjectAccessReviewDie) DieDiff ¶ added in v0.13.0
func (d *SubjectAccessReviewDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*SubjectAccessReviewDie) DieFeed ¶
func (d *SubjectAccessReviewDie) DieFeed(r authorizationv1.SubjectAccessReview) *SubjectAccessReviewDie
DieFeed returns a new die with the provided resource.
func (*SubjectAccessReviewDie) DieFeedJSON ¶
func (d *SubjectAccessReviewDie) DieFeedJSON(j []byte) *SubjectAccessReviewDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*SubjectAccessReviewDie) DieFeedPtr ¶
func (d *SubjectAccessReviewDie) DieFeedPtr(r *authorizationv1.SubjectAccessReview) *SubjectAccessReviewDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*SubjectAccessReviewDie) DieFeedRawExtension ¶
func (d *SubjectAccessReviewDie) DieFeedRawExtension(raw runtime.RawExtension) *SubjectAccessReviewDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SubjectAccessReviewDie) DieFeedYAML ¶
func (d *SubjectAccessReviewDie) DieFeedYAML(y []byte) *SubjectAccessReviewDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*SubjectAccessReviewDie) DieFeedYAMLFile ¶
func (d *SubjectAccessReviewDie) DieFeedYAMLFile(name string) *SubjectAccessReviewDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*SubjectAccessReviewDie) DieImmutable ¶
func (d *SubjectAccessReviewDie) DieImmutable(immutable bool) *SubjectAccessReviewDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*SubjectAccessReviewDie) DiePatch ¶ added in v0.13.0
func (d *SubjectAccessReviewDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*SubjectAccessReviewDie) DieRelease ¶
func (d *SubjectAccessReviewDie) DieRelease() authorizationv1.SubjectAccessReview
DieRelease returns the resource managed by the die.
func (*SubjectAccessReviewDie) DieReleaseJSON ¶
func (d *SubjectAccessReviewDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*SubjectAccessReviewDie) DieReleasePtr ¶
func (d *SubjectAccessReviewDie) DieReleasePtr() *authorizationv1.SubjectAccessReview
DieReleasePtr returns a pointer to the resource managed by the die.
func (*SubjectAccessReviewDie) DieReleaseRawExtension ¶
func (d *SubjectAccessReviewDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SubjectAccessReviewDie) DieReleaseUnstructured ¶
func (d *SubjectAccessReviewDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*SubjectAccessReviewDie) DieReleaseYAML ¶
func (d *SubjectAccessReviewDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*SubjectAccessReviewDie) DieSeal ¶ added in v0.13.0
func (d *SubjectAccessReviewDie) DieSeal() *SubjectAccessReviewDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*SubjectAccessReviewDie) DieSealFeed ¶ added in v0.13.0
func (d *SubjectAccessReviewDie) DieSealFeed(r authorizationv1.SubjectAccessReview) *SubjectAccessReviewDie
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 (*SubjectAccessReviewDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *SubjectAccessReviewDie) DieSealFeedPtr(r *authorizationv1.SubjectAccessReview) *SubjectAccessReviewDie
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 (*SubjectAccessReviewDie) DieSealRelease ¶ added in v0.13.0
func (d *SubjectAccessReviewDie) DieSealRelease() authorizationv1.SubjectAccessReview
DieSealRelease returns the sealed resource managed by the die.
func (*SubjectAccessReviewDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *SubjectAccessReviewDie) DieSealReleasePtr() *authorizationv1.SubjectAccessReview
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*SubjectAccessReviewDie) DieStamp ¶
func (d *SubjectAccessReviewDie) DieStamp(fn func(r *authorizationv1.SubjectAccessReview)) *SubjectAccessReviewDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*SubjectAccessReviewDie) DieStampAt ¶
func (d *SubjectAccessReviewDie) DieStampAt(jp string, fn interface{}) *SubjectAccessReviewDie
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 (*SubjectAccessReviewDie) DieWith ¶
func (d *SubjectAccessReviewDie) DieWith(fns ...func(d *SubjectAccessReviewDie)) *SubjectAccessReviewDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*SubjectAccessReviewDie) GetObjectKind ¶
func (d *SubjectAccessReviewDie) GetObjectKind() schema.ObjectKind
func (*SubjectAccessReviewDie) Kind ¶
func (d *SubjectAccessReviewDie) Kind(v string) *SubjectAccessReviewDie
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 (*SubjectAccessReviewDie) MarshalJSON ¶
func (d *SubjectAccessReviewDie) MarshalJSON() ([]byte, error)
func (*SubjectAccessReviewDie) Metadata ¶ added in v0.13.0
func (d *SubjectAccessReviewDie) Metadata(v apismetav1.ObjectMeta) *SubjectAccessReviewDie
Metadata standard object's metadata.
func (*SubjectAccessReviewDie) MetadataDie ¶
func (d *SubjectAccessReviewDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *SubjectAccessReviewDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*SubjectAccessReviewDie) Spec ¶
func (d *SubjectAccessReviewDie) Spec(v authorizationv1.SubjectAccessReviewSpec) *SubjectAccessReviewDie
Spec holds information about the request being evaluated
func (*SubjectAccessReviewDie) SpecDie ¶
func (d *SubjectAccessReviewDie) SpecDie(fn func(d *SubjectAccessReviewSpecDie)) *SubjectAccessReviewDie
SpecDie stamps the resource's spec field with a mutable die.
func (*SubjectAccessReviewDie) Status ¶
func (d *SubjectAccessReviewDie) Status(v authorizationv1.SubjectAccessReviewStatus) *SubjectAccessReviewDie
Status is filled in by the server and indicates whether the request is allowed or not
func (*SubjectAccessReviewDie) StatusDie ¶
func (d *SubjectAccessReviewDie) StatusDie(fn func(d *SubjectAccessReviewStatusDie)) *SubjectAccessReviewDie
StatusDie stamps the resource's status field with a mutable die.
func (*SubjectAccessReviewDie) TypeMetadata ¶ added in v0.13.0
func (d *SubjectAccessReviewDie) TypeMetadata(v apismetav1.TypeMeta) *SubjectAccessReviewDie
TypeMetadata standard object's type metadata.
func (*SubjectAccessReviewDie) TypeMetadataDie ¶ added in v0.13.0
func (d *SubjectAccessReviewDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *SubjectAccessReviewDie
TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.
func (*SubjectAccessReviewDie) UnmarshalJSON ¶
func (d *SubjectAccessReviewDie) UnmarshalJSON(b []byte) error
type SubjectAccessReviewSpecDie ¶
type SubjectAccessReviewSpecDie struct {
// contains filtered or unexported fields
}
func (*SubjectAccessReviewSpecDie) AddExtra ¶
func (d *SubjectAccessReviewSpecDie) AddExtra(key string, value authorizationv1.ExtraValue) *SubjectAccessReviewSpecDie
func (*SubjectAccessReviewSpecDie) DeepCopy ¶
func (d *SubjectAccessReviewSpecDie) DeepCopy() *SubjectAccessReviewSpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*SubjectAccessReviewSpecDie) DieDiff ¶ added in v0.13.0
func (d *SubjectAccessReviewSpecDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*SubjectAccessReviewSpecDie) DieFeed ¶
func (d *SubjectAccessReviewSpecDie) DieFeed(r authorizationv1.SubjectAccessReviewSpec) *SubjectAccessReviewSpecDie
DieFeed returns a new die with the provided resource.
func (*SubjectAccessReviewSpecDie) DieFeedJSON ¶
func (d *SubjectAccessReviewSpecDie) DieFeedJSON(j []byte) *SubjectAccessReviewSpecDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*SubjectAccessReviewSpecDie) DieFeedPtr ¶
func (d *SubjectAccessReviewSpecDie) DieFeedPtr(r *authorizationv1.SubjectAccessReviewSpec) *SubjectAccessReviewSpecDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*SubjectAccessReviewSpecDie) DieFeedRawExtension ¶
func (d *SubjectAccessReviewSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *SubjectAccessReviewSpecDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SubjectAccessReviewSpecDie) DieFeedYAML ¶
func (d *SubjectAccessReviewSpecDie) DieFeedYAML(y []byte) *SubjectAccessReviewSpecDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*SubjectAccessReviewSpecDie) DieFeedYAMLFile ¶
func (d *SubjectAccessReviewSpecDie) DieFeedYAMLFile(name string) *SubjectAccessReviewSpecDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*SubjectAccessReviewSpecDie) DieImmutable ¶
func (d *SubjectAccessReviewSpecDie) DieImmutable(immutable bool) *SubjectAccessReviewSpecDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*SubjectAccessReviewSpecDie) DiePatch ¶ added in v0.13.0
func (d *SubjectAccessReviewSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*SubjectAccessReviewSpecDie) DieRelease ¶
func (d *SubjectAccessReviewSpecDie) DieRelease() authorizationv1.SubjectAccessReviewSpec
DieRelease returns the resource managed by the die.
func (*SubjectAccessReviewSpecDie) DieReleaseJSON ¶
func (d *SubjectAccessReviewSpecDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*SubjectAccessReviewSpecDie) DieReleasePtr ¶
func (d *SubjectAccessReviewSpecDie) DieReleasePtr() *authorizationv1.SubjectAccessReviewSpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*SubjectAccessReviewSpecDie) DieReleaseRawExtension ¶
func (d *SubjectAccessReviewSpecDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SubjectAccessReviewSpecDie) DieReleaseYAML ¶
func (d *SubjectAccessReviewSpecDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*SubjectAccessReviewSpecDie) DieSeal ¶ added in v0.13.0
func (d *SubjectAccessReviewSpecDie) DieSeal() *SubjectAccessReviewSpecDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*SubjectAccessReviewSpecDie) DieSealFeed ¶ added in v0.13.0
func (d *SubjectAccessReviewSpecDie) DieSealFeed(r authorizationv1.SubjectAccessReviewSpec) *SubjectAccessReviewSpecDie
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 (*SubjectAccessReviewSpecDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *SubjectAccessReviewSpecDie) DieSealFeedPtr(r *authorizationv1.SubjectAccessReviewSpec) *SubjectAccessReviewSpecDie
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 (*SubjectAccessReviewSpecDie) DieSealRelease ¶ added in v0.13.0
func (d *SubjectAccessReviewSpecDie) DieSealRelease() authorizationv1.SubjectAccessReviewSpec
DieSealRelease returns the sealed resource managed by the die.
func (*SubjectAccessReviewSpecDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *SubjectAccessReviewSpecDie) DieSealReleasePtr() *authorizationv1.SubjectAccessReviewSpec
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*SubjectAccessReviewSpecDie) DieStamp ¶
func (d *SubjectAccessReviewSpecDie) DieStamp(fn func(r *authorizationv1.SubjectAccessReviewSpec)) *SubjectAccessReviewSpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*SubjectAccessReviewSpecDie) DieStampAt ¶
func (d *SubjectAccessReviewSpecDie) DieStampAt(jp string, fn interface{}) *SubjectAccessReviewSpecDie
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 (*SubjectAccessReviewSpecDie) DieWith ¶
func (d *SubjectAccessReviewSpecDie) DieWith(fns ...func(d *SubjectAccessReviewSpecDie)) *SubjectAccessReviewSpecDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*SubjectAccessReviewSpecDie) Extra ¶
func (d *SubjectAccessReviewSpecDie) Extra(v map[string]authorizationv1.ExtraValue) *SubjectAccessReviewSpecDie
Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.
func (*SubjectAccessReviewSpecDie) Groups ¶
func (d *SubjectAccessReviewSpecDie) Groups(v ...string) *SubjectAccessReviewSpecDie
Groups is the groups you're testing for.
func (*SubjectAccessReviewSpecDie) NonResourceAttributes ¶
func (d *SubjectAccessReviewSpecDie) NonResourceAttributes(v *authorizationv1.NonResourceAttributes) *SubjectAccessReviewSpecDie
NonResourceAttributes describes information for a non-resource access request
func (*SubjectAccessReviewSpecDie) NonResourceAttributesDie ¶
func (d *SubjectAccessReviewSpecDie) NonResourceAttributesDie(fn func(d *NonResourceAttributesDie)) *SubjectAccessReviewSpecDie
NonResourceAttributesDie mutates NonResourceAttributes as a die.
NonResourceAttributes describes information for a non-resource access request
func (*SubjectAccessReviewSpecDie) ResourceAttributes ¶
func (d *SubjectAccessReviewSpecDie) ResourceAttributes(v *authorizationv1.ResourceAttributes) *SubjectAccessReviewSpecDie
ResourceAuthorizationAttributes describes information for a resource access request
func (*SubjectAccessReviewSpecDie) ResourceAttributesDie ¶
func (d *SubjectAccessReviewSpecDie) ResourceAttributesDie(fn func(d *ResourceAttributesDie)) *SubjectAccessReviewSpecDie
ResourceAttributesDie mutates ResourceAttributes as a die.
ResourceAuthorizationAttributes describes information for a resource access request
func (*SubjectAccessReviewSpecDie) UID ¶
func (d *SubjectAccessReviewSpecDie) UID(v string) *SubjectAccessReviewSpecDie
UID information about the requesting user.
func (*SubjectAccessReviewSpecDie) User ¶
func (d *SubjectAccessReviewSpecDie) User(v string) *SubjectAccessReviewSpecDie
User is the user you're testing for.
If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
type SubjectAccessReviewStatusDie ¶
type SubjectAccessReviewStatusDie struct {
// contains filtered or unexported fields
}
func (*SubjectAccessReviewStatusDie) Allowed ¶
func (d *SubjectAccessReviewStatusDie) Allowed(v bool) *SubjectAccessReviewStatusDie
Allowed is required. True if the action would be allowed, false otherwise.
func (*SubjectAccessReviewStatusDie) DeepCopy ¶
func (d *SubjectAccessReviewStatusDie) DeepCopy() *SubjectAccessReviewStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*SubjectAccessReviewStatusDie) Denied ¶
func (d *SubjectAccessReviewStatusDie) Denied(v bool) *SubjectAccessReviewStatusDie
Denied is optional. True if the action would be denied, otherwise
false. If both allowed is false and denied is false, then the
authorizer has no opinion on whether to authorize the action. Denied
may not be true if Allowed is true.
func (*SubjectAccessReviewStatusDie) DieDiff ¶ added in v0.13.0
func (d *SubjectAccessReviewStatusDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*SubjectAccessReviewStatusDie) DieFeed ¶
func (d *SubjectAccessReviewStatusDie) DieFeed(r authorizationv1.SubjectAccessReviewStatus) *SubjectAccessReviewStatusDie
DieFeed returns a new die with the provided resource.
func (*SubjectAccessReviewStatusDie) DieFeedJSON ¶
func (d *SubjectAccessReviewStatusDie) DieFeedJSON(j []byte) *SubjectAccessReviewStatusDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*SubjectAccessReviewStatusDie) DieFeedPtr ¶
func (d *SubjectAccessReviewStatusDie) DieFeedPtr(r *authorizationv1.SubjectAccessReviewStatus) *SubjectAccessReviewStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*SubjectAccessReviewStatusDie) DieFeedRawExtension ¶
func (d *SubjectAccessReviewStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *SubjectAccessReviewStatusDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SubjectAccessReviewStatusDie) DieFeedYAML ¶
func (d *SubjectAccessReviewStatusDie) DieFeedYAML(y []byte) *SubjectAccessReviewStatusDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*SubjectAccessReviewStatusDie) DieFeedYAMLFile ¶
func (d *SubjectAccessReviewStatusDie) DieFeedYAMLFile(name string) *SubjectAccessReviewStatusDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*SubjectAccessReviewStatusDie) DieImmutable ¶
func (d *SubjectAccessReviewStatusDie) DieImmutable(immutable bool) *SubjectAccessReviewStatusDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*SubjectAccessReviewStatusDie) DiePatch ¶ added in v0.13.0
func (d *SubjectAccessReviewStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*SubjectAccessReviewStatusDie) DieRelease ¶
func (d *SubjectAccessReviewStatusDie) DieRelease() authorizationv1.SubjectAccessReviewStatus
DieRelease returns the resource managed by the die.
func (*SubjectAccessReviewStatusDie) DieReleaseJSON ¶
func (d *SubjectAccessReviewStatusDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*SubjectAccessReviewStatusDie) DieReleasePtr ¶
func (d *SubjectAccessReviewStatusDie) DieReleasePtr() *authorizationv1.SubjectAccessReviewStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*SubjectAccessReviewStatusDie) DieReleaseRawExtension ¶
func (d *SubjectAccessReviewStatusDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SubjectAccessReviewStatusDie) DieReleaseYAML ¶
func (d *SubjectAccessReviewStatusDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*SubjectAccessReviewStatusDie) DieSeal ¶ added in v0.13.0
func (d *SubjectAccessReviewStatusDie) DieSeal() *SubjectAccessReviewStatusDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*SubjectAccessReviewStatusDie) DieSealFeed ¶ added in v0.13.0
func (d *SubjectAccessReviewStatusDie) DieSealFeed(r authorizationv1.SubjectAccessReviewStatus) *SubjectAccessReviewStatusDie
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 (*SubjectAccessReviewStatusDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *SubjectAccessReviewStatusDie) DieSealFeedPtr(r *authorizationv1.SubjectAccessReviewStatus) *SubjectAccessReviewStatusDie
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 (*SubjectAccessReviewStatusDie) DieSealRelease ¶ added in v0.13.0
func (d *SubjectAccessReviewStatusDie) DieSealRelease() authorizationv1.SubjectAccessReviewStatus
DieSealRelease returns the sealed resource managed by the die.
func (*SubjectAccessReviewStatusDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *SubjectAccessReviewStatusDie) DieSealReleasePtr() *authorizationv1.SubjectAccessReviewStatus
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*SubjectAccessReviewStatusDie) DieStamp ¶
func (d *SubjectAccessReviewStatusDie) DieStamp(fn func(r *authorizationv1.SubjectAccessReviewStatus)) *SubjectAccessReviewStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*SubjectAccessReviewStatusDie) DieStampAt ¶
func (d *SubjectAccessReviewStatusDie) DieStampAt(jp string, fn interface{}) *SubjectAccessReviewStatusDie
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 (*SubjectAccessReviewStatusDie) DieWith ¶
func (d *SubjectAccessReviewStatusDie) DieWith(fns ...func(d *SubjectAccessReviewStatusDie)) *SubjectAccessReviewStatusDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*SubjectAccessReviewStatusDie) EvaluationError ¶
func (d *SubjectAccessReviewStatusDie) EvaluationError(v string) *SubjectAccessReviewStatusDie
EvaluationError is an indication that some error occurred during the authorization check.
It is entirely possible to get an error and be able to continue determine authorization status in spite of it.
For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.
func (*SubjectAccessReviewStatusDie) Reason ¶
func (d *SubjectAccessReviewStatusDie) Reason(v string) *SubjectAccessReviewStatusDie
Reason is optional. It indicates why a request was allowed or denied.
type SubjectRulesReviewStatusDie ¶
type SubjectRulesReviewStatusDie struct {
// contains filtered or unexported fields
}
func (*SubjectRulesReviewStatusDie) DeepCopy ¶
func (d *SubjectRulesReviewStatusDie) DeepCopy() *SubjectRulesReviewStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*SubjectRulesReviewStatusDie) DieDiff ¶ added in v0.13.0
func (d *SubjectRulesReviewStatusDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*SubjectRulesReviewStatusDie) DieFeed ¶
func (d *SubjectRulesReviewStatusDie) DieFeed(r authorizationv1.SubjectRulesReviewStatus) *SubjectRulesReviewStatusDie
DieFeed returns a new die with the provided resource.
func (*SubjectRulesReviewStatusDie) DieFeedJSON ¶
func (d *SubjectRulesReviewStatusDie) DieFeedJSON(j []byte) *SubjectRulesReviewStatusDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*SubjectRulesReviewStatusDie) DieFeedPtr ¶
func (d *SubjectRulesReviewStatusDie) DieFeedPtr(r *authorizationv1.SubjectRulesReviewStatus) *SubjectRulesReviewStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*SubjectRulesReviewStatusDie) DieFeedRawExtension ¶
func (d *SubjectRulesReviewStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *SubjectRulesReviewStatusDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SubjectRulesReviewStatusDie) DieFeedYAML ¶
func (d *SubjectRulesReviewStatusDie) DieFeedYAML(y []byte) *SubjectRulesReviewStatusDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*SubjectRulesReviewStatusDie) DieFeedYAMLFile ¶
func (d *SubjectRulesReviewStatusDie) DieFeedYAMLFile(name string) *SubjectRulesReviewStatusDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*SubjectRulesReviewStatusDie) DieImmutable ¶
func (d *SubjectRulesReviewStatusDie) DieImmutable(immutable bool) *SubjectRulesReviewStatusDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*SubjectRulesReviewStatusDie) DiePatch ¶ added in v0.13.0
func (d *SubjectRulesReviewStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*SubjectRulesReviewStatusDie) DieRelease ¶
func (d *SubjectRulesReviewStatusDie) DieRelease() authorizationv1.SubjectRulesReviewStatus
DieRelease returns the resource managed by the die.
func (*SubjectRulesReviewStatusDie) DieReleaseJSON ¶
func (d *SubjectRulesReviewStatusDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*SubjectRulesReviewStatusDie) DieReleasePtr ¶
func (d *SubjectRulesReviewStatusDie) DieReleasePtr() *authorizationv1.SubjectRulesReviewStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*SubjectRulesReviewStatusDie) DieReleaseRawExtension ¶
func (d *SubjectRulesReviewStatusDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SubjectRulesReviewStatusDie) DieReleaseYAML ¶
func (d *SubjectRulesReviewStatusDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*SubjectRulesReviewStatusDie) DieSeal ¶ added in v0.13.0
func (d *SubjectRulesReviewStatusDie) DieSeal() *SubjectRulesReviewStatusDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*SubjectRulesReviewStatusDie) DieSealFeed ¶ added in v0.13.0
func (d *SubjectRulesReviewStatusDie) DieSealFeed(r authorizationv1.SubjectRulesReviewStatus) *SubjectRulesReviewStatusDie
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 (*SubjectRulesReviewStatusDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *SubjectRulesReviewStatusDie) DieSealFeedPtr(r *authorizationv1.SubjectRulesReviewStatus) *SubjectRulesReviewStatusDie
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 (*SubjectRulesReviewStatusDie) DieSealRelease ¶ added in v0.13.0
func (d *SubjectRulesReviewStatusDie) DieSealRelease() authorizationv1.SubjectRulesReviewStatus
DieSealRelease returns the sealed resource managed by the die.
func (*SubjectRulesReviewStatusDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *SubjectRulesReviewStatusDie) DieSealReleasePtr() *authorizationv1.SubjectRulesReviewStatus
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*SubjectRulesReviewStatusDie) DieStamp ¶
func (d *SubjectRulesReviewStatusDie) DieStamp(fn func(r *authorizationv1.SubjectRulesReviewStatus)) *SubjectRulesReviewStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*SubjectRulesReviewStatusDie) DieStampAt ¶
func (d *SubjectRulesReviewStatusDie) DieStampAt(jp string, fn interface{}) *SubjectRulesReviewStatusDie
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 (*SubjectRulesReviewStatusDie) DieWith ¶
func (d *SubjectRulesReviewStatusDie) DieWith(fns ...func(d *SubjectRulesReviewStatusDie)) *SubjectRulesReviewStatusDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*SubjectRulesReviewStatusDie) EvaluationError ¶
func (d *SubjectRulesReviewStatusDie) EvaluationError(v string) *SubjectRulesReviewStatusDie
EvaluationError can appear in combination with Rules. It indicates an error occurred during
rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
ResourceRules and/or NonResourceRules may be incomplete.
func (*SubjectRulesReviewStatusDie) Incomplete ¶
func (d *SubjectRulesReviewStatusDie) Incomplete(v bool) *SubjectRulesReviewStatusDie
Incomplete is true when the rules returned by this call are incomplete. This is most commonly
encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.
func (*SubjectRulesReviewStatusDie) NonResourceRules ¶
func (d *SubjectRulesReviewStatusDie) NonResourceRules(v ...authorizationv1.NonResourceRule) *SubjectRulesReviewStatusDie
NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
func (*SubjectRulesReviewStatusDie) NonResourceRulesDie ¶
func (d *SubjectRulesReviewStatusDie) NonResourceRulesDie(v ...*NonResourceRuleDie) *SubjectRulesReviewStatusDie
NonResourceRulesDie replaces NonResourceRules by collecting the released value from each die passed.
NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
func (*SubjectRulesReviewStatusDie) ResourceRules ¶
func (d *SubjectRulesReviewStatusDie) ResourceRules(v ...authorizationv1.ResourceRule) *SubjectRulesReviewStatusDie
ResourceRules is the list of actions the subject is allowed to perform on resources.
The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
func (*SubjectRulesReviewStatusDie) ResourceRulesDie ¶
func (d *SubjectRulesReviewStatusDie) ResourceRulesDie(v ...*ResourceRuleDie) *SubjectRulesReviewStatusDie
ResourceRulesDie replaces ResourceRules by collecting the released value from each die passed.
ResourceRules is the list of actions the subject is allowed to perform on resources.
The list ordering isn't significant, may contain duplicates, and possibly be incomplete.