Documentation ¶
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
- func (m *AuthProvider) XXX_DiscardUnknown()
- func (m *AuthProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AuthProvider) XXX_Merge(src proto.Message)
- func (m *AuthProvider) XXX_Size() int
- func (m *AuthProvider) XXX_Unmarshal(b []byte) error
- type Cluster
- func (*Cluster) Descriptor() ([]byte, []int)
- func (m *Cluster) GetApiServerCA() string
- func (m *Cluster) GetApiServerURL() string
- func (m *Cluster) GetName() string
- func (*Cluster) ProtoMessage()
- func (m *Cluster) Reset()
- func (m *Cluster) String() string
- func (m *Cluster) XXX_DiscardUnknown()
- func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Cluster) XXX_Merge(src proto.Message)
- func (m *Cluster) XXX_Size() int
- func (m *Cluster) XXX_Unmarshal(b []byte) error
- type ClusterInfoRequest
- func (*ClusterInfoRequest) Descriptor() ([]byte, []int)
- func (*ClusterInfoRequest) ProtoMessage()
- func (m *ClusterInfoRequest) Reset()
- func (m *ClusterInfoRequest) String() string
- func (m *ClusterInfoRequest) XXX_DiscardUnknown()
- func (m *ClusterInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ClusterInfoRequest) XXX_Merge(src proto.Message)
- func (m *ClusterInfoRequest) XXX_Size() int
- func (m *ClusterInfoRequest) XXX_Unmarshal(b []byte) error
- type ClusterInfoResponse
- func (*ClusterInfoResponse) Descriptor() ([]byte, []int)
- func (m *ClusterInfoResponse) GetCluster() *Cluster
- func (*ClusterInfoResponse) ProtoMessage()
- func (m *ClusterInfoResponse) Reset()
- func (m *ClusterInfoResponse) String() string
- func (m *ClusterInfoResponse) XXX_DiscardUnknown()
- func (m *ClusterInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ClusterInfoResponse) XXX_Merge(src proto.Message)
- func (m *ClusterInfoResponse) XXX_Size() int
- func (m *ClusterInfoResponse) XXX_Unmarshal(b []byte) error
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)
- func (*LoginRequest) ProtoMessage()
- func (m *LoginRequest) Reset()
- func (m *LoginRequest) String() string
- func (m *LoginRequest) XXX_DiscardUnknown()
- func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LoginRequest) XXX_Merge(src proto.Message)
- func (m *LoginRequest) XXX_Size() int
- func (m *LoginRequest) XXX_Unmarshal(b []byte) error
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)
- func (m *LoginResponse) GetCluster() *Cluster
- func (m *LoginResponse) GetProvider() *AuthProvider
- func (m *LoginResponse) GetUser() *User
- func (*LoginResponse) ProtoMessage()
- func (m *LoginResponse) Reset()
- func (m *LoginResponse) String() string
- func (m *LoginResponse) XXX_DiscardUnknown()
- func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LoginResponse) XXX_Merge(src proto.Message)
- func (m *LoginResponse) XXX_Size() int
- func (m *LoginResponse) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetToken() string
- func (m *User) GetUsername() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*AuthProvider) XXX_DiscardUnknown ¶
func (m *AuthProvider) XXX_DiscardUnknown()
func (*AuthProvider) XXX_Marshal ¶
func (m *AuthProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthProvider) XXX_Merge ¶
func (dst *AuthProvider) XXX_Merge(src proto.Message)
func (*AuthProvider) XXX_Size ¶
func (m *AuthProvider) XXX_Size() int
func (*AuthProvider) XXX_Unmarshal ¶
func (m *AuthProvider) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cluster) Descriptor ¶
func (*Cluster) GetApiServerCA ¶
func (*Cluster) GetApiServerURL ¶
func (*Cluster) ProtoMessage ¶
func (*Cluster) ProtoMessage()
func (*Cluster) XXX_DiscardUnknown ¶
func (m *Cluster) XXX_DiscardUnknown()
func (*Cluster) XXX_Marshal ¶
func (*Cluster) XXX_Unmarshal ¶
type ClusterInfoRequest ¶
type ClusterInfoRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClusterInfoRequest) Descriptor ¶
func (*ClusterInfoRequest) Descriptor() ([]byte, []int)
func (*ClusterInfoRequest) ProtoMessage ¶
func (*ClusterInfoRequest) ProtoMessage()
func (*ClusterInfoRequest) Reset ¶
func (m *ClusterInfoRequest) Reset()
func (*ClusterInfoRequest) String ¶
func (m *ClusterInfoRequest) String() string
func (*ClusterInfoRequest) XXX_DiscardUnknown ¶
func (m *ClusterInfoRequest) XXX_DiscardUnknown()
func (*ClusterInfoRequest) XXX_Marshal ¶
func (m *ClusterInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterInfoRequest) XXX_Merge ¶
func (dst *ClusterInfoRequest) XXX_Merge(src proto.Message)
func (*ClusterInfoRequest) XXX_Size ¶
func (m *ClusterInfoRequest) XXX_Size() int
func (*ClusterInfoRequest) XXX_Unmarshal ¶
func (m *ClusterInfoRequest) XXX_Unmarshal(b []byte) error
type ClusterInfoResponse ¶
type ClusterInfoResponse struct { Cluster *Cluster `protobuf:"bytes,1,opt,name=cluster" json:"cluster,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func ConsumeClusterInfoResponse ¶
func ConsumeClusterInfoResponse(response *http.Response) (*ClusterInfoResponse, error)
ConsumeClusterInfoResponse takes the HTTP response and produces a ClusterInfoResponse if the response is successful and can be converted, or an error.
func (*ClusterInfoResponse) Descriptor ¶
func (*ClusterInfoResponse) Descriptor() ([]byte, []int)
func (*ClusterInfoResponse) GetCluster ¶
func (m *ClusterInfoResponse) GetCluster() *Cluster
func (*ClusterInfoResponse) ProtoMessage ¶
func (*ClusterInfoResponse) ProtoMessage()
func (*ClusterInfoResponse) Reset ¶
func (m *ClusterInfoResponse) Reset()
func (*ClusterInfoResponse) String ¶
func (m *ClusterInfoResponse) String() string
func (*ClusterInfoResponse) XXX_DiscardUnknown ¶
func (m *ClusterInfoResponse) XXX_DiscardUnknown()
func (*ClusterInfoResponse) XXX_Marshal ¶
func (m *ClusterInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterInfoResponse) XXX_Merge ¶
func (dst *ClusterInfoResponse) XXX_Merge(src proto.Message)
func (*ClusterInfoResponse) XXX_Size ¶
func (m *ClusterInfoResponse) XXX_Size() int
func (*ClusterInfoResponse) XXX_Unmarshal ¶
func (m *ClusterInfoResponse) XXX_Unmarshal(b []byte) error
type LoginRequest ¶
type LoginRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*LoginRequest) XXX_DiscardUnknown ¶
func (m *LoginRequest) XXX_DiscardUnknown()
func (*LoginRequest) XXX_Marshal ¶
func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginRequest) XXX_Merge ¶
func (dst *LoginRequest) XXX_Merge(src proto.Message)
func (*LoginRequest) XXX_Size ¶
func (m *LoginRequest) XXX_Size() int
func (*LoginRequest) XXX_Unmarshal ¶
func (m *LoginRequest) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*LoginResponse) XXX_DiscardUnknown ¶
func (m *LoginResponse) XXX_DiscardUnknown()
func (*LoginResponse) XXX_Marshal ¶
func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginResponse) XXX_Merge ¶
func (dst *LoginResponse) XXX_Merge(src proto.Message)
func (*LoginResponse) XXX_Size ¶
func (m *LoginResponse) XXX_Size() int
func (*LoginResponse) XXX_Unmarshal ¶
func (m *LoginResponse) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User) Descriptor ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.