models

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: Apache-2.0 Imports: 3 Imported by: 2

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

func (m *Principal) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Principal) UnmarshalBinary

func (m *Principal) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Principal) Validate

func (m *Principal) Validate(formats strfmt.Registry) error

Validate validates this principal

type TokenReviewRequest

type TokenReviewRequest struct {

	// API version
	APIVersion string `json:"APIVersion,omitempty"`

	// spec
	Spec *TokenReviewSpec `json:"Spec,omitempty"`

	// status
	Status *TokenReviewStatus `json:"Status,omitempty"`

	// kind
	Kind string `json:"kind,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

func (*TokenReviewRequest) Validate

func (m *TokenReviewRequest) Validate(formats strfmt.Registry) error

Validate validates this token review request

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

func (*TokenReviewSpec) Validate

func (m *TokenReviewSpec) Validate(formats strfmt.Registry) error

Validate validates this token review spec

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

func (*TokenReviewStatus) Validate

func (m *TokenReviewStatus) Validate(formats strfmt.Registry) error

Validate validates this token review status

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

func (m *UserInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserInfo) Validate

func (m *UserInfo) Validate(formats strfmt.Registry) error

Validate validates this user info

Jump to

Keyboard shortcuts

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