v1

package
v0.15.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FieldSelectorAttributesBlank = (&FieldSelectorAttributesDie{}).DieFeed(authorizationv1.FieldSelectorAttributes{})
View Source
var LabelSelectorAttributesBlank = (&LabelSelectorAttributesDie{}).DieFeed(authorizationv1.LabelSelectorAttributes{})
View Source
var LocalSubjectAccessReviewBlank = (&LocalSubjectAccessReviewDie{}).DieFeed(authorizationv1.LocalSubjectAccessReview{})
View Source
var NonResourceAttributesBlank = (&NonResourceAttributesDie{}).DieFeed(authorizationv1.NonResourceAttributes{})
View Source
var NonResourceRuleBlank = (&NonResourceRuleDie{}).DieFeed(authorizationv1.NonResourceRule{})
View Source
var ResourceAttributesBlank = (&ResourceAttributesDie{}).DieFeed(authorizationv1.ResourceAttributes{})
View Source
var ResourceRuleBlank = (&ResourceRuleDie{}).DieFeed(authorizationv1.ResourceRule{})
View Source
var SelfSubjectAccessReviewBlank = (&SelfSubjectAccessReviewDie{}).DieFeed(authorizationv1.SelfSubjectAccessReview{})
View Source
var SelfSubjectAccessReviewSpecBlank = (&SelfSubjectAccessReviewSpecDie{}).DieFeed(authorizationv1.SelfSubjectAccessReviewSpec{})
View Source
var SelfSubjectRulesReviewBlank = (&SelfSubjectRulesReviewDie{}).DieFeed(authorizationv1.SelfSubjectRulesReview{})
View Source
var SelfSubjectRulesReviewSpecBlank = (&SelfSubjectRulesReviewSpecDie{}).DieFeed(authorizationv1.SelfSubjectRulesReviewSpec{})
View Source
var SubjectAccessReviewBlank = (&SubjectAccessReviewDie{}).DieFeed(authorizationv1.SubjectAccessReview{})
View Source
var SubjectAccessReviewSpecBlank = (&SubjectAccessReviewSpecDie{}).DieFeed(authorizationv1.SubjectAccessReviewSpec{})
View Source
var SubjectAccessReviewStatusBlank = (&SubjectAccessReviewStatusDie{}).DieFeed(authorizationv1.SubjectAccessReviewStatus{})
View Source
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

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

DieFeed returns a new die with the provided resource.

func (*FieldSelectorAttributesDie) DieFeedJSON added in v0.14.0

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

func (*FieldSelectorAttributesDie) DieFeedPtr added in v0.14.0

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

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

func (*FieldSelectorAttributesDie) DieFeedYAML added in v0.14.0

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

func (*FieldSelectorAttributesDie) DieFeedYAMLFile added in v0.14.0

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

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

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

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

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

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

DieSealRelease returns the sealed resource managed by the die.

func (*FieldSelectorAttributesDie) DieSealReleasePtr added in v0.14.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*FieldSelectorAttributesDie) DieStamp added in v0.14.0

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

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

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

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

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

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

DieFeed returns a new die with the provided resource.

func (*LabelSelectorAttributesDie) DieFeedJSON added in v0.14.0

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

func (*LabelSelectorAttributesDie) DieFeedPtr added in v0.14.0

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

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

func (*LabelSelectorAttributesDie) DieFeedYAML added in v0.14.0

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

func (*LabelSelectorAttributesDie) DieFeedYAMLFile added in v0.14.0

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

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

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

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

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

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

DieSealRelease returns the sealed resource managed by the die.

func (*LabelSelectorAttributesDie) DieSealReleasePtr added in v0.14.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*LabelSelectorAttributesDie) DieStamp added in v0.14.0

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

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

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

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

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

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

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

DieFeed returns a new die with the provided resource.

func (*LocalSubjectAccessReviewDie) DieFeedJSON

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

func (*LocalSubjectAccessReviewDie) DieFeedPtr

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

func (*LocalSubjectAccessReviewDie) DieFeedRawExtension

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

func (*LocalSubjectAccessReviewDie) DieFeedYAML

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

func (*LocalSubjectAccessReviewDie) DieFeedYAMLFile

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

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

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

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

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

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

DieSealRelease returns the sealed resource managed by the die.

func (*LocalSubjectAccessReviewDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*LocalSubjectAccessReviewDie) DieStamp

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

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

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

Metadata standard object's metadata.

func (*LocalSubjectAccessReviewDie) MetadataDie

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

func (*LocalSubjectAccessReviewDie) Spec

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

Status is filled in by the server and indicates whether the request is allowed or not

func (*LocalSubjectAccessReviewDie) TypeMetadata added in v0.13.0

TypeMetadata standard object's type metadata.

func (*LocalSubjectAccessReviewDie) TypeMetadataDie added in v0.13.0

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

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

