Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Principal ¶
type Principal struct { // The pasword of the user Password string `json:"Password,omitempty"` // The name that uniquely identifies this user among all active users Username string `json:"Username,omitempty"` }
Principal Principal contains information about the user swagger:model Principal
func (*Principal) MarshalBinary ¶
MarshalBinary interface implementation
func (*Principal) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type TokenReviewRequest ¶
type TokenReviewRequest struct { // api version APIVersion string `json:"apiVersion,omitempty"` // kind Kind string `json:"kind,omitempty"` // spec Spec *TokenReviewSpec `json:"spec,omitempty"` // status Status *TokenReviewStatus `json:"status,omitempty"` }
TokenReviewRequest TokenReviewRequest is issued by K8s to this service swagger:model TokenReviewRequest
func (*TokenReviewRequest) MarshalBinary ¶
func (m *TokenReviewRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TokenReviewRequest) UnmarshalBinary ¶
func (m *TokenReviewRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TokenReviewSpec ¶
type TokenReviewSpec struct { // token Token string `json:"token,omitempty"` }
TokenReviewSpec TokenReviewSpec contains the token being reviewed swagger:model TokenReviewSpec
func (*TokenReviewSpec) MarshalBinary ¶
func (m *TokenReviewSpec) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TokenReviewSpec) UnmarshalBinary ¶
func (m *TokenReviewSpec) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TokenReviewStatus ¶
type TokenReviewStatus struct { // Authenticated is true if the token is valid Authenticated bool `json:"authenticated,omitempty"` // user User *UserInfo `json:"user,omitempty"` }
TokenReviewStatus TokenReviewStatus is the result of the token authentication request swagger:model TokenReviewStatus
func (*TokenReviewStatus) MarshalBinary ¶
func (m *TokenReviewStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TokenReviewStatus) UnmarshalBinary ¶
func (m *TokenReviewStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UserInfo ¶
type UserInfo struct { // Any additional information provided by the authenticator Extra interface{} `json:"extra,omitempty"` // The names of groups this user is a part of Groups []string `json:"groups"` // 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 name that uniquely identifies this user among all active users Username string `json:"username,omitempty"` }
UserInfo UserInfo contains information about the user swagger:model UserInfo
func (*UserInfo) MarshalBinary ¶
MarshalBinary interface implementation
func (*UserInfo) UnmarshalBinary ¶
UnmarshalBinary interface implementation