identity

package
v0.0.0-...-20cfa0a Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package identity is the internal version of the Pinniped identity API.

Index

Constants

View Source
const GroupName = "identity.concierge.pinniped.dev"

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects.

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind.

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

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 KubernetesUserInfo

type KubernetesUserInfo struct {
	// User is the UserInfo associated with the current user.
	User UserInfo
	// Audiences are audience identifiers chosen by the authenticator.
	Audiences []string
}

KubernetesUserInfo represents the current authenticated user, exactly as Kubernetes understands it. Copied from the Kubernetes token review API.

func (*KubernetesUserInfo) DeepCopy

func (in *KubernetesUserInfo) DeepCopy() *KubernetesUserInfo

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

func (*KubernetesUserInfo) DeepCopyInto

func (in *KubernetesUserInfo) DeepCopyInto(out *KubernetesUserInfo)

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

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

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 WhoAmIRequest

type WhoAmIRequest struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   WhoAmIRequestSpec
	Status WhoAmIRequestStatus
}

WhoAmIRequest submits a request to echo back the current authenticated user. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*WhoAmIRequest) DeepCopy

func (in *WhoAmIRequest) DeepCopy() *WhoAmIRequest

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

func (*WhoAmIRequest) DeepCopyInto

func (in *WhoAmIRequest) DeepCopyInto(out *WhoAmIRequest)

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

func (*WhoAmIRequest) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WhoAmIRequestList

type WhoAmIRequestList struct {
	metav1.TypeMeta
	metav1.ListMeta

	// Items is a list of WhoAmIRequest.
	Items []WhoAmIRequest
}

WhoAmIRequestList is a list of WhoAmIRequest objects. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*WhoAmIRequestList) DeepCopy

func (in *WhoAmIRequestList) DeepCopy() *WhoAmIRequestList

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

func (*WhoAmIRequestList) DeepCopyInto

func (in *WhoAmIRequestList) DeepCopyInto(out *WhoAmIRequestList)

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

func (*WhoAmIRequestList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WhoAmIRequestSpec

type WhoAmIRequestSpec struct {
}

Spec is always empty for a WhoAmIRequest.

func (*WhoAmIRequestSpec) DeepCopy

func (in *WhoAmIRequestSpec) DeepCopy() *WhoAmIRequestSpec

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

func (*WhoAmIRequestSpec) DeepCopyInto

func (in *WhoAmIRequestSpec) DeepCopyInto(out *WhoAmIRequestSpec)

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

type WhoAmIRequestStatus

type WhoAmIRequestStatus struct {
	// The current authenticated user, exactly as Kubernetes understands it.
	KubernetesUserInfo KubernetesUserInfo
}

Status is set by the server in the response to a WhoAmIRequest.

func (*WhoAmIRequestStatus) DeepCopy

func (in *WhoAmIRequestStatus) DeepCopy() *WhoAmIRequestStatus

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

func (*WhoAmIRequestStatus) DeepCopyInto

func (in *WhoAmIRequestStatus) DeepCopyInto(out *WhoAmIRequestStatus)

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

Directories

Path Synopsis
Package v1alpha1 is the v1alpha1 version of the Pinniped identity API.
Package v1alpha1 is the v1alpha1 version of the Pinniped identity API.

Jump to

Keyboard shortcuts

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