v1beta1

package
v1.4.0-alpha.1....-4fdde68 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "authentication.k8s.io"

GroupName is the group name use in this package

Variables

View Source
var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects

Functions

func AddToScheme

func AddToScheme(scheme *runtime.Scheme)

func Convert_authenticationk8sio_TokenReviewSpec_To_v1beta1_TokenReviewSpec

func Convert_authenticationk8sio_TokenReviewSpec_To_v1beta1_TokenReviewSpec(in *authentication_k8s_io.TokenReviewSpec, out *TokenReviewSpec, s conversion.Scope) error

func Convert_authenticationk8sio_TokenReviewStatus_To_v1beta1_TokenReviewStatus

func Convert_authenticationk8sio_TokenReviewStatus_To_v1beta1_TokenReviewStatus(in *authentication_k8s_io.TokenReviewStatus, out *TokenReviewStatus, s conversion.Scope) error

func Convert_authenticationk8sio_TokenReview_To_v1beta1_TokenReview

func Convert_authenticationk8sio_TokenReview_To_v1beta1_TokenReview(in *authentication_k8s_io.TokenReview, out *TokenReview, s conversion.Scope) error

func Convert_authenticationk8sio_UserInfo_To_v1beta1_UserInfo

func Convert_authenticationk8sio_UserInfo_To_v1beta1_UserInfo(in *authentication_k8s_io.UserInfo, out *UserInfo, s conversion.Scope) error

func Convert_v1beta1_TokenReviewSpec_To_authenticationk8sio_TokenReviewSpec

func Convert_v1beta1_TokenReviewSpec_To_authenticationk8sio_TokenReviewSpec(in *TokenReviewSpec, out *authentication_k8s_io.TokenReviewSpec, s conversion.Scope) error

func Convert_v1beta1_TokenReviewStatus_To_authenticationk8sio_TokenReviewStatus

func Convert_v1beta1_TokenReviewStatus_To_authenticationk8sio_TokenReviewStatus(in *TokenReviewStatus, out *authentication_k8s_io.TokenReviewStatus, s conversion.Scope) error

func Convert_v1beta1_TokenReview_To_authenticationk8sio_TokenReview

func Convert_v1beta1_TokenReview_To_authenticationk8sio_TokenReview(in *TokenReview, out *authentication_k8s_io.TokenReview, s conversion.Scope) error

func Convert_v1beta1_UserInfo_To_authenticationk8sio_UserInfo

func Convert_v1beta1_UserInfo_To_authenticationk8sio_UserInfo(in *UserInfo, out *authentication_k8s_io.UserInfo, s conversion.Scope) error

func DeepCopy_v1beta1_TokenReview

func DeepCopy_v1beta1_TokenReview(in interface{}, out interface{}, c *conversion.Cloner) error

func DeepCopy_v1beta1_TokenReviewSpec

func DeepCopy_v1beta1_TokenReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error

func DeepCopy_v1beta1_TokenReviewStatus

func DeepCopy_v1beta1_TokenReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error

func DeepCopy_v1beta1_UserInfo

func DeepCopy_v1beta1_UserInfo(in interface{}, out interface{}, c *conversion.Cloner) error

Types

type TokenReview

type TokenReview struct {
	unversioned.TypeMeta `json:",inline"`

	// Spec holds information about the request being evaluated
	Spec TokenReviewSpec `json:"spec"`

	// Status is filled in by the server and indicates whether the request can be authenticated.
	Status TokenReviewStatus `json:"status,omitempty"`
}

TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.

func (*TokenReview) CodecDecodeSelf

func (x *TokenReview) CodecDecodeSelf(d *codec1978.Decoder)

func (*TokenReview) CodecEncodeSelf

func (x *TokenReview) CodecEncodeSelf(e *codec1978.Encoder)

func (*TokenReview) GetObjectKind

func (obj *TokenReview) GetObjectKind() unversioned.ObjectKind

type TokenReviewSpec

type TokenReviewSpec struct {
	// Token is the opaque bearer token.
	Token string `json:"token,omitempty"`
}

TokenReviewSpec is a description of the token authentication request.

func (*TokenReviewSpec) CodecDecodeSelf

func (x *TokenReviewSpec) CodecDecodeSelf(d *codec1978.Decoder)

func (*TokenReviewSpec) CodecEncodeSelf

func (x *TokenReviewSpec) CodecEncodeSelf(e *codec1978.Encoder)

type TokenReviewStatus

type TokenReviewStatus struct {
	// Authenticated indicates that the token was associated with a known user.
	Authenticated bool `json:"authenticated,omitempty"`
	// User is the UserInfo associated with the provided token.
	User UserInfo `json:"user,omitempty"`
}

TokenReviewStatus is the result of the token authentication request.

func (*TokenReviewStatus) CodecDecodeSelf

func (x *TokenReviewStatus) CodecDecodeSelf(d *codec1978.Decoder)

func (*TokenReviewStatus) CodecEncodeSelf

func (x *TokenReviewStatus) CodecEncodeSelf(e *codec1978.Encoder)

type UserInfo

type UserInfo struct {
	// The name that uniquely identifies this user among all active users.
	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.
	UID string `json:"uid,omitempty"`
	// The names of groups this user is a part of.
	Groups []string `json:"groups,omitempty"`
	// Any additional information provided by the authenticator.
	Extra map[string][]string `json:"extra,omitempty"`
}

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

func (*UserInfo) CodecDecodeSelf

func (x *UserInfo) CodecDecodeSelf(d *codec1978.Decoder)

func (*UserInfo) CodecEncodeSelf

func (x *UserInfo) CodecEncodeSelf(e *codec1978.Encoder)

Jump to

Keyboard shortcuts

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