v1alpha1

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

View Source
const (
	ResourceKindWhoAmI = "WhoAmI"
	ResourceWhoAmI     = "whoami"
	ResourceWhoAmIs    = "whoamis"
)
View Source
const GroupName = "identity.kubeshield.io"

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_identity_UserInfo_To_v1alpha1_UserInfo

func Convert_identity_UserInfo_To_v1alpha1_UserInfo(in *identity.UserInfo, out *UserInfo, s conversion.Scope) error

Convert_identity_UserInfo_To_v1alpha1_UserInfo is an autogenerated conversion function.

func Convert_identity_WhoAmIResponse_To_v1alpha1_WhoAmIResponse

func Convert_identity_WhoAmIResponse_To_v1alpha1_WhoAmIResponse(in *identity.WhoAmIResponse, out *WhoAmIResponse, s conversion.Scope) error

Convert_identity_WhoAmIResponse_To_v1alpha1_WhoAmIResponse is an autogenerated conversion function.

func Convert_identity_WhoAmI_To_v1alpha1_WhoAmI

func Convert_identity_WhoAmI_To_v1alpha1_WhoAmI(in *identity.WhoAmI, out *WhoAmI, s conversion.Scope) error

Convert_identity_WhoAmI_To_v1alpha1_WhoAmI is an autogenerated conversion function.

func Convert_v1alpha1_UserInfo_To_identity_UserInfo

func Convert_v1alpha1_UserInfo_To_identity_UserInfo(in *UserInfo, out *identity.UserInfo, s conversion.Scope) error

Convert_v1alpha1_UserInfo_To_identity_UserInfo is an autogenerated conversion function.

func Convert_v1alpha1_WhoAmIResponse_To_identity_WhoAmIResponse

func Convert_v1alpha1_WhoAmIResponse_To_identity_WhoAmIResponse(in *WhoAmIResponse, out *identity.WhoAmIResponse, s conversion.Scope) error

Convert_v1alpha1_WhoAmIResponse_To_identity_WhoAmIResponse is an autogenerated conversion function.

func Convert_v1alpha1_WhoAmI_To_identity_WhoAmI

func Convert_v1alpha1_WhoAmI_To_identity_WhoAmI(in *WhoAmI, out *identity.WhoAmI, s conversion.Scope) error

Convert_v1alpha1_WhoAmI_To_identity_WhoAmI is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

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) 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" protobuf:"bytes,1,opt,name=username"`
	// 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" protobuf:"bytes,2,opt,name=uid"`
	// The names of groups this user is a part of.
	// +optional
	Groups []string `json:"groups,omitempty" protobuf:"bytes,3,rep,name=groups"`
	// Any additional information provided by the authenticator.
	// +optional
	Extra map[string]ExtraValue `json:"extra,omitempty" protobuf:"bytes,4,rep,name=extra"`
}

UserInfo holds the information about the user needed to implement the user.Info interface.

func (*UserInfo) DeepCopy

func (in *UserInfo) DeepCopy() *UserInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo.

func (*UserInfo) DeepCopyInto

func (in *UserInfo) DeepCopyInto(out *UserInfo)

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"`
}

func (*WhoAmI) DeepCopy

func (in *WhoAmI) DeepCopy() *WhoAmI

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WhoAmI.

func (*WhoAmI) DeepCopyInto

func (in *WhoAmI) DeepCopyInto(out *WhoAmI)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WhoAmI) DeepCopyObject

func (in *WhoAmI) DeepCopyObject() runtime.Object

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.

Jump to

Keyboard shortcuts

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