Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
osprey.proto
It has these top-level messages:
LoginRequest ConsumeLoginResponse Cluster AuthProvider User
Index ¶
- func HandleErrorResponse(body []byte, response *http.Response) (err error)
- type AuthProvider
- func (*AuthProvider) Descriptor() ([]byte, []int)
- func (m *AuthProvider) GetClientID() string
- func (m *AuthProvider) GetClientSecret() string
- func (m *AuthProvider) GetIssuerCA() string
- func (m *AuthProvider) GetIssuerURL() string
- func (*AuthProvider) ProtoMessage()
- func (m *AuthProvider) Reset()
- func (m *AuthProvider) String() string
- type Cluster
- type LoginRequest
- type LoginResponse
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthProvider ¶
type AuthProvider struct { ClientID string `protobuf:"bytes,1,opt,name=clientID" json:"clientID,omitempty"` ClientSecret string `protobuf:"bytes,2,opt,name=clientSecret" json:"clientSecret,omitempty"` IssuerURL string `protobuf:"bytes,3,opt,name=issuerURL" json:"issuerURL,omitempty"` IssuerCA string `protobuf:"bytes,4,opt,name=issuerCA" json:"issuerCA,omitempty"` }
func (*AuthProvider) Descriptor ¶
func (*AuthProvider) Descriptor() ([]byte, []int)
func (*AuthProvider) GetClientID ¶
func (m *AuthProvider) GetClientID() string
func (*AuthProvider) GetClientSecret ¶
func (m *AuthProvider) GetClientSecret() string
func (*AuthProvider) GetIssuerCA ¶
func (m *AuthProvider) GetIssuerCA() string
func (*AuthProvider) GetIssuerURL ¶
func (m *AuthProvider) GetIssuerURL() string
func (*AuthProvider) ProtoMessage ¶
func (*AuthProvider) ProtoMessage()
func (*AuthProvider) Reset ¶
func (m *AuthProvider) Reset()
func (*AuthProvider) String ¶
func (m *AuthProvider) String() string
type Cluster ¶
type Cluster struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` ApiServerURL string `protobuf:"bytes,2,opt,name=apiServerURL" json:"apiServerURL,omitempty"` ApiServerCA string `protobuf:"bytes,3,opt,name=apiServerCA" json:"apiServerCA,omitempty"` }
func (*Cluster) Descriptor ¶
func (*Cluster) GetApiServerCA ¶
func (*Cluster) GetApiServerURL ¶
func (*Cluster) ProtoMessage ¶
func (*Cluster) ProtoMessage()
type LoginRequest ¶
type LoginRequest struct { }
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Cluster *Cluster `protobuf:"bytes,1,opt,name=cluster" json:"cluster,omitempty"` Provider *AuthProvider `protobuf:"bytes,2,opt,name=provider" json:"provider,omitempty"` User *User `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"` }
func ConsumeLoginResponse ¶
func ConsumeLoginResponse(response *http.Response) (*LoginResponse, error)
ConsumeLoginResponse takes the https response and produces a LoginResponse if the response is successful and can be converted, or an error.
func (*LoginResponse) Descriptor ¶
func (*LoginResponse) Descriptor() ([]byte, []int)
func (*LoginResponse) GetCluster ¶
func (m *LoginResponse) GetCluster() *Cluster
func (*LoginResponse) GetProvider ¶
func (m *LoginResponse) GetProvider() *AuthProvider
func (*LoginResponse) GetUser ¶
func (m *LoginResponse) GetUser() *User
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) Reset ¶
func (m *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (m *LoginResponse) String() string
type User ¶
type User struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Token string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"` }
func (*User) Descriptor ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.