Documentation
¶
Overview ¶
Package api is a generated protocol buffer package.
It is generated from these files:
cloud_controller.proto istio.proto
It has these top-level messages:
AddRequest AddResponse HealthRequest HealthResponse RoutesRequest RoutesResponse BackendSet Backend
Index ¶
- func RegisterCloudControllerCopilotServer(s *grpc.Server, srv CloudControllerCopilotServer)
- func RegisterIstioCopilotServer(s *grpc.Server, srv IstioCopilotServer)
- type AddRequest
- type AddResponse
- type Backend
- type BackendSet
- type CloudControllerCopilotClient
- type CloudControllerCopilotServer
- type HealthRequest
- type HealthResponse
- type IstioCopilotClient
- type IstioCopilotServer
- type RoutesRequest
- type RoutesResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCloudControllerCopilotServer ¶
func RegisterCloudControllerCopilotServer(s *grpc.Server, srv CloudControllerCopilotServer)
func RegisterIstioCopilotServer ¶
func RegisterIstioCopilotServer(s *grpc.Server, srv IstioCopilotServer)
Types ¶
type AddRequest ¶
type AddRequest struct {
ProcessGuid string `protobuf:"bytes,1,opt,name=processGuid" json:"processGuid,omitempty"`
Hostname string `protobuf:"bytes,2,opt,name=hostname" json:"hostname,omitempty"`
}
func (*AddRequest) Descriptor ¶
func (*AddRequest) Descriptor() ([]byte, []int)
func (*AddRequest) GetHostname ¶
func (m *AddRequest) GetHostname() string
func (*AddRequest) GetProcessGuid ¶
func (m *AddRequest) GetProcessGuid() string
func (*AddRequest) ProtoMessage ¶
func (*AddRequest) ProtoMessage()
func (*AddRequest) Reset ¶
func (m *AddRequest) Reset()
func (*AddRequest) String ¶
func (m *AddRequest) String() string
type AddResponse ¶
type AddResponse struct {
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
}
func (*AddResponse) Descriptor ¶
func (*AddResponse) Descriptor() ([]byte, []int)
func (*AddResponse) GetSuccess ¶
func (m *AddResponse) GetSuccess() bool
func (*AddResponse) ProtoMessage ¶
func (*AddResponse) ProtoMessage()
func (*AddResponse) Reset ¶
func (m *AddResponse) Reset()
func (*AddResponse) String ¶
func (m *AddResponse) String() string
type Backend ¶
type Backend struct {
Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
Port uint32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"`
}
func (*Backend) Descriptor ¶
func (*Backend) GetAddress ¶
func (*Backend) ProtoMessage ¶
func (*Backend) ProtoMessage()
type BackendSet ¶
type BackendSet struct {
Backends []*Backend `protobuf:"bytes,1,rep,name=backends" json:"backends,omitempty"`
}
func (*BackendSet) Descriptor ¶
func (*BackendSet) Descriptor() ([]byte, []int)
func (*BackendSet) GetBackends ¶
func (m *BackendSet) GetBackends() []*Backend
func (*BackendSet) ProtoMessage ¶
func (*BackendSet) ProtoMessage()
func (*BackendSet) Reset ¶
func (m *BackendSet) Reset()
func (*BackendSet) String ¶
func (m *BackendSet) String() string
type CloudControllerCopilotClient ¶
type CloudControllerCopilotClient interface {
AddRoute(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error)
}
func NewCloudControllerCopilotClient ¶
func NewCloudControllerCopilotClient(cc *grpc.ClientConn) CloudControllerCopilotClient
type CloudControllerCopilotServer ¶
type CloudControllerCopilotServer interface {
AddRoute(context.Context, *AddRequest) (*AddResponse, error)
}
type HealthRequest ¶
type HealthRequest struct {
}
func (*HealthRequest) Descriptor ¶
func (*HealthRequest) Descriptor() ([]byte, []int)
func (*HealthRequest) ProtoMessage ¶
func (*HealthRequest) ProtoMessage()
func (*HealthRequest) Reset ¶
func (m *HealthRequest) Reset()
func (*HealthRequest) String ¶
func (m *HealthRequest) String() string
type HealthResponse ¶
type HealthResponse struct {
Healthy bool `protobuf:"varint,1,opt,name=healthy" json:"healthy,omitempty"`
}
func (*HealthResponse) Descriptor ¶
func (*HealthResponse) Descriptor() ([]byte, []int)
func (*HealthResponse) GetHealthy ¶
func (m *HealthResponse) GetHealthy() bool
func (*HealthResponse) ProtoMessage ¶
func (*HealthResponse) ProtoMessage()
func (*HealthResponse) Reset ¶
func (m *HealthResponse) Reset()
func (*HealthResponse) String ¶
func (m *HealthResponse) String() string
type IstioCopilotClient ¶
type IstioCopilotClient interface {
Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error)
Routes(ctx context.Context, in *RoutesRequest, opts ...grpc.CallOption) (*RoutesResponse, error)
}
func NewIstioCopilotClient ¶
func NewIstioCopilotClient(cc *grpc.ClientConn) IstioCopilotClient
type IstioCopilotServer ¶
type IstioCopilotServer interface {
Health(context.Context, *HealthRequest) (*HealthResponse, error)
Routes(context.Context, *RoutesRequest) (*RoutesResponse, error)
}
type RoutesRequest ¶
type RoutesRequest struct {
}
func (*RoutesRequest) Descriptor ¶
func (*RoutesRequest) Descriptor() ([]byte, []int)
func (*RoutesRequest) ProtoMessage ¶
func (*RoutesRequest) ProtoMessage()
func (*RoutesRequest) Reset ¶
func (m *RoutesRequest) Reset()
func (*RoutesRequest) String ¶
func (m *RoutesRequest) String() string
type RoutesResponse ¶
type RoutesResponse struct {
// key is hostname
Backends map[string]*BackendSet `` /* 136-byte string literal not displayed */
}
func (*RoutesResponse) Descriptor ¶
func (*RoutesResponse) Descriptor() ([]byte, []int)
func (*RoutesResponse) GetBackends ¶
func (m *RoutesResponse) GetBackends() map[string]*BackendSet
func (*RoutesResponse) ProtoMessage ¶
func (*RoutesResponse) ProtoMessage()
func (*RoutesResponse) Reset ¶
func (m *RoutesResponse) Reset()
func (*RoutesResponse) String ¶
func (m *RoutesResponse) String() string
Click to show internal directories.
Click to hide internal directories.