k8s_io_api_authorization_v1

package
v0.0.0-...-940152b Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type ExtraValue

type ExtraValue struct {
	Items []string `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}

ExtraValue masks the value so protobuf can generate +protobuf.nullable=true +protobuf.options.(gogoproto.goproto_stringer)=false

func (*ExtraValue) Descriptor

func (*ExtraValue) Descriptor() ([]byte, []int)

func (*ExtraValue) Equal

func (this *ExtraValue) Equal(that interface{}) bool

func (*ExtraValue) GetItems

func (m *ExtraValue) GetItems() []string

func (*ExtraValue) GoString

func (this *ExtraValue) GoString() string

func (*ExtraValue) Marshal

func (m *ExtraValue) Marshal() (dAtA []byte, err error)

func (*ExtraValue) MarshalTo

func (m *ExtraValue) MarshalTo(dAtA []byte) (int, error)

func (*ExtraValue) MarshalToSizedBuffer

func (m *ExtraValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ExtraValue) ProtoMessage

func (*ExtraValue) ProtoMessage()

func (*ExtraValue) Reset

func (m *ExtraValue) Reset()

func (*ExtraValue) Size

func (m *ExtraValue) Size() (n int)

func (*ExtraValue) String

func (this *ExtraValue) String() string

func (*ExtraValue) Unmarshal

func (m *ExtraValue) Unmarshal(dAtA []byte) error

func (*ExtraValue) XXX_DiscardUnknown

func (m *ExtraValue) XXX_DiscardUnknown()

func (*ExtraValue) XXX_Marshal

func (m *ExtraValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExtraValue) XXX_Merge

func (m *ExtraValue) XXX_Merge(src proto.Message)

func (*ExtraValue) XXX_Size

func (m *ExtraValue) XXX_Size() int

func (*ExtraValue) XXX_Unmarshal

func (m *ExtraValue) XXX_Unmarshal(b []byte) error

type LocalSubjectAccessReview

type LocalSubjectAccessReview struct {
	// +optional
	Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// 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.
	Spec *SubjectAccessReviewSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
	// Status is filled in by the server and indicates whether the request is allowed or not
	// +optional
	Status *SubjectAccessReviewStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
}

LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.

func (*LocalSubjectAccessReview) Descriptor

func (*LocalSubjectAccessReview) Descriptor() ([]byte, []int)

func (*LocalSubjectAccessReview) Equal

func (this *LocalSubjectAccessReview) Equal(that interface{}) bool

func (*LocalSubjectAccessReview) GetMetadata

func (m *LocalSubjectAccessReview) GetMetadata() *v1.ObjectMeta

func (*LocalSubjectAccessReview) GetSpec

func (*LocalSubjectAccessReview) GetStatus

func (*LocalSubjectAccessReview) GoString

func (this *LocalSubjectAccessReview) GoString() string

func (*LocalSubjectAccessReview) Marshal

func (m *LocalSubjectAccessReview) Marshal() (dAtA []byte, err error)

func (*LocalSubjectAccessReview) MarshalTo

func (m *LocalSubjectAccessReview) MarshalTo(dAtA []byte) (int, error)

func (*LocalSubjectAccessReview) MarshalToSizedBuffer

func (m *LocalSubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LocalSubjectAccessReview) ProtoMessage

func (*LocalSubjectAccessReview) ProtoMessage()

func (*LocalSubjectAccessReview) Reset

func (m *LocalSubjectAccessReview) Reset()

func (*LocalSubjectAccessReview) Size

func (m *LocalSubjectAccessReview) Size() (n int)

func (*LocalSubjectAccessReview) String

func (this *LocalSubjectAccessReview) String() string

func (*LocalSubjectAccessReview) Unmarshal

func (m *LocalSubjectAccessReview) Unmarshal(dAtA []byte) error

func (*LocalSubjectAccessReview) XXX_DiscardUnknown

func (m *LocalSubjectAccessReview) XXX_DiscardUnknown()

func (*LocalSubjectAccessReview) XXX_Marshal

func (m *LocalSubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocalSubjectAccessReview) XXX_Merge

func (m *LocalSubjectAccessReview) XXX_Merge(src proto.Message)

func (*LocalSubjectAccessReview) XXX_Size

func (m *LocalSubjectAccessReview) XXX_Size() int

func (*LocalSubjectAccessReview) XXX_Unmarshal

func (m *LocalSubjectAccessReview) XXX_Unmarshal(b []byte) error

type NonResourceAttributes

type NonResourceAttributes struct {
	// Path is the URL path of the request
	// +optional
	Path string `protobuf:"bytes,1,opt,name=path" json:"path"`
	// Verb is the standard HTTP verb
	// +optional
	Verb string `protobuf:"bytes,2,opt,name=verb" json:"verb"`
}

NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface

func (*NonResourceAttributes) Descriptor

func (*NonResourceAttributes) Descriptor() ([]byte, []int)

func (*NonResourceAttributes) Equal

func (this *NonResourceAttributes) Equal(that interface{}) bool

func (*NonResourceAttributes) GetPath

func (m *NonResourceAttributes) GetPath() string

func (*NonResourceAttributes) GetVerb

func (m *NonResourceAttributes) GetVerb() string

func (*NonResourceAttributes) GoString

func (this *NonResourceAttributes) GoString() string

func (*NonResourceAttributes) Marshal

func (m *NonResourceAttributes) Marshal() (dAtA []byte, err error)

func (*NonResourceAttributes) MarshalTo

func (m *NonResourceAttributes) MarshalTo(dAtA []byte) (int, error)

func (*NonResourceAttributes) MarshalToSizedBuffer

func (m *NonResourceAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NonResourceAttributes) ProtoMessage

func (*NonResourceAttributes) ProtoMessage()

func (*NonResourceAttributes) Reset

func (m *NonResourceAttributes) Reset()

func (*NonResourceAttributes) Size

func (m *NonResourceAttributes) Size() (n int)

func (*NonResourceAttributes) String

func (this *NonResourceAttributes) String() string

func (*NonResourceAttributes) Unmarshal

func (m *NonResourceAttributes) Unmarshal(dAtA []byte) error

func (*NonResourceAttributes) XXX_DiscardUnknown

func (m *NonResourceAttributes) XXX_DiscardUnknown()

func (*NonResourceAttributes) XXX_Marshal

func (m *NonResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NonResourceAttributes) XXX_Merge

func (m *NonResourceAttributes) XXX_Merge(src proto.Message)

func (*NonResourceAttributes) XXX_Size

func (m *NonResourceAttributes) XXX_Size() int

func (*NonResourceAttributes) XXX_Unmarshal

func (m *NonResourceAttributes) XXX_Unmarshal(b []byte) error

type NonResourceRule

type NonResourceRule struct {
	// Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
	Verbs []string `protobuf:"bytes,1,rep,name=verbs" json:"verbs,omitempty"`
	// 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.
	// +optional
	NonResourceURLs []string `protobuf:"bytes,2,rep,name=nonResourceURLs" json:"nonResourceURLs,omitempty"`
}

NonResourceRule holds information that describes a rule for the non-resource

func (*NonResourceRule) Descriptor

func (*NonResourceRule) Descriptor() ([]byte, []int)

func (*NonResourceRule) Equal

func (this *NonResourceRule) Equal(that interface{}) bool

func (*NonResourceRule) GetNonResourceURLs

func (m *NonResourceRule) GetNonResourceURLs() []string

func (*NonResourceRule) GetVerbs

func (m *NonResourceRule) GetVerbs() []string

func (*NonResourceRule) GoString

func (this *NonResourceRule) GoString() string

func (*NonResourceRule) Marshal

func (m *NonResourceRule) Marshal() (dAtA []byte, err error)

func (*NonResourceRule) MarshalTo

func (m *NonResourceRule) MarshalTo(dAtA []byte) (int, error)

func (*NonResourceRule) MarshalToSizedBuffer

func (m *NonResourceRule) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NonResourceRule) ProtoMessage

func (*NonResourceRule) ProtoMessage()

func (*NonResourceRule) Reset

func (m *NonResourceRule) Reset()

func (*NonResourceRule) Size

func (m *NonResourceRule) Size() (n int)

func (*NonResourceRule) String

func (this *NonResourceRule) String() string

func (*NonResourceRule) Unmarshal

func (m *NonResourceRule) Unmarshal(dAtA []byte) error

func (*NonResourceRule) XXX_DiscardUnknown

func (m *NonResourceRule) XXX_DiscardUnknown()

func (*NonResourceRule) XXX_Marshal

func (m *NonResourceRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NonResourceRule) XXX_Merge

func (m *NonResourceRule) XXX_Merge(src proto.Message)

func (*NonResourceRule) XXX_Size

func (m *NonResourceRule) XXX_Size() int

func (*NonResourceRule) XXX_Unmarshal

func (m *NonResourceRule) XXX_Unmarshal(b []byte) error

type ResourceAttributes

type ResourceAttributes struct {
	// 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
	// +optional
	Namespace string `protobuf:"bytes,1,opt,name=namespace" json:"namespace"`
	// Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
	// +optional
	Verb string `protobuf:"bytes,2,opt,name=verb" json:"verb"`
	// Group is the API Group of the Resource.  "*" means all.
	// +optional
	Group string `protobuf:"bytes,3,opt,name=group" json:"group"`
	// Version is the API Version of the Resource.  "*" means all.
	// +optional
	Version string `protobuf:"bytes,4,opt,name=version" json:"version"`
	// Resource is one of the existing resource types.  "*" means all.
	// +optional
	Resource string `protobuf:"bytes,5,opt,name=resource" json:"resource"`
	// Subresource is one of the existing resource types.  "" means none.
	// +optional
	Subresource string `protobuf:"bytes,6,opt,name=subresource" json:"subresource"`
	// Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
	// +optional
	Name string `protobuf:"bytes,7,opt,name=name" json:"name"`
}

ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface

func (*ResourceAttributes) Descriptor

func (*ResourceAttributes) Descriptor() ([]byte, []int)

func (*ResourceAttributes) Equal

func (this *ResourceAttributes) Equal(that interface{}) bool

func (*ResourceAttributes) GetGroup

func (m *ResourceAttributes) GetGroup() string

func (*ResourceAttributes) GetName

func (m *ResourceAttributes) GetName() string

func (*ResourceAttributes) GetNamespace

func (m *ResourceAttributes) GetNamespace() string

func (*ResourceAttributes) GetResource

func (m *ResourceAttributes) GetResource() string

func (*ResourceAttributes) GetSubresource

func (m *ResourceAttributes) GetSubresource() string

func (*ResourceAttributes) GetVerb

func (m *ResourceAttributes) GetVerb() string

func (*ResourceAttributes) GetVersion

func (m *ResourceAttributes) GetVersion() string

func (*ResourceAttributes) GoString

func (this *ResourceAttributes) GoString() string

func (*ResourceAttributes) Marshal

func (m *ResourceAttributes) Marshal() (dAtA []byte, err error)

func (*ResourceAttributes) MarshalTo

func (m *ResourceAttributes) MarshalTo(dAtA []byte) (int, error)

func (*ResourceAttributes) MarshalToSizedBuffer

func (m *ResourceAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceAttributes) ProtoMessage

func (*ResourceAttributes) ProtoMessage()

func (*ResourceAttributes) Reset

func (m *ResourceAttributes) Reset()

func (*ResourceAttributes) Size

func (m *ResourceAttributes) Size() (n int)

func (*ResourceAttributes) String

func (this *ResourceAttributes) String() string

func (*ResourceAttributes) Unmarshal

func (m *ResourceAttributes) Unmarshal(dAtA []byte) error

func (*ResourceAttributes) XXX_DiscardUnknown

func (m *ResourceAttributes) XXX_DiscardUnknown()

func (*ResourceAttributes) XXX_Marshal

func (m *ResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceAttributes) XXX_Merge

func (m *ResourceAttributes) XXX_Merge(src proto.Message)

func (*ResourceAttributes) XXX_Size

func (m *ResourceAttributes) XXX_Size() int

func (*ResourceAttributes) XXX_Unmarshal

func (m *ResourceAttributes) XXX_Unmarshal(b []byte) error

type ResourceRule

type ResourceRule struct {
	// Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
	Verbs []string `protobuf:"bytes,1,rep,name=verbs" json:"verbs,omitempty"`
	// 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.
	// +optional
	ApiGroups []string `protobuf:"bytes,2,rep,name=apiGroups" json:"apiGroups,omitempty"`
	// 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.
	// +optional
	Resources []string `protobuf:"bytes,3,rep,name=resources" json:"resources,omitempty"`
	// ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
	// +optional
	ResourceNames []string `protobuf:"bytes,4,rep,name=resourceNames" json:"resourceNames,omitempty"`
}

ResourceRule 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 (*ResourceRule) Descriptor

func (*ResourceRule) Descriptor() ([]byte, []int)

func (*ResourceRule) Equal

func (this *ResourceRule) Equal(that interface{}) bool

func (*ResourceRule) GetApiGroups

func (m *ResourceRule) GetApiGroups() []string

func (*ResourceRule) GetResourceNames

func (m *ResourceRule) GetResourceNames() []string

func (*ResourceRule) GetResources

func (m *ResourceRule) GetResources() []string

func (*ResourceRule) GetVerbs

func (m *ResourceRule) GetVerbs() []string

func (*ResourceRule) GoString

func (this *ResourceRule) GoString() string

func (*ResourceRule) Marshal

func (m *ResourceRule) Marshal() (dAtA []byte, err error)

func (*ResourceRule) MarshalTo

func (m *ResourceRule) MarshalTo(dAtA []byte) (int, error)

func (*ResourceRule) MarshalToSizedBuffer

func (m *ResourceRule) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceRule) ProtoMessage

func (*ResourceRule) ProtoMessage()

func (*ResourceRule) Reset

func (m *ResourceRule) Reset()

func (*ResourceRule) Size

func (m *ResourceRule) Size() (n int)

func (*ResourceRule) String

func (this *ResourceRule) String() string

func (*ResourceRule) Unmarshal

func (m *ResourceRule) Unmarshal(dAtA []byte) error

func (*ResourceRule) XXX_DiscardUnknown

func (m *ResourceRule) XXX_DiscardUnknown()

func (*ResourceRule) XXX_Marshal

func (m *ResourceRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceRule) XXX_Merge

func (m *ResourceRule) XXX_Merge(src proto.Message)

func (*ResourceRule) XXX_Size

func (m *ResourceRule) XXX_Size() int

func (*ResourceRule) XXX_Unmarshal

func (m *ResourceRule) XXX_Unmarshal(b []byte) error

type SelfSubjectAccessReview

type SelfSubjectAccessReview struct {
	// +optional
	Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Spec holds information about the request being evaluated.  user and groups must be empty
	Spec *SelfSubjectAccessReviewSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
	// Status is filled in by the server and indicates whether the request is allowed or not
	// +optional
	Status *SubjectAccessReviewStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
}

SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action

func (*SelfSubjectAccessReview) Descriptor

func (*SelfSubjectAccessReview) Descriptor() ([]byte, []int)

func (*SelfSubjectAccessReview) Equal

func (this *SelfSubjectAccessReview) Equal(that interface{}) bool

func (*SelfSubjectAccessReview) GetMetadata

func (m *SelfSubjectAccessReview) GetMetadata() *v1.ObjectMeta

func (*SelfSubjectAccessReview) GetSpec

func (*SelfSubjectAccessReview) GetStatus

func (*SelfSubjectAccessReview) GoString

func (this *SelfSubjectAccessReview) GoString() string

func (*SelfSubjectAccessReview) Marshal

func (m *SelfSubjectAccessReview) Marshal() (dAtA []byte, err error)

func (*SelfSubjectAccessReview) MarshalTo

func (m *SelfSubjectAccessReview) MarshalTo(dAtA []byte) (int, error)

func (*SelfSubjectAccessReview) MarshalToSizedBuffer

func (m *SelfSubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SelfSubjectAccessReview) ProtoMessage

func (*SelfSubjectAccessReview) ProtoMessage()

func (*SelfSubjectAccessReview) Reset

func (m *SelfSubjectAccessReview) Reset()

func (*SelfSubjectAccessReview) Size

func (m *SelfSubjectAccessReview) Size() (n int)

func (*SelfSubjectAccessReview) String

func (this *SelfSubjectAccessReview) String() string

func (*SelfSubjectAccessReview) Unmarshal

func (m *SelfSubjectAccessReview) Unmarshal(dAtA []byte) error

func (*SelfSubjectAccessReview) XXX_DiscardUnknown

func (m *SelfSubjectAccessReview) XXX_DiscardUnknown()

func (*SelfSubjectAccessReview) XXX_Marshal

func (m *SelfSubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SelfSubjectAccessReview) XXX_Merge

func (m *SelfSubjectAccessReview) XXX_Merge(src proto.Message)

func (*SelfSubjectAccessReview) XXX_Size

func (m *SelfSubjectAccessReview) XXX_Size() int

func (*SelfSubjectAccessReview) XXX_Unmarshal

func (m *SelfSubjectAccessReview) XXX_Unmarshal(b []byte) error

type SelfSubjectAccessReviewSpec

type SelfSubjectAccessReviewSpec struct {
	// ResourceAuthorizationAttributes describes information for a resource access request
	// +optional
	ResourceAttributes *ResourceAttributes `protobuf:"bytes,1,opt,name=resourceAttributes" json:"resourceAttributes,omitempty"`
	// NonResourceAttributes describes information for a non-resource access request
	// +optional
	NonResourceAttributes *NonResourceAttributes `protobuf:"bytes,2,opt,name=nonResourceAttributes" json:"nonResourceAttributes,omitempty"`
}

SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set

func (*SelfSubjectAccessReviewSpec) Descriptor

func (*SelfSubjectAccessReviewSpec) Descriptor() ([]byte, []int)

func (*SelfSubjectAccessReviewSpec) Equal

func (this *SelfSubjectAccessReviewSpec) Equal(that interface{}) bool

func (*SelfSubjectAccessReviewSpec) GetNonResourceAttributes

func (m *SelfSubjectAccessReviewSpec) GetNonResourceAttributes() *NonResourceAttributes

func (*SelfSubjectAccessReviewSpec) GetResourceAttributes

func (m *SelfSubjectAccessReviewSpec) GetResourceAttributes() *ResourceAttributes

func (*SelfSubjectAccessReviewSpec) GoString

func (this *SelfSubjectAccessReviewSpec) GoString() string

func (*SelfSubjectAccessReviewSpec) Marshal

func (m *SelfSubjectAccessReviewSpec) Marshal() (dAtA []byte, err error)

func (*SelfSubjectAccessReviewSpec) MarshalTo

func (m *SelfSubjectAccessReviewSpec) MarshalTo(dAtA []byte) (int, error)

func (*SelfSubjectAccessReviewSpec) MarshalToSizedBuffer

func (m *SelfSubjectAccessReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SelfSubjectAccessReviewSpec) ProtoMessage

func (*SelfSubjectAccessReviewSpec) ProtoMessage()

func (*SelfSubjectAccessReviewSpec) Reset

func (m *SelfSubjectAccessReviewSpec) Reset()

func (*SelfSubjectAccessReviewSpec) Size

func (m *SelfSubjectAccessReviewSpec) Size() (n int)

func (*SelfSubjectAccessReviewSpec) String

func (this *SelfSubjectAccessReviewSpec) String() string

func (*SelfSubjectAccessReviewSpec) Unmarshal

func (m *SelfSubjectAccessReviewSpec) Unmarshal(dAtA []byte) error

func (*SelfSubjectAccessReviewSpec) XXX_DiscardUnknown

func (m *SelfSubjectAccessReviewSpec) XXX_DiscardUnknown()

func (*SelfSubjectAccessReviewSpec) XXX_Marshal

func (m *SelfSubjectAccessReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SelfSubjectAccessReviewSpec) XXX_Merge

func (m *SelfSubjectAccessReviewSpec) XXX_Merge(src proto.Message)

func (*SelfSubjectAccessReviewSpec) XXX_Size

func (m *SelfSubjectAccessReviewSpec) XXX_Size() int

func (*SelfSubjectAccessReviewSpec) XXX_Unmarshal

func (m *SelfSubjectAccessReviewSpec) XXX_Unmarshal(b []byte) error

type SelfSubjectRulesReview

type SelfSubjectRulesReview struct {
	// +optional
	Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Spec holds information about the request being evaluated.
	Spec *SelfSubjectRulesReviewSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
	// Status is filled in by the server and indicates the set of actions a user can perform.
	// +optional
	Status *SubjectRulesReviewStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
}

SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.

func (*SelfSubjectRulesReview) Descriptor

func (*SelfSubjectRulesReview) Descriptor() ([]byte, []int)

func (*SelfSubjectRulesReview) Equal

func (this *SelfSubjectRulesReview) Equal(that interface{}) bool

func (*SelfSubjectRulesReview) GetMetadata

func (m *SelfSubjectRulesReview) GetMetadata() *v1.ObjectMeta

func (*SelfSubjectRulesReview) GetSpec

func (*SelfSubjectRulesReview) GetStatus

func (*SelfSubjectRulesReview) GoString

func (this *SelfSubjectRulesReview) GoString() string

func (*SelfSubjectRulesReview) Marshal

func (m *SelfSubjectRulesReview) Marshal() (dAtA []byte, err error)

func (*SelfSubjectRulesReview) MarshalTo

func (m *SelfSubjectRulesReview) MarshalTo(dAtA []byte) (int, error)

func (*SelfSubjectRulesReview) MarshalToSizedBuffer

func (m *SelfSubjectRulesReview) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SelfSubjectRulesReview) ProtoMessage

func (*SelfSubjectRulesReview) ProtoMessage()

func (*SelfSubjectRulesReview) Reset

func (m *SelfSubjectRulesReview) Reset()

func (*SelfSubjectRulesReview) Size

func (m *SelfSubjectRulesReview) Size() (n int)

func (*SelfSubjectRulesReview) String

func (this *SelfSubjectRulesReview) String() string

func (*SelfSubjectRulesReview) Unmarshal

func (m *SelfSubjectRulesReview) Unmarshal(dAtA []byte) error

func (*SelfSubjectRulesReview) XXX_DiscardUnknown

func (m *SelfSubjectRulesReview) XXX_DiscardUnknown()

func (*SelfSubjectRulesReview) XXX_Marshal

func (m *SelfSubjectRulesReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SelfSubjectRulesReview) XXX_Merge

func (m *SelfSubjectRulesReview) XXX_Merge(src proto.Message)

func (*SelfSubjectRulesReview) XXX_Size

func (m *SelfSubjectRulesReview) XXX_Size() int

func (*SelfSubjectRulesReview) XXX_Unmarshal

func (m *SelfSubjectRulesReview) XXX_Unmarshal(b []byte) error

type SelfSubjectRulesReviewSpec

type SelfSubjectRulesReviewSpec struct {
	// Namespace to evaluate rules for. Required.
	Namespace string `protobuf:"bytes,1,opt,name=namespace" json:"namespace"`
}

func (*SelfSubjectRulesReviewSpec) Descriptor

func (*SelfSubjectRulesReviewSpec) Descriptor() ([]byte, []int)

func (*SelfSubjectRulesReviewSpec) Equal

func (this *SelfSubjectRulesReviewSpec) Equal(that interface{}) bool

func (*SelfSubjectRulesReviewSpec) GetNamespace

func (m *SelfSubjectRulesReviewSpec) GetNamespace() string

func (*SelfSubjectRulesReviewSpec) GoString

func (this *SelfSubjectRulesReviewSpec) GoString() string

func (*SelfSubjectRulesReviewSpec) Marshal

func (m *SelfSubjectRulesReviewSpec) Marshal() (dAtA []byte, err error)

func (*SelfSubjectRulesReviewSpec) MarshalTo

func (m *SelfSubjectRulesReviewSpec) MarshalTo(dAtA []byte) (int, error)

func (*SelfSubjectRulesReviewSpec) MarshalToSizedBuffer

func (m *SelfSubjectRulesReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SelfSubjectRulesReviewSpec) ProtoMessage

func (*SelfSubjectRulesReviewSpec) ProtoMessage()

func (*SelfSubjectRulesReviewSpec) Reset

func (m *SelfSubjectRulesReviewSpec) Reset()

func (*SelfSubjectRulesReviewSpec) Size

func (m *SelfSubjectRulesReviewSpec) Size() (n int)

func (*SelfSubjectRulesReviewSpec) String

func (this *SelfSubjectRulesReviewSpec) String() string

func (*SelfSubjectRulesReviewSpec) Unmarshal

func (m *SelfSubjectRulesReviewSpec) Unmarshal(dAtA []byte) error

func (*SelfSubjectRulesReviewSpec) XXX_DiscardUnknown

func (m *SelfSubjectRulesReviewSpec) XXX_DiscardUnknown()

func (*SelfSubjectRulesReviewSpec) XXX_Marshal

func (m *SelfSubjectRulesReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SelfSubjectRulesReviewSpec) XXX_Merge

func (m *SelfSubjectRulesReviewSpec) XXX_Merge(src proto.Message)

func (*SelfSubjectRulesReviewSpec) XXX_Size

func (m *SelfSubjectRulesReviewSpec) XXX_Size() int

func (*SelfSubjectRulesReviewSpec) XXX_Unmarshal

func (m *SelfSubjectRulesReviewSpec) XXX_Unmarshal(b []byte) error

type SubjectAccessReview

type SubjectAccessReview struct {
	// +optional
	Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Spec holds information about the request being evaluated
	Spec *SubjectAccessReviewSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
	// Status is filled in by the server and indicates whether the request is allowed or not
	// +optional
	Status *SubjectAccessReviewStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
}

SubjectAccessReview checks whether or not a user or group can perform an action.

func (*SubjectAccessReview) Descriptor

func (*SubjectAccessReview) Descriptor() ([]byte, []int)

func (*SubjectAccessReview) Equal

func (this *SubjectAccessReview) Equal(that interface{}) bool

func (*SubjectAccessReview) GetMetadata

func (m *SubjectAccessReview) GetMetadata() *v1.ObjectMeta

func (*SubjectAccessReview) GetSpec

func (*SubjectAccessReview) GetStatus

func (*SubjectAccessReview) GoString

func (this *SubjectAccessReview) GoString() string

func (*SubjectAccessReview) Marshal

func (m *SubjectAccessReview) Marshal() (dAtA []byte, err error)

func (*SubjectAccessReview) MarshalTo

func (m *SubjectAccessReview) MarshalTo(dAtA []byte) (int, error)

func (*SubjectAccessReview) MarshalToSizedBuffer

func (m *SubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SubjectAccessReview) ProtoMessage

func (*SubjectAccessReview) ProtoMessage()

func (*SubjectAccessReview) Reset

func (m *SubjectAccessReview) Reset()

func (*SubjectAccessReview) Size

func (m *SubjectAccessReview) Size() (n int)

func (*SubjectAccessReview) String

func (this *SubjectAccessReview) String() string

func (*SubjectAccessReview) Unmarshal

func (m *SubjectAccessReview) Unmarshal(dAtA []byte) error

func (*SubjectAccessReview) XXX_DiscardUnknown

func (m *SubjectAccessReview) XXX_DiscardUnknown()

func (*SubjectAccessReview) XXX_Marshal

func (m *SubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubjectAccessReview) XXX_Merge

func (m *SubjectAccessReview) XXX_Merge(src proto.Message)

func (*SubjectAccessReview) XXX_Size

func (m *SubjectAccessReview) XXX_Size() int

func (*SubjectAccessReview) XXX_Unmarshal

func (m *SubjectAccessReview) XXX_Unmarshal(b []byte) error

type SubjectAccessReviewSpec

type SubjectAccessReviewSpec struct {
	// ResourceAuthorizationAttributes describes information for a resource access request
	// +optional
	ResourceAttributes *ResourceAttributes `protobuf:"bytes,1,opt,name=resourceAttributes" json:"resourceAttributes,omitempty"`
	// NonResourceAttributes describes information for a non-resource access request
	// +optional
	NonResourceAttributes *NonResourceAttributes `protobuf:"bytes,2,opt,name=nonResourceAttributes" json:"nonResourceAttributes,omitempty"`
	// 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
	// +optional
	User string `protobuf:"bytes,3,opt,name=user" json:"user"`
	// Groups is the groups you're testing for.
	// +optional
	Groups []string `protobuf:"bytes,4,rep,name=groups" json:"groups,omitempty"`
	// Extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
	// it needs a reflection here.
	// +optional
	Extra map[string]*ExtraValue `` /* 130-byte string literal not displayed */
	// UID information about the requesting user.
	// +optional
	Uid string `protobuf:"bytes,6,opt,name=uid" json:"uid"`
}

SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set

func (*SubjectAccessReviewSpec) Descriptor

func (*SubjectAccessReviewSpec) Descriptor() ([]byte, []int)

func (*SubjectAccessReviewSpec) Equal

func (this *SubjectAccessReviewSpec) Equal(that interface{}) bool

func (*SubjectAccessReviewSpec) GetExtra

func (m *SubjectAccessReviewSpec) GetExtra() map[string]*ExtraValue

func (*SubjectAccessReviewSpec) GetGroups

func (m *SubjectAccessReviewSpec) GetGroups() []string

func (*SubjectAccessReviewSpec) GetNonResourceAttributes

func (m *SubjectAccessReviewSpec) GetNonResourceAttributes() *NonResourceAttributes

func (*SubjectAccessReviewSpec) GetResourceAttributes

func (m *SubjectAccessReviewSpec) GetResourceAttributes() *ResourceAttributes

func (*SubjectAccessReviewSpec) GetUid

func (m *SubjectAccessReviewSpec) GetUid() string

func (*SubjectAccessReviewSpec) GetUser

func (m *SubjectAccessReviewSpec) GetUser() string

func (*SubjectAccessReviewSpec) GoString

func (this *SubjectAccessReviewSpec) GoString() string

func (*SubjectAccessReviewSpec) Marshal

func (m *SubjectAccessReviewSpec) Marshal() (dAtA []byte, err error)

func (*SubjectAccessReviewSpec) MarshalTo

func (m *SubjectAccessReviewSpec) MarshalTo(dAtA []byte) (int, error)

func (*SubjectAccessReviewSpec) MarshalToSizedBuffer

func (m *SubjectAccessReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SubjectAccessReviewSpec) ProtoMessage

func (*SubjectAccessReviewSpec) ProtoMessage()

func (*SubjectAccessReviewSpec) Reset

func (m *SubjectAccessReviewSpec) Reset()

func (*SubjectAccessReviewSpec) Size

func (m *SubjectAccessReviewSpec) Size() (n int)

func (*SubjectAccessReviewSpec) String

func (this *SubjectAccessReviewSpec) String() string

func (*SubjectAccessReviewSpec) Unmarshal

func (m *SubjectAccessReviewSpec) Unmarshal(dAtA []byte) error

func (*SubjectAccessReviewSpec) XXX_DiscardUnknown

func (m *SubjectAccessReviewSpec) XXX_DiscardUnknown()

func (*SubjectAccessReviewSpec) XXX_Marshal

func (m *SubjectAccessReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubjectAccessReviewSpec) XXX_Merge

func (m *SubjectAccessReviewSpec) XXX_Merge(src proto.Message)

func (*SubjectAccessReviewSpec) XXX_Size

func (m *SubjectAccessReviewSpec) XXX_Size() int

func (*SubjectAccessReviewSpec) XXX_Unmarshal

func (m *SubjectAccessReviewSpec) XXX_Unmarshal(b []byte) error

type SubjectAccessReviewStatus

type SubjectAccessReviewStatus struct {
	// Allowed is required. True if the action would be allowed, false otherwise.
	Allowed bool `protobuf:"varint,1,opt,name=allowed" json:"allowed"`
	// 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.
	// +optional
	Denied bool `protobuf:"varint,4,opt,name=denied" json:"denied"`
	// Reason is optional.  It indicates why a request was allowed or denied.
	// +optional
	Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason"`
	// 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.
	// +optional
	EvaluationError string `protobuf:"bytes,3,opt,name=evaluationError" json:"evaluationError"`
}

