k8s_io_api_authentication_v1beta1

package
v0.0.0-...-940152b Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type ExtraValue

type ExtraValue struct {
	Items []string `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}

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

func (*ExtraValue) Descriptor

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

func (*ExtraValue) Equal

func (this *ExtraValue) Equal(that interface{}) bool

func (*ExtraValue) GetItems

func (m *ExtraValue) GetItems() []string

func (*ExtraValue) GoString

func (this *ExtraValue) GoString() string

func (*ExtraValue) Marshal

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

func (*ExtraValue) MarshalTo

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

func (*ExtraValue) MarshalToSizedBuffer

func (m *ExtraValue) MarshalToSizedBuffer(dAtA []byte) (int, 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 (this *ExtraValue) String() string

func (*ExtraValue) Unmarshal

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

func (*ExtraValue) XXX_DiscardUnknown

func (m *ExtraValue) XXX_DiscardUnknown()

func (*ExtraValue) XXX_Marshal

func (m *ExtraValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExtraValue) XXX_Merge

func (m *ExtraValue) XXX_Merge(src proto.Message)

func (*ExtraValue) XXX_Size

func (m *ExtraValue) XXX_Size() int

func (*ExtraValue) XXX_Unmarshal

func (m *ExtraValue) XXX_Unmarshal(b []byte) error

type TokenReview

type TokenReview struct {
	// +optional
	Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Spec holds information about the request being evaluated
	Spec *TokenReviewSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
	// Status is filled in by the server and indicates whether the request can be authenticated.
	// +optional
	Status *TokenReviewStatus `protobuf:"bytes,3,opt,name=status" 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) Descriptor

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

func (*TokenReview) Equal

func (this *TokenReview) Equal(that interface{}) bool

func (*TokenReview) GetMetadata

func (m *TokenReview) GetMetadata() *v1.ObjectMeta

func (*TokenReview) GetSpec

func (m *TokenReview) GetSpec() *TokenReviewSpec

func (*TokenReview) GetStatus

func (m *TokenReview) GetStatus() *TokenReviewStatus

func (*TokenReview) GoString

func (this *TokenReview) GoString() string

func (*TokenReview) Marshal

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

func (*TokenReview) MarshalTo

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

func (*TokenReview) MarshalToSizedBuffer

func (m *TokenReview) MarshalToSizedBuffer(dAtA []byte) (int, 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) Unmarshal

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

func (*TokenReview) XXX_DiscardUnknown

func (m *TokenReview) XXX_DiscardUnknown()

func (*TokenReview) XXX_Marshal

func (m *TokenReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenReview) XXX_Merge

func (m *TokenReview) XXX_Merge(src proto.Message)

func (*TokenReview) XXX_Size

func (m *TokenReview) XXX_Size() int

func (*TokenReview) XXX_Unmarshal

func (m *TokenReview) XXX_Unmarshal(b []byte) error

type TokenReviewSpec

type TokenReviewSpec struct {
	// Token is the opaque bearer token.
	// +optional
	Token string `protobuf:"bytes,1,opt,name=token" json:"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 `protobuf:"bytes,2,rep,name=audiences" json:"audiences,omitempty"`
}

TokenReviewSpec is a description of the token authentication request.

func (*TokenReviewSpec) Descriptor

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

func (*TokenReviewSpec) Equal

func (this *TokenReviewSpec) Equal(that interface{}) bool

func (*TokenReviewSpec) GetAudiences

func (m *TokenReviewSpec) GetAudiences() []string

func (*TokenReviewSpec) GetToken

func (m *TokenReviewSpec) GetToken() string

func (*TokenReviewSpec) GoString

func (this *TokenReviewSpec) GoString() string

func (*TokenReviewSpec) Marshal

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

func (*TokenReviewSpec) MarshalTo

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

func (*TokenReviewSpec) MarshalToSizedBuffer

func (m *TokenReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, 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) Unmarshal

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

func (*TokenReviewSpec) XXX_DiscardUnknown

func (m *TokenReviewSpec) XXX_DiscardUnknown()

func (*TokenReviewSpec) XXX_Marshal

func (m *TokenReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenReviewSpec) XXX_Merge

func (m *TokenReviewSpec) XXX_Merge(src proto.Message)

func (*TokenReviewSpec) XXX_Size

func (m *TokenReviewSpec) XXX_Size() int

func (*TokenReviewSpec) XXX_Unmarshal

func (m *TokenReviewSpec) XXX_Unmarshal(b []byte) error

type TokenReviewStatus

type TokenReviewStatus struct {
	// Authenticated indicates that the token was associated with a known user.
	// +optional
	Authenticated bool `protobuf:"varint,1,opt,name=authenticated" json:"authenticated"`
	// User is the UserInfo associated with the provided token.
	// +optional
	User *UserInfo `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"`
	// 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 `protobuf:"bytes,4,rep,name=audiences" json:"audiences,omitempty"`
	// Error indicates that the token couldn't be checked
	// +optional
	Error string `protobuf:"bytes,3,opt,name=error" json:"error"`
}

