Documentation
¶
Overview ¶
+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=identity.k8s.appscode.com
Index ¶
Constants ¶
const ( ResourceKindWhoAmI = "WhoAmI" ResourceWhoAmI = "whoami" ResourceWhoAmIs = "whoamis" )
const GroupName = "identity.k8s.appscode.com"
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func GetOpenAPIDefinitions ¶ added in v0.0.2
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
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. // +optional Username string `json:"username,omitempty"` // 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. // +optional UID string `json:"uid,omitempty"` // The names of groups this user is a part of. // +optional Groups []string `json:"groups,omitempty"` // Any additional information provided by the authenticator. // +optional Extra map[string]ExtraValue `json:"extra,omitempty"` }
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 `json:",inline"` // Response describes the attributes for the identity response. // +optional Response *WhoAmIResponse `json:"response,omitempty"` }
WhoAmI is the Schema for the whoamis API
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". // +optional User *UserInfo `json:"user,omitempty"` }
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.