Documentation ¶
Overview ¶
Package api is the internal version of the API.
Index ¶
Constants ¶
const GroupName = "identity.kubeshield.io"
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
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 back 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) String ¶
func (t ExtraValue) String() string
type UserInfo ¶
type UserInfo struct { // The name that uniquely identifies this user among all active users. Username string // A unique value that identifies this user across time. If this user is // deleted and another user by the same name is added, they will have // different UIDs. UID string // The names of groups this user is a part of. Groups []string // Any additional information provided by the authenticator. Extra map[string]ExtraValue }
UserInfo holds the information about the user needed to implement the user.Info interface.
func (*UserInfo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo.
func (*UserInfo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WhoAmI ¶
type WhoAmI struct { metav1.TypeMeta // Response describes the attributes for the identity response. Response *WhoAmIResponse }
func (*WhoAmI) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WhoAmI.
func (*WhoAmI) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WhoAmI) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WhoAmIResponse ¶
type WhoAmIResponse struct { // Result contains extra details into why an admission request was denied. // This field IS NOT consulted in any way if "Allowed" is "true". User *UserInfo }
WhoAmIResponse describes an admission response.
func (*WhoAmIResponse) DeepCopy ¶
func (in *WhoAmIResponse) DeepCopy() *WhoAmIResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WhoAmIResponse.
func (*WhoAmIResponse) DeepCopyInto ¶
func (in *WhoAmIResponse) DeepCopyInto(out *WhoAmIResponse)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.