TokenReviewStatus is the result of the token authentication request.

func (*TokenReviewStatus) Descriptor

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

func (*TokenReviewStatus) Equal

func (this *TokenReviewStatus) Equal(that interface{}) bool

func (*TokenReviewStatus) GetAudiences

func (m *TokenReviewStatus) GetAudiences() []string

func (*TokenReviewStatus) GetAuthenticated

func (m *TokenReviewStatus) GetAuthenticated() bool

func (*TokenReviewStatus) GetError

func (m *TokenReviewStatus) GetError() string

func (*TokenReviewStatus) GetUser

func (m *TokenReviewStatus) GetUser() *UserInfo

func (*TokenReviewStatus) GoString

func (this *TokenReviewStatus) GoString() string

func (*TokenReviewStatus) Marshal

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

func (*TokenReviewStatus) MarshalTo

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

func (*TokenReviewStatus) MarshalToSizedBuffer

func (m *TokenReviewStatus) MarshalToSizedBuffer(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) Unmarshal

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

func (*TokenReviewStatus) XXX_DiscardUnknown

func (m *TokenReviewStatus) XXX_DiscardUnknown()

func (*TokenReviewStatus) XXX_Marshal

func (m *TokenReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenReviewStatus) XXX_Merge

func (m *TokenReviewStatus) XXX_Merge(src proto.Message)

func (*TokenReviewStatus) XXX_Size

func (m *TokenReviewStatus) XXX_Size() int

func (*TokenReviewStatus) XXX_Unmarshal

func (m *TokenReviewStatus) XXX_Unmarshal(b []byte) error

type UserInfo

type UserInfo struct {
	// The name that uniquely identifies this user among all active users.
	// +optional
	Username string `protobuf:"bytes,1,opt,name=username" json:"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 `protobuf:"bytes,2,opt,name=uid" json:"uid"`
	// The names of groups this user is a part of.
	// +optional
	Groups []string `protobuf:"bytes,3,rep,name=groups" json:"groups,omitempty"`
	// Any additional information provided by the authenticator.
	// +optional
	Extra map[string]*ExtraValue `` /* 130-byte string literal not displayed */
}

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

func (*UserInfo) Descriptor

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

func (*UserInfo) Equal

func (this *UserInfo) Equal(that interface{}) bool

func (*UserInfo) GetExtra

func (m *UserInfo) GetExtra() map[string]*ExtraValue

func (*UserInfo) GetGroups

func (m *UserInfo) GetGroups() []string

func (*UserInfo) GetUid

func (m *UserInfo) GetUid() string

func (*UserInfo) GetUsername

func (m *UserInfo) GetUsername() string

func (*UserInfo) GoString

func (this *UserInfo) GoString() string

func (*UserInfo) Marshal

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

func (*UserInfo) MarshalTo

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

func (*UserInfo) MarshalToSizedBuffer

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

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) Reset

func (m *UserInfo) Reset()

func (*UserInfo) Size

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

func (*UserInfo) String

func (this *UserInfo) String() string

func (*UserInfo) Unmarshal

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

func (*UserInfo) XXX_DiscardUnknown

func (m *UserInfo) XXX_DiscardUnknown()

func (*UserInfo) XXX_Marshal

func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserInfo) XXX_Merge

func (m *UserInfo) XXX_Merge(src proto.Message)

func (*UserInfo) XXX_Size

func (m *UserInfo) XXX_Size() int

func (*UserInfo) XXX_Unmarshal

func (m *UserInfo) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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