SubjectAccessReviewStatus

func (*SubjectAccessReviewStatus) Descriptor

func (*SubjectAccessReviewStatus) Descriptor() ([]byte, []int)

func (*SubjectAccessReviewStatus) Equal

func (this *SubjectAccessReviewStatus) Equal(that interface{}) bool

func (*SubjectAccessReviewStatus) GetAllowed

func (m *SubjectAccessReviewStatus) GetAllowed() bool

func (*SubjectAccessReviewStatus) GetDenied

func (m *SubjectAccessReviewStatus) GetDenied() bool

func (*SubjectAccessReviewStatus) GetEvaluationError

func (m *SubjectAccessReviewStatus) GetEvaluationError() string

func (*SubjectAccessReviewStatus) GetReason

func (m *SubjectAccessReviewStatus) GetReason() string

func (*SubjectAccessReviewStatus) GoString

func (this *SubjectAccessReviewStatus) GoString() string

func (*SubjectAccessReviewStatus) Marshal

func (m *SubjectAccessReviewStatus) Marshal() (dAtA []byte, err error)

func (*SubjectAccessReviewStatus) MarshalTo

func (m *SubjectAccessReviewStatus) MarshalTo(dAtA []byte) (int, error)

func (*SubjectAccessReviewStatus) MarshalToSizedBuffer

