Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package,register +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/authentication +groupName=authentication.k8s.io
Package v1beta1 is a generated protocol buffer package. It is generated from these files: k8s.io/kubernetes/pkg/apis/authentication/v1beta1/generated.proto It has these top-level messages: ExtraValue TokenReview TokenReviewSpec TokenReviewStatus UserInfo
Index ¶
- Constants
- Variables
- func Convert_authentication_TokenReviewSpec_To_v1beta1_TokenReviewSpec(in *authentication.TokenReviewSpec, out *TokenReviewSpec, s conversion.Scope) error
- func Convert_authentication_TokenReviewStatus_To_v1beta1_TokenReviewStatus(in *authentication.TokenReviewStatus, out *TokenReviewStatus, ...) error
- func Convert_authentication_TokenReview_To_v1beta1_TokenReview(in *authentication.TokenReview, out *TokenReview, s conversion.Scope) error
- func Convert_authentication_UserInfo_To_v1beta1_UserInfo(in *authentication.UserInfo, out *UserInfo, s conversion.Scope) error
- func Convert_v1beta1_TokenReviewSpec_To_authentication_TokenReviewSpec(in *TokenReviewSpec, out *authentication.TokenReviewSpec, s conversion.Scope) error
- func Convert_v1beta1_TokenReviewStatus_To_authentication_TokenReviewStatus(in *TokenReviewStatus, out *authentication.TokenReviewStatus, ...) error
- func Convert_v1beta1_TokenReview_To_authentication_TokenReview(in *TokenReview, out *authentication.TokenReview, s conversion.Scope) error
- func Convert_v1beta1_UserInfo_To_authentication_UserInfo(in *UserInfo, out *authentication.UserInfo, s conversion.Scope) error
- func DeepCopy_v1beta1_TokenReview(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_v1beta1_TokenReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_v1beta1_TokenReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_v1beta1_UserInfo(in interface{}, out interface{}, c *conversion.Cloner) error
- func RegisterConversions(scheme *runtime.Scheme) error
- func RegisterDeepCopies(scheme *runtime.Scheme) error
- type ExtraValue
- func (x *ExtraValue) CodecDecodeSelf(d *codec1978.Decoder)
- func (x ExtraValue) CodecEncodeSelf(e *codec1978.Encoder)
- func (*ExtraValue) Descriptor() ([]byte, []int)
- func (m ExtraValue) Marshal() (data []byte, err error)
- func (m ExtraValue) MarshalTo(data []byte) (int, error)
- func (*ExtraValue) ProtoMessage()
- func (m *ExtraValue) Reset()
- func (m ExtraValue) Size() (n int)
- func (t ExtraValue) String() string
- func (m *ExtraValue) Unmarshal(data []byte) error
- type TokenReview
- func (x *TokenReview) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *TokenReview) CodecEncodeSelf(e *codec1978.Encoder)
- func (*TokenReview) Descriptor() ([]byte, []int)
- func (m *TokenReview) Marshal() (data []byte, err error)
- func (m *TokenReview) MarshalTo(data []byte) (int, error)
- func (*TokenReview) ProtoMessage()
- func (m *TokenReview) Reset()
- func (m *TokenReview) Size() (n int)
- func (this *TokenReview) String() string
- func (TokenReview) SwaggerDoc() map[string]string
- func (m *TokenReview) Unmarshal(data []byte) error
- type TokenReviewSpec
- func (x *TokenReviewSpec) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *TokenReviewSpec) CodecEncodeSelf(e *codec1978.Encoder)
- func (*TokenReviewSpec) Descriptor() ([]byte, []int)
- func (m *TokenReviewSpec) Marshal() (data []byte, err error)
- func (m *TokenReviewSpec) MarshalTo(data []byte) (int, error)
- func (*TokenReviewSpec) ProtoMessage()
- func (m *TokenReviewSpec) Reset()
- func (m *TokenReviewSpec) Size() (n int)
- func (this *TokenReviewSpec) String() string
- func (TokenReviewSpec) SwaggerDoc() map[string]string
- func (m *TokenReviewSpec) Unmarshal(data []byte) error
- type TokenReviewStatus
- func (x *TokenReviewStatus) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *TokenReviewStatus) CodecEncodeSelf(e *codec1978.Encoder)
- func (*TokenReviewStatus) Descriptor() ([]byte, []int)
- func (m *TokenReviewStatus) Marshal() (data []byte, err error)
- func (m *TokenReviewStatus) MarshalTo(data []byte) (int, error)
- func (*TokenReviewStatus) ProtoMessage()
- func (m *TokenReviewStatus) Reset()
- func (m *TokenReviewStatus) Size() (n int)
- func (this *TokenReviewStatus) String() string
- func (TokenReviewStatus) SwaggerDoc() map[string]string
- func (m *TokenReviewStatus) Unmarshal(data []byte) error
- type UserInfo
- func (x *UserInfo) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *UserInfo) CodecEncodeSelf(e *codec1978.Encoder)
- func (*UserInfo) Descriptor() ([]byte, []int)
- func (m *UserInfo) Marshal() (data []byte, err error)
- func (m *UserInfo) MarshalTo(data []byte) (int, error)
- func (*UserInfo) ProtoMessage()
- func (m *UserInfo) Reset()
- func (m *UserInfo) Size() (n int)
- func (this *UserInfo) String() string
- func (UserInfo) SwaggerDoc() map[string]string
- func (m *UserInfo) Unmarshal(data []byte) error
Constants ¶
const GroupName = "authentication.k8s.io"
GroupName is the group name use in this package
Variables ¶
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs, addConversionFuncs) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_authentication_TokenReviewSpec_To_v1beta1_TokenReviewSpec ¶
func Convert_authentication_TokenReviewSpec_To_v1beta1_TokenReviewSpec(in *authentication.TokenReviewSpec, out *TokenReviewSpec, s conversion.Scope) error
func Convert_authentication_TokenReviewStatus_To_v1beta1_TokenReviewStatus ¶
func Convert_authentication_TokenReviewStatus_To_v1beta1_TokenReviewStatus(in *authentication.TokenReviewStatus, out *TokenReviewStatus, s conversion.Scope) error
func Convert_authentication_TokenReview_To_v1beta1_TokenReview ¶
func Convert_authentication_TokenReview_To_v1beta1_TokenReview(in *authentication.TokenReview, out *TokenReview, s conversion.Scope) error
func Convert_authentication_UserInfo_To_v1beta1_UserInfo ¶
func Convert_authentication_UserInfo_To_v1beta1_UserInfo(in *authentication.UserInfo, out *UserInfo, s conversion.Scope) error
func Convert_v1beta1_TokenReviewSpec_To_authentication_TokenReviewSpec ¶
func Convert_v1beta1_TokenReviewSpec_To_authentication_TokenReviewSpec(in *TokenReviewSpec, out *authentication.TokenReviewSpec, s conversion.Scope) error
func Convert_v1beta1_TokenReviewStatus_To_authentication_TokenReviewStatus ¶
func Convert_v1beta1_TokenReviewStatus_To_authentication_TokenReviewStatus(in *TokenReviewStatus, out *authentication.TokenReviewStatus, s conversion.Scope) error
func Convert_v1beta1_TokenReview_To_authentication_TokenReview ¶
func Convert_v1beta1_TokenReview_To_authentication_TokenReview(in *TokenReview, out *authentication.TokenReview, s conversion.Scope) error
func Convert_v1beta1_UserInfo_To_authentication_UserInfo ¶
func Convert_v1beta1_UserInfo_To_authentication_UserInfo(in *UserInfo, out *authentication.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
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDeepCopies ¶
RegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.
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) CodecDecodeSelf ¶
func (x *ExtraValue) CodecDecodeSelf(d *codec1978.Decoder)
func (ExtraValue) CodecEncodeSelf ¶
func (x ExtraValue) CodecEncodeSelf(e *codec1978.Encoder)
func (*ExtraValue) Descriptor ¶
func (*ExtraValue) Descriptor() ([]byte, []int)
func (ExtraValue) Marshal ¶
func (m ExtraValue) Marshal() (data []byte, err error)
func (*ExtraValue) ProtoMessage ¶
func (*ExtraValue) ProtoMessage()
func (*ExtraValue) Reset ¶
func (m *ExtraValue) Reset()
func (ExtraValue) Size ¶
func (m ExtraValue) Size() (n int)
func (ExtraValue) String ¶
func (t ExtraValue) String() string
func (*ExtraValue) Unmarshal ¶
func (m *ExtraValue) Unmarshal(data []byte) error
type TokenReview ¶
type TokenReview struct { unversioned.TypeMeta `json:",inline"` v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec holds information about the request being evaluated Spec TokenReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // Status is filled in by the server and indicates whether the request can be authenticated. Status TokenReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
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) Descriptor ¶
func (*TokenReview) Descriptor() ([]byte, []int)
func (*TokenReview) Marshal ¶
func (m *TokenReview) Marshal() (data []byte, err error)
func (*TokenReview) ProtoMessage ¶
func (*TokenReview) ProtoMessage()
func (*TokenReview) Reset ¶
func (m *TokenReview) Reset()
func (*TokenReview) Size ¶
func (m *TokenReview) Size() (n int)
func (*TokenReview) String ¶
func (this *TokenReview) String() string
func (TokenReview) SwaggerDoc ¶
func (TokenReview) SwaggerDoc() map[string]string
func (*TokenReview) Unmarshal ¶
func (m *TokenReview) Unmarshal(data []byte) error
type TokenReviewSpec ¶
type TokenReviewSpec struct { // Token is the opaque bearer token. Token string `json:"token,omitempty" protobuf:"bytes,1,opt,name=token"` }
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)
func (*TokenReviewSpec) Descriptor ¶
func (*TokenReviewSpec) Descriptor() ([]byte, []int)
func (*TokenReviewSpec) Marshal ¶
func (m *TokenReviewSpec) Marshal() (data []byte, err error)
func (*TokenReviewSpec) ProtoMessage ¶
func (*TokenReviewSpec) ProtoMessage()
func (*TokenReviewSpec) Reset ¶
func (m *TokenReviewSpec) Reset()
func (*TokenReviewSpec) Size ¶
func (m *TokenReviewSpec) Size() (n int)
func (*TokenReviewSpec) String ¶
func (this *TokenReviewSpec) String() string
func (TokenReviewSpec) SwaggerDoc ¶
func (TokenReviewSpec) SwaggerDoc() map[string]string
func (*TokenReviewSpec) Unmarshal ¶
func (m *TokenReviewSpec) Unmarshal(data []byte) error
type TokenReviewStatus ¶
type TokenReviewStatus struct { // Authenticated indicates that the token was associated with a known user. Authenticated bool `json:"authenticated,omitempty" protobuf:"varint,1,opt,name=authenticated"` // User is the UserInfo associated with the provided token. User UserInfo `json:"user,omitempty" protobuf:"bytes,2,opt,name=user"` // Error indicates that the token couldn't be checked Error string `json:"error,omitempty" protobuf:"bytes,3,opt,name=error"` }
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)
func (*TokenReviewStatus) Descriptor ¶
func (*TokenReviewStatus) Descriptor() ([]byte, []int)
func (*TokenReviewStatus) Marshal ¶
func (m *TokenReviewStatus) Marshal() (data []byte, err error)
func (*TokenReviewStatus) MarshalTo ¶
func (m *TokenReviewStatus) MarshalTo(data []byte) (int, error)
func (*TokenReviewStatus) ProtoMessage ¶
func (*TokenReviewStatus) ProtoMessage()
func (*TokenReviewStatus) Reset ¶
func (m *TokenReviewStatus) Reset()
func (*TokenReviewStatus) Size ¶
func (m *TokenReviewStatus) Size() (n int)
func (*TokenReviewStatus) String ¶
func (this *TokenReviewStatus) String() string
func (TokenReviewStatus) SwaggerDoc ¶
func (TokenReviewStatus) SwaggerDoc() map[string]string
func (*TokenReviewStatus) Unmarshal ¶
func (m *TokenReviewStatus) Unmarshal(data []byte) error
type UserInfo ¶
type UserInfo struct { // The name that uniquely identifies this user among all active users. 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. UID string `json:"uid,omitempty" protobuf:"bytes,2,opt,name=uid"` // The names of groups this user is a part of. Groups []string `json:"groups,omitempty" protobuf:"bytes,3,rep,name=groups"` // Any additional information provided by the authenticator. 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) CodecDecodeSelf ¶
func (*UserInfo) CodecEncodeSelf ¶
func (*UserInfo) Descriptor ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()