api: k8s.io/api/authentication/v1beta1 Index | Files

package v1beta1

import "k8s.io/api/authentication/v1beta1"

Package v1beta1 is a generated protocol buffer package.

It is generated from these files:

k8s.io/kubernetes/vendor/k8s.io/api/authentication/v1beta1/generated.proto

It has these top-level messages:

ExtraValue
TokenReview
TokenReviewSpec
TokenReviewStatus
UserInfo

Index

Package Files

doc.go generated.pb.go register.go types.go types_swagger_doc_generated.go zz_generated.deepcopy.go

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 (
    // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
    // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
    SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

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

SchemeGroupVersion is group version used to register these objects

func Resource Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

type ExtraValue Uses

type ExtraValue []string

ExtraValue masks the value so protobuf can generate +protobuf.nullable=true +protobuf.options.(gogoproto.goproto_stringer)=false

func (ExtraValue) DeepCopy Uses

func (in ExtraValue) DeepCopy() ExtraValue

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

func (ExtraValue) DeepCopyInto Uses

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) Descriptor Uses

func (*ExtraValue) Descriptor() ([]byte, []int)

func (ExtraValue) Marshal Uses

func (m ExtraValue) Marshal() (dAtA []byte, err error)

func (ExtraValue) MarshalTo Uses

func (m ExtraValue) MarshalTo(dAtA []byte) (int, error)

func (*ExtraValue) ProtoMessage Uses

func (*ExtraValue) ProtoMessage()

func (*ExtraValue) Reset Uses

func (m *ExtraValue) Reset()

func (ExtraValue) Size Uses

func (m ExtraValue) Size() (n int)

func (ExtraValue) String Uses

func (t ExtraValue) String() string

func (*ExtraValue) Unmarshal Uses

func (m *ExtraValue) Unmarshal(dAtA []byte) error

type TokenReview Uses

type TokenReview struct {
    metav1.TypeMeta `json:",inline"`
    // +optional
    metav1.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.
    // +optional
    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) DeepCopy Uses

func (in *TokenReview) DeepCopy() *TokenReview

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

func (*TokenReview) DeepCopyInto Uses

func (in *TokenReview) DeepCopyInto(out *TokenReview)

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

func (*TokenReview) DeepCopyObject Uses

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

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

func (*TokenReview) Descriptor Uses

func (*TokenReview) Descriptor() ([]byte, []int)

func (*TokenReview) Marshal Uses

func (m *TokenReview) Marshal() (dAtA []byte, err error)

func (*TokenReview) MarshalTo Uses

func (m *TokenReview) MarshalTo(dAtA []byte) (int, error)

func (*TokenReview) ProtoMessage Uses

func (*TokenReview) ProtoMessage()

func (*TokenReview) Reset Uses

func (m *TokenReview) Reset()

func (*TokenReview) Size Uses

func (m *TokenReview) Size() (n int)

func (*TokenReview) String Uses

func (this *TokenReview) String() string

func (TokenReview) SwaggerDoc Uses

func (TokenReview) SwaggerDoc() map[string]string

func (*TokenReview) Unmarshal Uses

func (m *TokenReview) Unmarshal(dAtA []byte) error

type TokenReviewSpec Uses

type TokenReviewSpec struct {
    // Token is the opaque bearer token.
    // +optional
    Token string `json:"token,omitempty" protobuf:"bytes,1,opt,name=token"`
    // Audiences is a list of the identifiers that the resource server presented
    // with the token identifies as. Audience-aware token authenticators will
    // verify that the token was intended for at least one of the audiences in
    // this list. If no audiences are provided, the audience will default to the
    // audience of the Kubernetes apiserver.
    // +optional
    Audiences []string `json:"audiences,omitempty" protobuf:"bytes,2,rep,name=audiences"`
}

TokenReviewSpec is a description of the token authentication request.

func (*TokenReviewSpec) DeepCopy Uses

func (in *TokenReviewSpec) DeepCopy() *TokenReviewSpec

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

func (*TokenReviewSpec) DeepCopyInto Uses

func (in *TokenReviewSpec) DeepCopyInto(out *TokenReviewSpec)

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

func (*TokenReviewSpec) Descriptor Uses

func (*TokenReviewSpec) Descriptor() ([]byte, []int)

func (*TokenReviewSpec) Marshal Uses

func (m *TokenReviewSpec) Marshal() (dAtA []byte, err error)

func (*TokenReviewSpec) MarshalTo Uses

func (m *TokenReviewSpec) MarshalTo(dAtA []byte) (int, error)