func (m *SubjectAccessReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SubjectAccessReviewStatus) ProtoMessage

func (*SubjectAccessReviewStatus) ProtoMessage()

func (*SubjectAccessReviewStatus) Reset

func (m *SubjectAccessReviewStatus) Reset()

func (*SubjectAccessReviewStatus) Size

func (m *SubjectAccessReviewStatus) Size() (n int)

func (*SubjectAccessReviewStatus) String

func (this *SubjectAccessReviewStatus) String() string

func (*SubjectAccessReviewStatus) Unmarshal

func (m *SubjectAccessReviewStatus) Unmarshal(dAtA []byte) error

func (*SubjectAccessReviewStatus) XXX_DiscardUnknown

func (m *SubjectAccessReviewStatus) XXX_DiscardUnknown()

func (*SubjectAccessReviewStatus) XXX_Marshal

func (m *SubjectAccessReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubjectAccessReviewStatus) XXX_Merge

func (m *SubjectAccessReviewStatus) XXX_Merge(src proto.Message)

func (*SubjectAccessReviewStatus) XXX_Size

func (m *SubjectAccessReviewStatus) XXX_Size() int

func (*SubjectAccessReviewStatus) XXX_Unmarshal

func (m *SubjectAccessReviewStatus) XXX_Unmarshal(b []byte) error

