pb

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleErrorResponse

func HandleErrorResponse(body []byte, response *http.Response) (err error)

HandleErrorResponse returns a response that is known to be an error and converts it to an error.

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) Descriptor() ([]byte, []int)

func (*Cluster) GetApiServerCA

func (m *Cluster) GetApiServerCA() string

func (*Cluster) GetApiServerURL

func (m *Cluster) GetApiServerURL() string

func (*Cluster) GetName

func (m *Cluster) GetName() string

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) Reset

func (m *Cluster) Reset()

func (*Cluster) String

func (m *Cluster) String() string

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) Descriptor() ([]byte, []int)

func (*User) GetToken

func (m *User) GetToken() string

func (*User) GetUsername

func (m *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

Jump to

Keyboard shortcuts

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