func (*TokenReviewSpec) ProtoMessage Uses

func (*TokenReviewSpec) ProtoMessage()

func (*TokenReviewSpec) Reset Uses

func (m *TokenReviewSpec) Reset()

func (*TokenReviewSpec) Size Uses

func (m *TokenReviewSpec) Size() (n int)

func (*TokenReviewSpec) String Uses

func (this *TokenReviewSpec) String() string

func (TokenReviewSpec) SwaggerDoc Uses

func (TokenReviewSpec) SwaggerDoc() map[string]string

func (*TokenReviewSpec) Unmarshal Uses

func (m *TokenReviewSpec) Unmarshal(dAtA []byte) error

type TokenReviewStatus Uses

type TokenReviewStatus struct {
    // Authenticated indicates that the token was associated with a known user.
    // +optional
    Authenticated bool `json:"authenticated,omitempty" protobuf:"varint,1,opt,name=authenticated"`
    // User is the UserInfo associated with the provided token.
    // +optional
    User UserInfo `json:"user,omitempty" protobuf:"bytes,2,opt,name=user"`
    // Audiences are audience identifiers chosen by the authenticator that are
    // compatible with both the TokenReview and token. An identifier is any
    // identifier in the intersection of the TokenReviewSpec audiences and the
    // token's audiences. A client of the TokenReview API that sets the
    // spec.audiences field should validate that a compatible audience identifier
    // is returned in the status.audiences field to ensure that the TokenReview
    // server is audience aware. If a TokenReview returns an empty
    // status.audience field where status.authenticated is "true", the token is
    // valid against the audience of the Kubernetes API server.
    // +optional
    Audiences []string `json:"audiences,omitempty" protobuf:"bytes,4,rep,name=audiences"`
    // Error indicates that the token couldn't be checked
    // +optional
    Error string `json:"error,omitempty" protobuf:"bytes,3,opt,name=error"`
}

TokenReviewStatus is the result of the token authentication request.

func (*TokenReviewStatus) DeepCopy Uses

func (in *TokenReviewStatus) DeepCopy() *TokenReviewStatus

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

func (*TokenReviewStatus) DeepCopyInto Uses

func (in *TokenReviewStatus) DeepCopyInto(out *TokenReviewStatus)

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

func (*TokenReviewStatus) Descriptor Uses

func (*TokenReviewStatus) Descriptor() ([]byte, []int)

func (*TokenReviewStatus) Marshal Uses

func (m *TokenReviewStatus) Marshal() (dAtA []byte, err error)

func (*TokenReviewStatus) MarshalTo Uses

func (m *TokenReviewStatus) MarshalTo(dAtA []byte) (int, error)

func (*TokenReviewStatus) ProtoMessage Uses

func (*TokenReviewStatus) ProtoMessage()

func (*TokenReviewStatus) Reset Uses

func (m *TokenReviewStatus) Reset()

func (*TokenReviewStatus) Size Uses

func (m *TokenReviewStatus) Size() (n int)

func (*TokenReviewStatus) String Uses

func (this *TokenReviewStatus) String() string

func (TokenReviewStatus) SwaggerDoc Uses

func (TokenReviewStatus) SwaggerDoc() map[string]string

func (*TokenReviewStatus) Unmarshal Uses

func (m *TokenReviewStatus) Unmarshal(dAtA []byte) error

type UserInfo Uses

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 Uses

func (in *UserInfo) DeepCopy() *UserInfo

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

func (*UserInfo) DeepCopyInto Uses

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

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

func (*UserInfo) Descriptor Uses

func (*UserInfo) Descriptor() ([]byte, []int)

func (*UserInfo) Marshal Uses

func (m *UserInfo) Marshal() (dAtA []byte, err error)

func (*UserInfo) MarshalTo Uses

func (m *UserInfo) MarshalTo(dAtA []byte) (int, error)

func (*UserInfo) ProtoMessage Uses

func (*UserInfo) ProtoMessage()

func (*UserInfo) Reset Uses

func (m *UserInfo) Reset()

func (*UserInfo) Size Uses

func (m *UserInfo) Size() (n int)

func (*UserInfo) String Uses

func (this *UserInfo) String() string

func (UserInfo) SwaggerDoc Uses

func (UserInfo) SwaggerDoc() map[string]string

func (*UserInfo) Unmarshal Uses

func (m *UserInfo) Unmarshal(dAtA []byte) error

Package v1beta1 imports 10 packages (graph) and is imported by 36 packages. Updated 2019-03-08. Refresh now. Tools for package owners.