api

package
v0.0.0-...-03646eb Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2017 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

copilot api

This package holds the golang gRPC API definitions for copilot. There's one API used by Cloud Controller, another used by Istio Pilot.

The actual gRPC .proto files are in the protos subdirectory. To regenerate the golang code, run go generate ./....

We moved the .proto files in there to work around problems with Bazel in Istio.

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

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

func (*Backend) GetAddress

func (m *Backend) GetAddress() string

func (*Backend) GetPort

func (m *Backend) GetPort() uint32

func (*Backend) ProtoMessage

func (*Backend) ProtoMessage()

func (*Backend) Reset

func (m *Backend) Reset()

func (*Backend) String

func (m *Backend) String() string

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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