Documentation ¶
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type ExtraValue
- func (in ExtraValue) DeepCopy() ExtraValue
- func (in ExtraValue) DeepCopyInto(out *ExtraValue)
- func (*ExtraValue) Descriptor() ([]byte, []int)
- func (m ExtraValue) Marshal() (dAtA []byte, err error)
- func (m ExtraValue) MarshalTo(dAtA []byte) (int, error)
- func (m ExtraValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExtraValue) ProtoMessage()
- func (m *ExtraValue) Reset()
- func (m ExtraValue) Size() (n int)
- func (t ExtraValue) String() string
- func (m *ExtraValue) Unmarshal(dAtA []byte) error
- func (m *ExtraValue) XXX_DiscardUnknown()
- func (m *ExtraValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExtraValue) XXX_Merge(src proto.Message)
- func (m *ExtraValue) XXX_Size() int
- func (m *ExtraValue) XXX_Unmarshal(b []byte) error
- type LocalSubjectAccessReview
- func (in *LocalSubjectAccessReview) APILifecycleDeprecated() (major, minor int)
- func (in *LocalSubjectAccessReview) APILifecycleIntroduced() (major, minor int)
- func (in *LocalSubjectAccessReview) APILifecycleRemoved() (major, minor int)
- func (in *LocalSubjectAccessReview) APILifecycleReplacement() schema.GroupVersionKind
- func (in *LocalSubjectAccessReview) DeepCopy() *LocalSubjectAccessReview
- func (in *LocalSubjectAccessReview) DeepCopyInto(out *LocalSubjectAccessReview)
- func (in *LocalSubjectAccessReview) DeepCopyObject() runtime.Object
- func (*LocalSubjectAccessReview) Descriptor() ([]byte, []int)
- func (m *LocalSubjectAccessReview) Marshal() (dAtA []byte, err error)
- func (m *LocalSubjectAccessReview) MarshalTo(dAtA []byte) (int, error)
- func (m *LocalSubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LocalSubjectAccessReview) ProtoMessage()
- func (m *LocalSubjectAccessReview) Reset()
- func (m *LocalSubjectAccessReview) Size() (n int)
- func (this *LocalSubjectAccessReview) String() string
- func (LocalSubjectAccessReview) SwaggerDoc() map[string]string
- func (m *LocalSubjectAccessReview) Unmarshal(dAtA []byte) error
- func (m *LocalSubjectAccessReview) XXX_DiscardUnknown()
- func (m *LocalSubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LocalSubjectAccessReview) XXX_Merge(src proto.Message)
- func (m *LocalSubjectAccessReview) XXX_Size() int
- func (m *LocalSubjectAccessReview) XXX_Unmarshal(b []byte) error
- type NonResourceAttributes
- func (in *NonResourceAttributes) DeepCopy() *NonResourceAttributes
- func (in *NonResourceAttributes) DeepCopyInto(out *NonResourceAttributes)
- func (*NonResourceAttributes) Descriptor() ([]byte, []int)
- func (m *NonResourceAttributes) Marshal() (dAtA []byte, err error)
- func (m *NonResourceAttributes) MarshalTo(dAtA []byte) (int, error)
- func (m *NonResourceAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NonResourceAttributes) ProtoMessage()
- func (m *NonResourceAttributes) Reset()
- func (m *NonResourceAttributes) Size() (n int)
- func (this *NonResourceAttributes) String() string
- func (NonResourceAttributes) SwaggerDoc() map[string]string
- func (m *NonResourceAttributes) Unmarshal(dAtA []byte) error
- func (m *NonResourceAttributes) XXX_DiscardUnknown()
- func (m *NonResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NonResourceAttributes) XXX_Merge(src proto.Message)
- func (m *NonResourceAttributes) XXX_Size() int
- func (m *NonResourceAttributes) XXX_Unmarshal(b []byte) error
- type NonResourceRule
- func (in *NonResourceRule) DeepCopy() *NonResourceRule
- func (in *NonResourceRule) DeepCopyInto(out *NonResourceRule)
- func (*NonResourceRule) Descriptor() ([]byte, []int)
- func (m *NonResourceRule) Marshal() (dAtA []byte, err error)
- func (m *NonResourceRule) MarshalTo(dAtA []byte) (int, error)
- func (m *NonResourceRule) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NonResourceRule) ProtoMessage()
- func (m *NonResourceRule) Reset()
- func (m *NonResourceRule) Size() (n int)
- func (this *NonResourceRule) String() string
- func (NonResourceRule) SwaggerDoc() map[string]string
- func (m *NonResourceRule) Unmarshal(dAtA []byte) error
- func (m *NonResourceRule) XXX_DiscardUnknown()
- func (m *NonResourceRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NonResourceRule) XXX_Merge(src proto.Message)
- func (m *NonResourceRule) XXX_Size() int
- func (m *NonResourceRule) XXX_Unmarshal(b []byte) error
- type ResourceAttributes
- func (in *ResourceAttributes) DeepCopy() *ResourceAttributes
- func (in *ResourceAttributes) DeepCopyInto(out *ResourceAttributes)
- func (*ResourceAttributes) Descriptor() ([]byte, []int)
- func (m *ResourceAttributes) Marshal() (dAtA []byte, err error)
- func (m *ResourceAttributes) MarshalTo(dAtA []byte) (int, error)
- func (m *ResourceAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResourceAttributes) ProtoMessage()
- func (m *ResourceAttributes) Reset()
- func (m *ResourceAttributes) Size() (n int)
- func (this *ResourceAttributes) String() string
- func (ResourceAttributes) SwaggerDoc() map[string]string
- func (m *ResourceAttributes) Unmarshal(dAtA []byte) error
- func (m *ResourceAttributes) XXX_DiscardUnknown()
- func (m *ResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceAttributes) XXX_Merge(src proto.Message)
- func (m *ResourceAttributes) XXX_Size() int
- func (m *ResourceAttributes) XXX_Unmarshal(b []byte) error
- type ResourceRule
- func (in *ResourceRule) DeepCopy() *ResourceRule
- func (in *ResourceRule) DeepCopyInto(out *ResourceRule)
- func (*ResourceRule) Descriptor() ([]byte, []int)
- func (m *ResourceRule) Marshal() (dAtA []byte, err error)
- func (m *ResourceRule) MarshalTo(dAtA []byte) (int, error)
- func (m *ResourceRule) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResourceRule) ProtoMessage()
- func (m *ResourceRule) Reset()
- func (m *ResourceRule) Size() (n int)
- func (this *ResourceRule) String() string
- func (ResourceRule) SwaggerDoc() map[string]string
- func (m *ResourceRule) Unmarshal(dAtA []byte) error
- func (m *ResourceRule) XXX_DiscardUnknown()
- func (m *ResourceRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceRule) XXX_Merge(src proto.Message)
- func (m *ResourceRule) XXX_Size() int
- func (m *ResourceRule) XXX_Unmarshal(b []byte) error
- type SelfSubjectAccessReview
- func (in *SelfSubjectAccessReview) APILifecycleDeprecated() (major, minor int)
- func (in *SelfSubjectAccessReview) APILifecycleIntroduced() (major, minor int)
- func (in *SelfSubjectAccessReview) APILifecycleRemoved() (major, minor int)
- func (in *SelfSubjectAccessReview) APILifecycleReplacement() schema.GroupVersionKind
- func (in *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview
- func (in *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview)
- func (in *SelfSubjectAccessReview) DeepCopyObject() runtime.Object
- func (*SelfSubjectAccessReview) Descriptor() ([]byte, []int)
- func (m *SelfSubjectAccessReview) Marshal() (dAtA []byte, err error)
- func (m *SelfSubjectAccessReview) MarshalTo(dAtA []byte) (int, error)
- func (m *SelfSubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SelfSubjectAccessReview) ProtoMessage()
- func (m *SelfSubjectAccessReview) Reset()
- func (m *SelfSubjectAccessReview) Size() (n int)
- func (this *SelfSubjectAccessReview) String() string
- func (SelfSubjectAccessReview) SwaggerDoc() map[string]string
- func (m *SelfSubjectAccessReview) Unmarshal(dAtA []byte) error
- func (m *SelfSubjectAccessReview) XXX_DiscardUnknown()
- func (m *SelfSubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SelfSubjectAccessReview) XXX_Merge(src proto.Message)
- func (m *SelfSubjectAccessReview) XXX_Size() int
- func (m *SelfSubjectAccessReview) XXX_Unmarshal(b []byte) error
- type SelfSubjectAccessReviewSpec
- func (in *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec
- func (in *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec)
- func (*SelfSubjectAccessReviewSpec) Descriptor() ([]byte, []int)
- func (m *SelfSubjectAccessReviewSpec) Marshal() (dAtA []byte, err error)
- func (m *SelfSubjectAccessReviewSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *SelfSubjectAccessReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SelfSubjectAccessReviewSpec) ProtoMessage()
- func (m *SelfSubjectAccessReviewSpec) Reset()
- func (m *SelfSubjectAccessReviewSpec) Size() (n int)
- func (this *SelfSubjectAccessReviewSpec) String() string
- func (SelfSubjectAccessReviewSpec) SwaggerDoc() map[string]string
- func (m *SelfSubjectAccessReviewSpec) Unmarshal(dAtA []byte) error
- func (m *SelfSubjectAccessReviewSpec) XXX_DiscardUnknown()
- func (m *SelfSubjectAccessReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SelfSubjectAccessReviewSpec) XXX_Merge(src proto.Message)
- func (m *SelfSubjectAccessReviewSpec) XXX_Size() int
- func (m *SelfSubjectAccessReviewSpec) XXX_Unmarshal(b []byte) error
- type SelfSubjectRulesReview
- func (in *SelfSubjectRulesReview) APILifecycleDeprecated() (major, minor int)
- func (in *SelfSubjectRulesReview) APILifecycleIntroduced() (major, minor int)
- func (in *SelfSubjectRulesReview) APILifecycleRemoved() (major, minor int)
- func (in *SelfSubjectRulesReview) APILifecycleReplacement() schema.GroupVersionKind
- func (in *SelfSubjectRulesReview) DeepCopy() *SelfSubjectRulesReview
- func (in *SelfSubjectRulesReview) DeepCopyInto(out *SelfSubjectRulesReview)
- func (in *SelfSubjectRulesReview) DeepCopyObject() runtime.Object
- func (*SelfSubjectRulesReview) Descriptor() ([]byte, []int)
- func (m *SelfSubjectRulesReview) Marshal() (dAtA []byte, err error)
- func (m *SelfSubjectRulesReview) MarshalTo(dAtA []byte) (int, error)
- func (m *SelfSubjectRulesReview) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SelfSubjectRulesReview) ProtoMessage()
- func (m *SelfSubjectRulesReview) Reset()
- func (m *SelfSubjectRulesReview) Size() (n int)
- func (this *SelfSubjectRulesReview) String() string
- func (SelfSubjectRulesReview) SwaggerDoc() map[string]string
- func (m *SelfSubjectRulesReview) Unmarshal(dAtA []byte) error
- func (m *SelfSubjectRulesReview) XXX_DiscardUnknown()
- func (m *SelfSubjectRulesReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SelfSubjectRulesReview) XXX_Merge(src proto.Message)
- func (m *SelfSubjectRulesReview) XXX_Size() int
- func (m *SelfSubjectRulesReview) XXX_Unmarshal(b []byte) error
- type SelfSubjectRulesReviewSpec
- func (in *SelfSubjectRulesReviewSpec) DeepCopy() *SelfSubjectRulesReviewSpec
- func (in *SelfSubjectRulesReviewSpec) DeepCopyInto(out *SelfSubjectRulesReviewSpec)
- func (*SelfSubjectRulesReviewSpec) Descriptor() ([]byte, []int)
- func (m *SelfSubjectRulesReviewSpec) Marshal() (dAtA []byte, err error)
- func (m *SelfSubjectRulesReviewSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *SelfSubjectRulesReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SelfSubjectRulesReviewSpec) ProtoMessage()
- func (m *SelfSubjectRulesReviewSpec) Reset()
- func (m *SelfSubjectRulesReviewSpec) Size() (n int)
- func (this *SelfSubjectRulesReviewSpec) String() string
- func (SelfSubjectRulesReviewSpec) SwaggerDoc() map[string]string
- func (m *SelfSubjectRulesReviewSpec) Unmarshal(dAtA []byte) error
- func (m *SelfSubjectRulesReviewSpec) XXX_DiscardUnknown()
- func (m *SelfSubjectRulesReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SelfSubjectRulesReviewSpec) XXX_Merge(src proto.Message)
- func (m *SelfSubjectRulesReviewSpec) XXX_Size() int
- func (m *SelfSubjectRulesReviewSpec) XXX_Unmarshal(b []byte) error
- type SubjectAccessReview
- func (in *SubjectAccessReview) APILifecycleDeprecated() (major, minor int)
- func (in *SubjectAccessReview) APILifecycleIntroduced() (major, minor int)
- func (in *SubjectAccessReview) APILifecycleRemoved() (major, minor int)
- func (in *SubjectAccessReview) APILifecycleReplacement() schema.GroupVersionKind
- func (in *SubjectAccessReview) DeepCopy() *SubjectAccessReview
- func (in *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview)
- func (in *SubjectAccessReview) DeepCopyObject() runtime.Object
- func (*SubjectAccessReview) Descriptor() ([]byte, []int)
- func (m *SubjectAccessReview) Marshal() (dAtA []byte, err error)
- func (m *SubjectAccessReview) MarshalTo(dAtA []byte) (int, error)
- func (m *SubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubjectAccessReview) ProtoMessage()
- func (m *SubjectAccessReview) Reset()
- func (m *SubjectAccessReview) Size() (n int)
- func (this *SubjectAccessReview) String() string
- func (SubjectAccessReview) SwaggerDoc() map[string]string
- func (m *SubjectAccessReview) Unmarshal(dAtA []byte) error
- func (m *SubjectAccessReview) XXX_DiscardUnknown()
- func (m *SubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubjectAccessReview) XXX_Merge(src proto.Message)
- func (m *SubjectAccessReview) XXX_Size() int
- func (m *SubjectAccessReview) XXX_Unmarshal(b []byte) error
- type SubjectAccessReviewSpec
- func (in *SubjectAccessReviewSpec) DeepCopy() *SubjectAccessReviewSpec
- func (in *SubjectAccessReviewSpec) DeepCopyInto(out *SubjectAccessReviewSpec)
- func (*SubjectAccessReviewSpec) Descriptor() ([]byte, []int)
- func (m *SubjectAccessReviewSpec) Marshal() (dAtA []byte, err error)
- func (m *SubjectAccessReviewSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *SubjectAccessReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubjectAccessReviewSpec) ProtoMessage()
- func (m *SubjectAccessReviewSpec) Reset()
- func (m *SubjectAccessReviewSpec) Size() (n int)
- func (this *SubjectAccessReviewSpec) String() string
- func (SubjectAccessReviewSpec) SwaggerDoc() map[string]string
- func (m *SubjectAccessReviewSpec) Unmarshal(dAtA []byte) error
- func (m *SubjectAccessReviewSpec) XXX_DiscardUnknown()
- func (m *SubjectAccessReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubjectAccessReviewSpec) XXX_Merge(src proto.Message)
- func (m *SubjectAccessReviewSpec) XXX_Size() int
- func (m *SubjectAccessReviewSpec) XXX_Unmarshal(b []byte) error
- type SubjectAccessReviewStatus
- func (in *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus
- func (in *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus)
- func (*SubjectAccessReviewStatus) Descriptor() ([]byte, []int)
- func (m *SubjectAccessReviewStatus) Marshal() (dAtA []byte, err error)
- func (m *SubjectAccessReviewStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *SubjectAccessReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubjectAccessReviewStatus) ProtoMessage()
- func (m *SubjectAccessReviewStatus) Reset()
- func (m *SubjectAccessReviewStatus) Size() (n int)
- func (this *SubjectAccessReviewStatus) String() string
- func (SubjectAccessReviewStatus) SwaggerDoc() map[string]string
- func (m *SubjectAccessReviewStatus) Unmarshal(dAtA []byte) error
- func (m *SubjectAccessReviewStatus) XXX_DiscardUnknown()
- func (m *SubjectAccessReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubjectAccessReviewStatus) XXX_Merge(src proto.Message)
- func (m *SubjectAccessReviewStatus) XXX_Size() int
- func (m *SubjectAccessReviewStatus) XXX_Unmarshal(b []byte) error
- type SubjectRulesReviewStatus
- func (in *SubjectRulesReviewStatus) DeepCopy() *SubjectRulesReviewStatus
- func (in *SubjectRulesReviewStatus) DeepCopyInto(out *SubjectRulesReviewStatus)
- func (*SubjectRulesReviewStatus) Descriptor() ([]byte, []int)
- func (m *SubjectRulesReviewStatus) Marshal() (dAtA []byte, err error)
- func (m *SubjectRulesReviewStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *SubjectRulesReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubjectRulesReviewStatus) ProtoMessage()
- func (m *SubjectRulesReviewStatus) Reset()
- func (m *SubjectRulesReviewStatus) Size() (n int)
- func (this *SubjectRulesReviewStatus) String() string
- func (SubjectRulesReviewStatus) SwaggerDoc() map[string]string
- func (m *SubjectRulesReviewStatus) Unmarshal(dAtA []byte) error
- func (m *SubjectRulesReviewStatus) XXX_DiscardUnknown()
- func (m *SubjectRulesReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubjectRulesReviewStatus) XXX_Merge(src proto.Message)
- func (m *SubjectRulesReviewStatus) XXX_Size() int
- func (m *SubjectRulesReviewStatus) XXX_Unmarshal(b []byte) error
Constants ¶
const GroupName = "authorization.k8s.io"
GroupName is the group name use in this package
Variables ¶
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") )
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ExtraValue ¶
type ExtraValue []string
ExtraValue masks the value so protobuf can generate +protobuf.nullable=true +protobuf.options.(gogoproto.goproto_stringer)=false
func (ExtraValue) DeepCopy ¶
func (in ExtraValue) DeepCopy() ExtraValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraValue.
func (ExtraValue) DeepCopyInto ¶
func (in ExtraValue) DeepCopyInto(out *ExtraValue)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExtraValue) Descriptor ¶
func (*ExtraValue) Descriptor() ([]byte, []int)
func (ExtraValue) Marshal ¶
func (m ExtraValue) Marshal() (dAtA []byte, err error)
func (ExtraValue) MarshalToSizedBuffer ¶ added in v0.16.4
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 (t ExtraValue) String() string
func (*ExtraValue) Unmarshal ¶
func (m *ExtraValue) Unmarshal(dAtA []byte) error
func (*ExtraValue) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *ExtraValue) XXX_DiscardUnknown()
func (*ExtraValue) XXX_Marshal ¶ added in v0.16.4
func (m *ExtraValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExtraValue) XXX_Merge ¶ added in v0.16.4
func (m *ExtraValue) XXX_Merge(src proto.Message)
func (*ExtraValue) XXX_Size ¶ added in v0.16.4
func (m *ExtraValue) XXX_Size() int
func (*ExtraValue) XXX_Unmarshal ¶ added in v0.16.4
func (m *ExtraValue) XXX_Unmarshal(b []byte) error
type LocalSubjectAccessReview ¶
type LocalSubjectAccessReview struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // 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 `json:"spec" protobuf:"bytes,2,opt,name=spec"` // Status is filled in by the server and indicates whether the request is allowed or not // +optional Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
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) APILifecycleDeprecated ¶ added in v0.19.0
func (in *LocalSubjectAccessReview) APILifecycleDeprecated() (major, minor int)
APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
func (*LocalSubjectAccessReview) APILifecycleIntroduced ¶ added in v0.19.0
func (in *LocalSubjectAccessReview) APILifecycleIntroduced() (major, minor int)
APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
func (*LocalSubjectAccessReview) APILifecycleRemoved ¶ added in v0.19.0
func (in *LocalSubjectAccessReview) APILifecycleRemoved() (major, minor int)
APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
func (*LocalSubjectAccessReview) APILifecycleReplacement ¶ added in v0.19.0
func (in *LocalSubjectAccessReview) APILifecycleReplacement() schema.GroupVersionKind
APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. It is controlled by "k8s:prerelease-lifecycle-gen:replacement=<group>,<version>,<kind>" tags in types.go.
func (*LocalSubjectAccessReview) DeepCopy ¶
func (in *LocalSubjectAccessReview) DeepCopy() *LocalSubjectAccessReview
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalSubjectAccessReview.
func (*LocalSubjectAccessReview) DeepCopyInto ¶
func (in *LocalSubjectAccessReview) DeepCopyInto(out *LocalSubjectAccessReview)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocalSubjectAccessReview) DeepCopyObject ¶
func (in *LocalSubjectAccessReview) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*LocalSubjectAccessReview) Descriptor ¶
func (*LocalSubjectAccessReview) Descriptor() ([]byte, []int)
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 ¶ added in v0.16.4
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) SwaggerDoc ¶
func (LocalSubjectAccessReview) SwaggerDoc() map[string]string
func (*LocalSubjectAccessReview) Unmarshal ¶
func (m *LocalSubjectAccessReview) Unmarshal(dAtA []byte) error
func (*LocalSubjectAccessReview) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *LocalSubjectAccessReview) XXX_DiscardUnknown()
func (*LocalSubjectAccessReview) XXX_Marshal ¶ added in v0.16.4
func (m *LocalSubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LocalSubjectAccessReview) XXX_Merge ¶ added in v0.16.4
func (m *LocalSubjectAccessReview) XXX_Merge(src proto.Message)
func (*LocalSubjectAccessReview) XXX_Size ¶ added in v0.16.4
func (m *LocalSubjectAccessReview) XXX_Size() int
func (*LocalSubjectAccessReview) XXX_Unmarshal ¶ added in v0.16.4
func (m *LocalSubjectAccessReview) XXX_Unmarshal(b []byte) error
type NonResourceAttributes ¶
type NonResourceAttributes struct { // Path is the URL path of the request // +optional Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` // Verb is the standard HTTP verb // +optional Verb string `json:"verb,omitempty" protobuf:"bytes,2,opt,name=verb"` }
NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface
func (*NonResourceAttributes) DeepCopy ¶
func (in *NonResourceAttributes) DeepCopy() *NonResourceAttributes
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceAttributes.
func (*NonResourceAttributes) DeepCopyInto ¶
func (in *NonResourceAttributes) DeepCopyInto(out *NonResourceAttributes)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NonResourceAttributes) Descriptor ¶
func (*NonResourceAttributes) Descriptor() ([]byte, []int)
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 ¶ added in v0.16.4
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) SwaggerDoc ¶
func (NonResourceAttributes) SwaggerDoc() map[string]string
func (*NonResourceAttributes) Unmarshal ¶
func (m *NonResourceAttributes) Unmarshal(dAtA []byte) error
func (*NonResourceAttributes) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *NonResourceAttributes) XXX_DiscardUnknown()
func (*NonResourceAttributes) XXX_Marshal ¶ added in v0.16.4
func (m *NonResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NonResourceAttributes) XXX_Merge ¶ added in v0.16.4
func (m *NonResourceAttributes) XXX_Merge(src proto.Message)
func (*NonResourceAttributes) XXX_Size ¶ added in v0.16.4
func (m *NonResourceAttributes) XXX_Size() int
func (*NonResourceAttributes) XXX_Unmarshal ¶ added in v0.16.4
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. // +listType=atomic Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` // 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 // +listType=atomic NonResourceURLs []string `json:"nonResourceURLs,omitempty" protobuf:"bytes,2,rep,name=nonResourceURLs"` }
NonResourceRule holds information that describes a rule for the non-resource
func (*NonResourceRule) DeepCopy ¶
func (in *NonResourceRule) DeepCopy() *NonResourceRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceRule.
func (*NonResourceRule) DeepCopyInto ¶
func (in *NonResourceRule) DeepCopyInto(out *NonResourceRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NonResourceRule) Descriptor ¶
func (*NonResourceRule) Descriptor() ([]byte, []int)
func (*NonResourceRule) Marshal ¶
func (m *NonResourceRule) Marshal() (dAtA []byte, err error)
func (*NonResourceRule) MarshalToSizedBuffer ¶ added in v0.16.4
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) SwaggerDoc ¶
func (NonResourceRule) SwaggerDoc() map[string]string
func (*NonResourceRule) Unmarshal ¶
func (m *NonResourceRule) Unmarshal(dAtA []byte) error
func (*NonResourceRule) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *NonResourceRule) XXX_DiscardUnknown()
func (*NonResourceRule) XXX_Marshal ¶ added in v0.16.4
func (m *NonResourceRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NonResourceRule) XXX_Merge ¶ added in v0.16.4
func (m *NonResourceRule) XXX_Merge(src proto.Message)
func (*NonResourceRule) XXX_Size ¶ added in v0.16.4
func (m *NonResourceRule) XXX_Size() int
func (*NonResourceRule) XXX_Unmarshal ¶ added in v0.16.4
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 `json:"namespace,omitempty" protobuf:"bytes,1,opt,name=namespace"` // Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. // +optional Verb string `json:"verb,omitempty" protobuf:"bytes,2,opt,name=verb"` // Group is the API Group of the Resource. "*" means all. // +optional Group string `json:"group,omitempty" protobuf:"bytes,3,opt,name=group"` // Version is the API Version of the Resource. "*" means all. // +optional Version string `json:"version,omitempty" protobuf:"bytes,4,opt,name=version"` // Resource is one of the existing resource types. "*" means all. // +optional Resource string `json:"resource,omitempty" protobuf:"bytes,5,opt,name=resource"` // Subresource is one of the existing resource types. "" means none. // +optional Subresource string `json:"subresource,omitempty" protobuf:"bytes,6,opt,name=subresource"` // Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. // +optional Name string `json:"name,omitempty" protobuf:"bytes,7,opt,name=name"` // fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it. // +optional FieldSelector *authorizationv1.FieldSelectorAttributes `json:"fieldSelector,omitempty" protobuf:"bytes,8,opt,name=fieldSelector"` // labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it. // +optional LabelSelector *authorizationv1.LabelSelectorAttributes `json:"labelSelector,omitempty" protobuf:"bytes,9,opt,name=labelSelector"` }
ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface
func (*ResourceAttributes) DeepCopy ¶
func (in *ResourceAttributes) DeepCopy() *ResourceAttributes
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceAttributes.
func (*ResourceAttributes) DeepCopyInto ¶
func (in *ResourceAttributes) DeepCopyInto(out *ResourceAttributes)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceAttributes) Descriptor ¶
func (*ResourceAttributes) Descriptor() ([]byte, []int)
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 ¶ added in v0.16.4
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) SwaggerDoc ¶
func (ResourceAttributes) SwaggerDoc() map[string]string
func (*ResourceAttributes) Unmarshal ¶
func (m *ResourceAttributes) Unmarshal(dAtA []byte) error
func (*ResourceAttributes) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *ResourceAttributes) XXX_DiscardUnknown()
func (*ResourceAttributes) XXX_Marshal ¶ added in v0.16.4
func (m *ResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceAttributes) XXX_Merge ¶ added in v0.16.4
func (m *ResourceAttributes) XXX_Merge(src proto.Message)
func (*ResourceAttributes) XXX_Size ¶ added in v0.16.4
func (m *ResourceAttributes) XXX_Size() int
func (*ResourceAttributes) XXX_Unmarshal ¶ added in v0.16.4
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. // +listType=atomic Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` // 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 // +listType=atomic APIGroups []string `json:"apiGroups,omitempty" protobuf:"bytes,2,rep,name=apiGroups"` // 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 // +listType=atomic Resources []string `json:"resources,omitempty" protobuf:"bytes,3,rep,name=resources"` // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. // +optional // +listType=atomic ResourceNames []string `json:"resourceNames,omitempty" protobuf:"bytes,4,rep,name=resourceNames"` }
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) DeepCopy ¶
func (in *ResourceRule) DeepCopy() *ResourceRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRule.
func (*ResourceRule) DeepCopyInto ¶
func (in *ResourceRule) DeepCopyInto(out *ResourceRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceRule) Descriptor ¶
func (*ResourceRule) Descriptor() ([]byte, []int)
func (*ResourceRule) Marshal ¶
func (m *ResourceRule) Marshal() (dAtA []byte, err error)
func (*ResourceRule) MarshalToSizedBuffer ¶ added in v0.16.4
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) SwaggerDoc ¶
func (ResourceRule) SwaggerDoc() map[string]string
func (*ResourceRule) Unmarshal ¶
func (m *ResourceRule) Unmarshal(dAtA []byte) error
func (*ResourceRule) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *ResourceRule) XXX_DiscardUnknown()
func (*ResourceRule) XXX_Marshal ¶ added in v0.16.4
func (m *ResourceRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceRule) XXX_Merge ¶ added in v0.16.4
func (m *ResourceRule) XXX_Merge(src proto.Message)
func (*ResourceRule) XXX_Size ¶ added in v0.16.4
func (m *ResourceRule) XXX_Size() int
func (*ResourceRule) XXX_Unmarshal ¶ added in v0.16.4
func (m *ResourceRule) XXX_Unmarshal(b []byte) error
type SelfSubjectAccessReview ¶
type SelfSubjectAccessReview struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec holds information about the request being evaluated. user and groups must be empty Spec SelfSubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // Status is filled in by the server and indicates whether the request is allowed or not // +optional Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
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) APILifecycleDeprecated ¶ added in v0.19.0
func (in *SelfSubjectAccessReview) APILifecycleDeprecated() (major, minor int)
APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
func (*SelfSubjectAccessReview) APILifecycleIntroduced ¶ added in v0.19.0
func (in *SelfSubjectAccessReview) APILifecycleIntroduced() (major, minor int)
APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
func (*SelfSubjectAccessReview) APILifecycleRemoved ¶ added in v0.19.0
func (in *SelfSubjectAccessReview) APILifecycleRemoved() (major, minor int)
APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
func (*SelfSubjectAccessReview) APILifecycleReplacement ¶ added in v0.19.0
func (in *SelfSubjectAccessReview) APILifecycleReplacement() schema.GroupVersionKind
APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. It is controlled by "k8s:prerelease-lifecycle-gen:replacement=<group>,<version>,<kind>" tags in types.go.
func (*SelfSubjectAccessReview) DeepCopy ¶
func (in *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReview.
func (*SelfSubjectAccessReview) DeepCopyInto ¶
func (in *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SelfSubjectAccessReview) DeepCopyObject ¶
func (in *SelfSubjectAccessReview) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SelfSubjectAccessReview) Descriptor ¶
func (*SelfSubjectAccessReview) Descriptor() ([]byte, []int)
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 ¶ added in v0.16.4
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) SwaggerDoc ¶
func (SelfSubjectAccessReview) SwaggerDoc() map[string]string
func (*SelfSubjectAccessReview) Unmarshal ¶
func (m *SelfSubjectAccessReview) Unmarshal(dAtA []byte) error
func (*SelfSubjectAccessReview) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *SelfSubjectAccessReview) XXX_DiscardUnknown()
func (*SelfSubjectAccessReview) XXX_Marshal ¶ added in v0.16.4
func (m *SelfSubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SelfSubjectAccessReview) XXX_Merge ¶ added in v0.16.4
func (m *SelfSubjectAccessReview) XXX_Merge(src proto.Message)
func (*SelfSubjectAccessReview) XXX_Size ¶ added in v0.16.4
func (m *SelfSubjectAccessReview) XXX_Size() int
func (*SelfSubjectAccessReview) XXX_Unmarshal ¶ added in v0.16.4
func (m *SelfSubjectAccessReview) XXX_Unmarshal(b []byte) error
type SelfSubjectAccessReviewSpec ¶
type SelfSubjectAccessReviewSpec struct { // ResourceAuthorizationAttributes describes information for a resource access request // +optional ResourceAttributes *ResourceAttributes `json:"resourceAttributes,omitempty" protobuf:"bytes,1,opt,name=resourceAttributes"` // NonResourceAttributes describes information for a non-resource access request // +optional NonResourceAttributes *NonResourceAttributes `json:"nonResourceAttributes,omitempty" protobuf:"bytes,2,opt,name=nonResourceAttributes"` }
SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
func (*SelfSubjectAccessReviewSpec) DeepCopy ¶
func (in *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewSpec.
func (*SelfSubjectAccessReviewSpec) DeepCopyInto ¶
func (in *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SelfSubjectAccessReviewSpec) Descriptor ¶
func (*SelfSubjectAccessReviewSpec) Descriptor() ([]byte, []int)
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 ¶ added in v0.16.4
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) SwaggerDoc ¶
func (SelfSubjectAccessReviewSpec) SwaggerDoc() map[string]string
func (*SelfSubjectAccessReviewSpec) Unmarshal ¶
func (m *SelfSubjectAccessReviewSpec) Unmarshal(dAtA []byte) error
func (*SelfSubjectAccessReviewSpec) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *SelfSubjectAccessReviewSpec) XXX_DiscardUnknown()
func (*SelfSubjectAccessReviewSpec) XXX_Marshal ¶ added in v0.16.4
func (m *SelfSubjectAccessReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SelfSubjectAccessReviewSpec) XXX_Merge ¶ added in v0.16.4
func (m *SelfSubjectAccessReviewSpec) XXX_Merge(src proto.Message)
func (*SelfSubjectAccessReviewSpec) XXX_Size ¶ added in v0.16.4
func (m *SelfSubjectAccessReviewSpec) XXX_Size() int
func (*SelfSubjectAccessReviewSpec) XXX_Unmarshal ¶ added in v0.16.4
func (m *SelfSubjectAccessReviewSpec) XXX_Unmarshal(b []byte) error
type SelfSubjectRulesReview ¶
type SelfSubjectRulesReview struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec holds information about the request being evaluated. Spec SelfSubjectRulesReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // Status is filled in by the server and indicates the set of actions a user can perform. // +optional Status SubjectRulesReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
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) APILifecycleDeprecated ¶ added in v0.19.0
func (in *SelfSubjectRulesReview) APILifecycleDeprecated() (major, minor int)
APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
func (*SelfSubjectRulesReview) APILifecycleIntroduced ¶ added in v0.19.0
func (in *SelfSubjectRulesReview) APILifecycleIntroduced() (major, minor int)
APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
func (*SelfSubjectRulesReview) APILifecycleRemoved ¶ added in v0.19.0
func (in *SelfSubjectRulesReview) APILifecycleRemoved() (major, minor int)
APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
func (*SelfSubjectRulesReview) APILifecycleReplacement ¶ added in v0.19.0
func (in *SelfSubjectRulesReview) APILifecycleReplacement() schema.GroupVersionKind
APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. It is controlled by "k8s:prerelease-lifecycle-gen:replacement=<group>,<version>,<kind>" tags in types.go.
func (*SelfSubjectRulesReview) DeepCopy ¶
func (in *SelfSubjectRulesReview) DeepCopy() *SelfSubjectRulesReview
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectRulesReview.
func (*SelfSubjectRulesReview) DeepCopyInto ¶
func (in *SelfSubjectRulesReview) DeepCopyInto(out *SelfSubjectRulesReview)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SelfSubjectRulesReview) DeepCopyObject ¶
func (in *SelfSubjectRulesReview) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SelfSubjectRulesReview) Descriptor ¶
func (*SelfSubjectRulesReview) Descriptor() ([]byte, []int)
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 ¶ added in v0.16.4
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) SwaggerDoc ¶
func (SelfSubjectRulesReview) SwaggerDoc() map[string]string
func (*SelfSubjectRulesReview) Unmarshal ¶
func (m *SelfSubjectRulesReview) Unmarshal(dAtA []byte) error
func (*SelfSubjectRulesReview) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *SelfSubjectRulesReview) XXX_DiscardUnknown()
func (*SelfSubjectRulesReview) XXX_Marshal ¶ added in v0.16.4
func (m *SelfSubjectRulesReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SelfSubjectRulesReview) XXX_Merge ¶ added in v0.16.4
func (m *SelfSubjectRulesReview) XXX_Merge(src proto.Message)
func (*SelfSubjectRulesReview) XXX_Size ¶ added in v0.16.4
func (m *SelfSubjectRulesReview) XXX_Size() int
func (*SelfSubjectRulesReview) XXX_Unmarshal ¶ added in v0.16.4
func (m *SelfSubjectRulesReview) XXX_Unmarshal(b []byte) error
type SelfSubjectRulesReviewSpec ¶
type SelfSubjectRulesReviewSpec struct { // Namespace to evaluate rules for. Required. Namespace string `json:"namespace,omitempty" protobuf:"bytes,1,opt,name=namespace"` }
SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.
func (*SelfSubjectRulesReviewSpec) DeepCopy ¶
func (in *SelfSubjectRulesReviewSpec) DeepCopy() *SelfSubjectRulesReviewSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectRulesReviewSpec.
func (*SelfSubjectRulesReviewSpec) DeepCopyInto ¶
func (in *SelfSubjectRulesReviewSpec) DeepCopyInto(out *SelfSubjectRulesReviewSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SelfSubjectRulesReviewSpec) Descriptor ¶
func (*SelfSubjectRulesReviewSpec) Descriptor() ([]byte, []int)
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 ¶ added in v0.16.4
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) SwaggerDoc ¶
func (SelfSubjectRulesReviewSpec) SwaggerDoc() map[string]string
func (*SelfSubjectRulesReviewSpec) Unmarshal ¶
func (m *SelfSubjectRulesReviewSpec) Unmarshal(dAtA []byte) error
func (*SelfSubjectRulesReviewSpec) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *SelfSubjectRulesReviewSpec) XXX_DiscardUnknown()
func (*SelfSubjectRulesReviewSpec) XXX_Marshal ¶ added in v0.16.4
func (m *SelfSubjectRulesReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SelfSubjectRulesReviewSpec) XXX_Merge ¶ added in v0.16.4
func (m *SelfSubjectRulesReviewSpec) XXX_Merge(src proto.Message)
func (*SelfSubjectRulesReviewSpec) XXX_Size ¶ added in v0.16.4
func (m *SelfSubjectRulesReviewSpec) XXX_Size() int
func (*SelfSubjectRulesReviewSpec) XXX_Unmarshal ¶ added in v0.16.4
func (m *SelfSubjectRulesReviewSpec) XXX_Unmarshal(b []byte) error
type SubjectAccessReview ¶
type SubjectAccessReview struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec holds information about the request being evaluated Spec SubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // Status is filled in by the server and indicates whether the request is allowed or not // +optional Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
SubjectAccessReview checks whether or not a user or group can perform an action.
func (*SubjectAccessReview) APILifecycleDeprecated ¶ added in v0.19.0
func (in *SubjectAccessReview) APILifecycleDeprecated() (major, minor int)
APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
func (*SubjectAccessReview) APILifecycleIntroduced ¶ added in v0.19.0
func (in *SubjectAccessReview) APILifecycleIntroduced() (major, minor int)
APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
func (*SubjectAccessReview) APILifecycleRemoved ¶ added in v0.19.0
func (in *SubjectAccessReview) APILifecycleRemoved() (major, minor int)
APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
func (*SubjectAccessReview) APILifecycleReplacement ¶ added in v0.19.0
func (in *SubjectAccessReview) APILifecycleReplacement() schema.GroupVersionKind
APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. It is controlled by "k8s:prerelease-lifecycle-gen:replacement=<group>,<version>,<kind>" tags in types.go.
func (*SubjectAccessReview) DeepCopy ¶
func (in *SubjectAccessReview) DeepCopy() *SubjectAccessReview
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReview.
func (*SubjectAccessReview) DeepCopyInto ¶
func (in *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubjectAccessReview) DeepCopyObject ¶
func (in *SubjectAccessReview) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SubjectAccessReview) Descriptor ¶
func (*SubjectAccessReview) Descriptor() ([]byte, []int)
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 ¶ added in v0.16.4
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) SwaggerDoc ¶
func (SubjectAccessReview) SwaggerDoc() map[string]string
func (*SubjectAccessReview) Unmarshal ¶
func (m *SubjectAccessReview) Unmarshal(dAtA []byte) error
func (*SubjectAccessReview) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *SubjectAccessReview) XXX_DiscardUnknown()
func (*SubjectAccessReview) XXX_Marshal ¶ added in v0.16.4
func (m *SubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubjectAccessReview) XXX_Merge ¶ added in v0.16.4
func (m *SubjectAccessReview) XXX_Merge(src proto.Message)
func (*SubjectAccessReview) XXX_Size ¶ added in v0.16.4
func (m *SubjectAccessReview) XXX_Size() int
func (*SubjectAccessReview) XXX_Unmarshal ¶ added in v0.16.4
func (m *SubjectAccessReview) XXX_Unmarshal(b []byte) error
type SubjectAccessReviewSpec ¶
type SubjectAccessReviewSpec struct { // ResourceAuthorizationAttributes describes information for a resource access request // +optional ResourceAttributes *ResourceAttributes `json:"resourceAttributes,omitempty" protobuf:"bytes,1,opt,name=resourceAttributes"` // NonResourceAttributes describes information for a non-resource access request // +optional NonResourceAttributes *NonResourceAttributes `json:"nonResourceAttributes,omitempty" protobuf:"bytes,2,opt,name=nonResourceAttributes"` // User is the user you're testing for. // If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups // +optional User string `json:"user,omitempty" protobuf:"bytes,3,opt,name=user"` // Groups is the groups you're testing for. // +optional // +listType=atomic Groups []string `json:"group,omitempty" protobuf:"bytes,4,rep,name=group"` // 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 `json:"extra,omitempty" protobuf:"bytes,5,rep,name=extra"` // UID information about the requesting user. // +optional UID string `json:"uid,omitempty" protobuf:"bytes,6,opt,name=uid"` }
SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
func (*SubjectAccessReviewSpec) DeepCopy ¶
func (in *SubjectAccessReviewSpec) DeepCopy() *SubjectAccessReviewSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewSpec.
func (*SubjectAccessReviewSpec) DeepCopyInto ¶
func (in *SubjectAccessReviewSpec) DeepCopyInto(out *SubjectAccessReviewSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubjectAccessReviewSpec) Descriptor ¶
func (*SubjectAccessReviewSpec) Descriptor() ([]byte, []int)
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 ¶ added in v0.16.4
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) SwaggerDoc ¶
func (SubjectAccessReviewSpec) SwaggerDoc() map[string]string
func (*SubjectAccessReviewSpec) Unmarshal ¶
func (m *SubjectAccessReviewSpec) Unmarshal(dAtA []byte) error
func (*SubjectAccessReviewSpec) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *SubjectAccessReviewSpec) XXX_DiscardUnknown()
func (*SubjectAccessReviewSpec) XXX_Marshal ¶ added in v0.16.4
func (m *SubjectAccessReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubjectAccessReviewSpec) XXX_Merge ¶ added in v0.16.4
func (m *SubjectAccessReviewSpec) XXX_Merge(src proto.Message)
func (*SubjectAccessReviewSpec) XXX_Size ¶ added in v0.16.4
func (m *SubjectAccessReviewSpec) XXX_Size() int
func (*SubjectAccessReviewSpec) XXX_Unmarshal ¶ added in v0.16.4
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 `json:"allowed" protobuf:"varint,1,opt,name=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 `json:"denied,omitempty" protobuf:"varint,4,opt,name=denied"` // Reason is optional. It indicates why a request was allowed or denied. // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,2,opt,name=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 `json:"evaluationError,omitempty" protobuf:"bytes,3,opt,name=evaluationError"` }
SubjectAccessReviewStatus
func (*SubjectAccessReviewStatus) DeepCopy ¶
func (in *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewStatus.
func (*SubjectAccessReviewStatus) DeepCopyInto ¶
func (in *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubjectAccessReviewStatus) Descriptor ¶
func (*SubjectAccessReviewStatus) Descriptor() ([]byte, []int)
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 ¶ added in v0.16.4
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) SwaggerDoc ¶
func (SubjectAccessReviewStatus) SwaggerDoc() map[string]string
func (*SubjectAccessReviewStatus) Unmarshal ¶
func (m *SubjectAccessReviewStatus) Unmarshal(dAtA []byte) error
func (*SubjectAccessReviewStatus) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *SubjectAccessReviewStatus) XXX_DiscardUnknown()
func (*SubjectAccessReviewStatus) XXX_Marshal ¶ added in v0.16.4
func (m *SubjectAccessReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubjectAccessReviewStatus) XXX_Merge ¶ added in v0.16.4
func (m *SubjectAccessReviewStatus) XXX_Merge(src proto.Message)
func (*SubjectAccessReviewStatus) XXX_Size ¶ added in v0.16.4
func (m *SubjectAccessReviewStatus) XXX_Size() int
func (*SubjectAccessReviewStatus) XXX_Unmarshal ¶ added in v0.16.4
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. // +listType=atomic ResourceRules []ResourceRule `json:"resourceRules" protobuf:"bytes,1,rep,name=resourceRules"` // 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. // +listType=atomic NonResourceRules []NonResourceRule `json:"nonResourceRules" protobuf:"bytes,2,rep,name=nonResourceRules"` // 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 `json:"incomplete" protobuf:"bytes,3,rep,name=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 `json:"evaluationError,omitempty" protobuf:"bytes,4,opt,name=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) DeepCopy ¶
func (in *SubjectRulesReviewStatus) DeepCopy() *SubjectRulesReviewStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectRulesReviewStatus.
func (*SubjectRulesReviewStatus) DeepCopyInto ¶
func (in *SubjectRulesReviewStatus) DeepCopyInto(out *SubjectRulesReviewStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubjectRulesReviewStatus) Descriptor ¶
func (*SubjectRulesReviewStatus) Descriptor() ([]byte, []int)
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 ¶ added in v0.16.4
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) SwaggerDoc ¶
func (SubjectRulesReviewStatus) SwaggerDoc() map[string]string
func (*SubjectRulesReviewStatus) Unmarshal ¶
func (m *SubjectRulesReviewStatus) Unmarshal(dAtA []byte) error
func (*SubjectRulesReviewStatus) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *SubjectRulesReviewStatus) XXX_DiscardUnknown()
func (*SubjectRulesReviewStatus) XXX_Marshal ¶ added in v0.16.4
func (m *SubjectRulesReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubjectRulesReviewStatus) XXX_Merge ¶ added in v0.16.4
func (m *SubjectRulesReviewStatus) XXX_Merge(src proto.Message)
func (*SubjectRulesReviewStatus) XXX_Size ¶ added in v0.16.4
func (m *SubjectRulesReviewStatus) XXX_Size() int
func (*SubjectRulesReviewStatus) XXX_Unmarshal ¶ added in v0.16.4
func (m *SubjectRulesReviewStatus) XXX_Unmarshal(b []byte) error