DieFeed returns a new die with the provided resource.

func (*NonResourceAttributesDie) DieFeedJSON

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

func (*NonResourceAttributesDie) DieFeedPtr

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

func (*NonResourceAttributesDie) DieFeedRawExtension

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

func (*NonResourceAttributesDie) DieFeedYAML

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

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

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

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

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

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

DieSealRelease returns the sealed resource managed by the die.

func (*NonResourceAttributesDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*NonResourceAttributesDie) DieStamp

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

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

func (*NonResourceAttributesDie) Path

Path is the URL path of the request

func (*NonResourceAttributesDie) Verb

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

DieSealRelease returns the sealed resource managed by the die.

func (*ResourceAttributesDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*ResourceAttributesDie) DieStamp

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

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

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

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

Group is the API Group of the Resource. "*" means all.

func (*ResourceAttributesDie) LabelSelector added in v0.14.0

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

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

Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.

func (*ResourceAttributesDie) Namespace

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

Resource is one of the existing resource types. "*" means all.

func (*ResourceAttributesDie) Subresource

Subresource is one of the existing resource types. "" means none.

func (*ResourceAttributesDie) Verb

Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all.

func (*ResourceAttributesDie) Version

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

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

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

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

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

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

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

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

DieFeed returns a new die with the provided resource.

func (*SelfSubjectAccessReviewDie) DieFeedJSON

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

func (*SelfSubjectAccessReviewDie) DieFeedPtr

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

func (*SelfSubjectAccessReviewDie) DieFeedRawExtension

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

func (*SelfSubjectAccessReviewDie) DieFeedYAML

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

func (*SelfSubjectAccessReviewDie) DieFeedYAMLFile

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

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

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

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

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

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

DieSealRelease returns the sealed resource managed by the die.

func (*SelfSubjectAccessReviewDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*SelfSubjectAccessReviewDie) DieStamp

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

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

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

Metadata standard object's metadata.

func (*SelfSubjectAccessReviewDie) MetadataDie

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

func (*SelfSubjectAccessReviewDie) Spec

Spec holds information about the request being evaluated. user and groups must be empty

func (*SelfSubjectAccessReviewDie) SpecDie

SpecDie stamps the resource's spec field with a mutable die.

func (*SelfSubjectAccessReviewDie) Status

Status is filled in by the server and indicates whether the request is allowed or not

func (*SelfSubjectAccessReviewDie) StatusDie

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

func (*SelfSubjectAccessReviewDie) TypeMetadata added in v0.13.0

TypeMetadata standard object's type metadata.

func (*SelfSubjectAccessReviewDie) TypeMetadataDie added in v0.13.0

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

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

DieFeed returns a new die with the provided resource.

func (*SelfSubjectAccessReviewSpecDie) DieFeedJSON

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

func (*SelfSubjectAccessReviewSpecDie) DieFeedPtr

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

func (*SelfSubjectAccessReviewSpecDie) DieFeedRawExtension

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

func (*SelfSubjectAccessReviewSpecDie) DieFeedYAML

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

func (*SelfSubjectAccessReviewSpecDie) DieFeedYAMLFile

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

func (*SelfSubjectAccessReviewSpecDie) DieImmutable

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

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

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

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

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

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

DieSealRelease returns the sealed resource managed by the die.

func (*SelfSubjectAccessReviewSpecDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*SelfSubjectAccessReviewSpecDie) DieStamp

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

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

func (*SelfSubjectAccessReviewSpecDie) NonResourceAttributes

NonResourceAttributes describes information for a non-resource access request

func (*SelfSubjectAccessReviewSpecDie) NonResourceAttributesDie

NonResourceAttributesDie mutates NonResourceAttributes as a die.

NonResourceAttributes describes information for a non-resource access request

func (*SelfSubjectAccessReviewSpecDie) ResourceAttributes

ResourceAuthorizationAttributes describes information for a resource access request

func (*SelfSubjectAccessReviewSpecDie) ResourceAttributesDie

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

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

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

DieFeed returns a new die with the provided resource.

func (*SelfSubjectRulesReviewDie) DieFeedJSON

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

func (*SelfSubjectRulesReviewDie) DieFeedPtr

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

func (*SelfSubjectRulesReviewDie) DieFeedRawExtension

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

func (*SelfSubjectRulesReviewDie) DieFeedYAML

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

func (*SelfSubjectRulesReviewDie) DieFeedYAMLFile

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

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

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

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

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

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

DieSealRelease returns the sealed resource managed by the die.

func (*SelfSubjectRulesReviewDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*SelfSubjectRulesReviewDie) DieStamp

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

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

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

Metadata standard object's metadata.

func (*SelfSubjectRulesReviewDie) MetadataDie

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

func (*SelfSubjectRulesReviewDie) Spec

Spec holds information about the request being evaluated.

func (*SelfSubjectRulesReviewDie) SpecDie