type SubjectRulesReviewStatus

type SubjectRulesReviewStatus struct {
	// 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.
	ResourceRules []*ResourceRule `protobuf:"bytes,1,rep,name=resourceRules" json:"resourceRules,omitempty"`
	// 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.
	NonResourceRules []*NonResourceRule `protobuf:"bytes,2,rep,name=nonResourceRules" json:"nonResourceRules,omitempty"`
	// 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.
	Incomplete bool `protobuf:"varint,3,opt,name=incomplete" json:"incomplete"`
	// 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.
	// +optional
	EvaluationError string `protobuf:"bytes,4,opt,name=evaluationError" json:"evaluationError"`
}

SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.

func (*SubjectRulesReviewStatus) Descriptor

func (*SubjectRulesReviewStatus) Descriptor() ([]byte, []int)

func (*SubjectRulesReviewStatus) Equal

func (this *SubjectRulesReviewStatus) Equal(that interface{}) bool

func (*SubjectRulesReviewStatus) GetEvaluationError

func (m *SubjectRulesReviewStatus) GetEvaluationError() string

func (*SubjectRulesReviewStatus) GetIncomplete

func (m *SubjectRulesReviewStatus) GetIncomplete() bool

func (*SubjectRulesReviewStatus) GetNonResourceRules

