v1

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

func (*SelfSubjectAccessReviewSpecDie) ResourceAttributes

ResourceAuthorizationAttributes describes information for a resource access request

func (*SelfSubjectAccessReviewSpecDie) ResourceAttributesDie

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

func (*SubjectAccessReviewSpecDie) ResourceAttributes

ResourceAuthorizationAttributes describes information for a resource access request

func (*SubjectAccessReviewSpecDie) ResourceAttributesDie

func (d *SubjectAccessReviewSpecDie) ResourceAttributesDie(fn func(d *ResourceAttributesDie)) *SubjectAccessReviewSpecDie

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

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

Jump to

Keyboard shortcuts

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