SpecDie stamps the resource's spec field with a mutable die.

func (*SelfSubjectRulesReviewDie) Status

Status is filled in by the server and indicates the set of actions a user can perform.

func (*SelfSubjectRulesReviewDie) StatusDie

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

func (*SelfSubjectRulesReviewDie) TypeMetadata added in v0.13.0

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

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

DieFeed returns a new die with the provided resource.

func (*SelfSubjectRulesReviewSpecDie) DieFeedJSON

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

func (*SelfSubjectRulesReviewSpecDie) DieFeedPtr

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

func (*SelfSubjectRulesReviewSpecDie) DieFeedRawExtension

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

func (*SelfSubjectRulesReviewSpecDie) DieFeedYAML

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

func (*SelfSubjectRulesReviewSpecDie) DieFeedYAMLFile

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

func (*SelfSubjectRulesReviewSpecDie) DieImmutable

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

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

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

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

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

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

DieSealRelease returns the sealed resource managed by the die.

func (*SelfSubjectRulesReviewSpecDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*SelfSubjectRulesReviewSpecDie) DieStamp

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

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

func (*SelfSubjectRulesReviewSpecDie) Namespace

Namespace to evaluate rules for. Required.

type SubjectAccessReviewDie

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

func (*SubjectAccessReviewDie) APIVersion

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

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

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

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

func (*SubjectAccessReviewDie) DieFeedRawExtension

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

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

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

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

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

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

DieSealRelease returns the sealed resource managed by the die.

func (*SubjectAccessReviewDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*SubjectAccessReviewDie) DieStamp

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

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

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

Metadata standard object's metadata.

func (*SubjectAccessReviewDie) MetadataDie

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

func (*SubjectAccessReviewDie) Spec

Spec holds information about the request being evaluated

func (*SubjectAccessReviewDie) SpecDie

SpecDie stamps the resource's spec field with a mutable die.

func (*SubjectAccessReviewDie) Status

Status is filled in by the server and indicates whether the request is allowed or not

func (*SubjectAccessReviewDie) StatusDie

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

func (*SubjectAccessReviewDie) TypeMetadata added in v0.13.0

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 (*SubjectAccessReviewSpecDie) DeepCopy

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

DieFeed returns a new die with the provided resource.

func (*SubjectAccessReviewSpecDie) DieFeedJSON

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

func (*SubjectAccessReviewSpecDie) DieFeedPtr

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

func (*SubjectAccessReviewSpecDie) DieFeedRawExtension

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

func (*SubjectAccessReviewSpecDie) DieFeedYAML

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

func (*SubjectAccessReviewSpecDie) DieFeedYAMLFile

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

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

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

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

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

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

DieSealRelease returns the sealed resource managed by the die.

func (*SubjectAccessReviewSpecDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*SubjectAccessReviewSpecDie) DieStamp

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

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

func (*SubjectAccessReviewSpecDie) Extra

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

Groups is the groups you're testing for.

func (*SubjectAccessReviewSpecDie) NonResourceAttributes

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

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

UID information about the requesting user.

func (*SubjectAccessReviewSpecDie) User

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

Allowed is required. True if the action would be allowed, false otherwise.

func (*SubjectAccessReviewStatusDie) DeepCopy

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

func (*SubjectAccessReviewStatusDie) Denied

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

DieFeed returns a new die with the provided resource.

func (*SubjectAccessReviewStatusDie) DieFeedJSON

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

func (*SubjectAccessReviewStatusDie) DieFeedPtr

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

func (*SubjectAccessReviewStatusDie) DieFeedRawExtension

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

func (*SubjectAccessReviewStatusDie) DieFeedYAML

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

func (*SubjectAccessReviewStatusDie) DieFeedYAMLFile

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

func (*SubjectAccessReviewStatusDie) DieImmutable

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

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

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

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

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

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

DieSealRelease returns the sealed resource managed by the die.

func (*SubjectAccessReviewStatusDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*SubjectAccessReviewStatusDie) DieStamp

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

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

func (*SubjectAccessReviewStatusDie) EvaluationError

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

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

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

DieFeed returns a new die with the provided resource.

func (*SubjectRulesReviewStatusDie) DieFeedJSON

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

func (*SubjectRulesReviewStatusDie) DieFeedPtr

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

func (*SubjectRulesReviewStatusDie) DieFeedRawExtension

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

func (*SubjectRulesReviewStatusDie) DieFeedYAML

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

func (*SubjectRulesReviewStatusDie) DieFeedYAMLFile

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

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

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

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

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

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

DieSealRelease returns the sealed resource managed by the die.

func (*SubjectRulesReviewStatusDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*SubjectRulesReviewStatusDie) DieStamp

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

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

func (*SubjectRulesReviewStatusDie) EvaluationError

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

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

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

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

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

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.

Jump to

Keyboard shortcuts

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