func (m *SubjectRulesReviewStatus) GetNonResourceRules() []*NonResourceRule

func (*SubjectRulesReviewStatus) GetResourceRules

func (m *SubjectRulesReviewStatus) GetResourceRules() []*ResourceRule

func (*SubjectRulesReviewStatus) GoString

func (this *SubjectRulesReviewStatus) GoString() string

func (*SubjectRulesReviewStatus) Marshal

func (m *SubjectRulesReviewStatus) Marshal() (dAtA []byte, err error)

func (*SubjectRulesReviewStatus) MarshalTo

func (m *SubjectRulesReviewStatus) MarshalTo(dAtA []byte) (int, error)

func (*SubjectRulesReviewStatus) MarshalToSizedBuffer

func (m *SubjectRulesReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SubjectRulesReviewStatus) ProtoMessage

func (*SubjectRulesReviewStatus) ProtoMessage()

func (*SubjectRulesReviewStatus) Reset

func (m *SubjectRulesReviewStatus) Reset()

func (*SubjectRulesReviewStatus) Size

func (m *SubjectRulesReviewStatus) Size() (n int)

func (*SubjectRulesReviewStatus) String

func (this *SubjectRulesReviewStatus) String() string

func (*SubjectRulesReviewStatus) Unmarshal

func (m *SubjectRulesReviewStatus) Unmarshal(dAtA []byte) error

func (*SubjectRulesReviewStatus) XXX_DiscardUnknown

func (m *SubjectRulesReviewStatus) XXX_DiscardUnknown()

func (*SubjectRulesReviewStatus) XXX_Marshal

func (m *SubjectRulesReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubjectRulesReviewStatus) XXX_Merge

func (m *SubjectRulesReviewStatus) XXX_Merge(src proto.Message)

func (*SubjectRulesReviewStatus) XXX_Size

func (m *SubjectRulesReviewStatus) XXX_Size() int

func (*SubjectRulesReviewStatus) XXX_Unmarshal

func (m *SubjectRulesReviewStatus) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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