proto

package
v0.0.0-...-ccb0926 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HealthCheckResponse_ServingStatus_name = map[int32]string{
	0: "UNKNOWN",
	1: "SERVING",
	2: "NOT_SERVING",
}
View Source
var HealthCheckResponse_ServingStatus_value = map[string]int32{
	"UNKNOWN":     0,
	"SERVING":     1,
	"NOT_SERVING": 2,
}
View Source
var StatusResponse_Status_name = map[int32]string{
	0: "SUCCESS",
	1: "FAIL",
}
View Source
var StatusResponse_Status_value = map[string]int32{
	"SUCCESS": 0,
	"FAIL":    1,
}

Functions

func RegisterDockerServer

func RegisterDockerServer(s *grpc.Server, srv DockerServer)

func RegisterHealthServer

func RegisterHealthServer(s *grpc.Server, srv HealthServer)

func RegisterServiceServer

func RegisterServiceServer(s *grpc.Server, srv ServiceServer)

func RegisterStrategyServer

func RegisterStrategyServer(s *grpc.Server, srv StrategyServer)

Types

type DockerClient

type DockerClient interface {
	Start(ctx context.Context, in *DockerRequest, opts ...grpc.CallOption) (*StatusResponse, error)
	Stop(ctx context.Context, in *DockerRequest, opts ...grpc.CallOption) (*StatusResponse, error)
}

DockerClient is the client API for Docker service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDockerClient

func NewDockerClient(cc grpc.ClientConnInterface) DockerClient

type DockerRequest

type DockerRequest struct {
	JobName              string   `protobuf:"bytes,1,opt,name=jobName,proto3" json:"jobName,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DockerRequest) Descriptor

func (*DockerRequest) Descriptor() ([]byte, []int)

func (*DockerRequest) GetJobName

func (m *DockerRequest) GetJobName() string

func (*DockerRequest) GetName

func (m *DockerRequest) GetName() string

func (*DockerRequest) ProtoMessage

func (*DockerRequest) ProtoMessage()

func (*DockerRequest) Reset

func (m *DockerRequest) Reset()

func (*DockerRequest) String

func (m *DockerRequest) String() string

func (*DockerRequest) XXX_DiscardUnknown

func (m *DockerRequest) XXX_DiscardUnknown()

func (*DockerRequest) XXX_Marshal

func (m *DockerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DockerRequest) XXX_Merge

func (m *DockerRequest) XXX_Merge(src proto.Message)

func (*DockerRequest) XXX_Size

func (m *DockerRequest) XXX_Size() int

func (*DockerRequest) XXX_Unmarshal

func (m *DockerRequest) XXX_Unmarshal(b []byte) error

type DockerServer

type DockerServer interface {
	Start(context.Context, *DockerRequest) (*StatusResponse, error)
	Stop(context.Context, *DockerRequest) (*StatusResponse, error)
}

DockerServer is the server API for Docker service.

type HealthCheckRequest

type HealthCheckRequest struct {
	Service              string   `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HealthCheckRequest) Descriptor

func (*HealthCheckRequest) Descriptor() ([]byte, []int)

func (*HealthCheckRequest) GetService

func (m *HealthCheckRequest) GetService() string

func (*HealthCheckRequest) ProtoMessage

func (*HealthCheckRequest) ProtoMessage()

func (*HealthCheckRequest) Reset

func (m *HealthCheckRequest) Reset()

func (*HealthCheckRequest) String

func (m *HealthCheckRequest) String() string

func (*HealthCheckRequest) XXX_DiscardUnknown

func (m *HealthCheckRequest) XXX_DiscardUnknown()

func (*HealthCheckRequest) XXX_Marshal

func (m *HealthCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HealthCheckRequest) XXX_Merge

func (m *HealthCheckRequest) XXX_Merge(src proto.Message)

func (*HealthCheckRequest) XXX_Size

func (m *HealthCheckRequest) XXX_Size() int

func (*HealthCheckRequest) XXX_Unmarshal

func (m *HealthCheckRequest) XXX_Unmarshal(b []byte) error

type HealthCheckResponse

type HealthCheckResponse struct {
	Status               HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=proto.HealthCheckResponse_ServingStatus" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
	XXX_unrecognized     []byte                            `json:"-"`
	XXX_sizecache        int32                             `json:"-"`
}

func (*HealthCheckResponse) Descriptor

func (*HealthCheckResponse) Descriptor() ([]byte, []int)

func (*HealthCheckResponse) GetStatus

func (*HealthCheckResponse) ProtoMessage

func (*HealthCheckResponse) ProtoMessage()

func (*HealthCheckResponse) Reset

func (m *HealthCheckResponse) Reset()

func (*HealthCheckResponse) String

func (m *HealthCheckResponse) String() string

func (*HealthCheckResponse) XXX_DiscardUnknown

func (m *HealthCheckResponse) XXX_DiscardUnknown()

func (*HealthCheckResponse) XXX_Marshal

func (m *HealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HealthCheckResponse) XXX_Merge

func (m *HealthCheckResponse) XXX_Merge(src proto.Message)

func (*HealthCheckResponse) XXX_Size

func (m *HealthCheckResponse) XXX_Size() int

func (*HealthCheckResponse) XXX_Unmarshal

func (m *HealthCheckResponse) XXX_Unmarshal(b []byte) error

type HealthCheckResponse_ServingStatus

type HealthCheckResponse_ServingStatus int32
const (
	HealthCheckResponse_UNKNOWN     HealthCheckResponse_ServingStatus = 0
	HealthCheckResponse_SERVING     HealthCheckResponse_ServingStatus = 1
	HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2
)

func (HealthCheckResponse_ServingStatus) EnumDescriptor

func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int)

func (HealthCheckResponse_ServingStatus) String

type HealthClient

type HealthClient interface {
	Check(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error)
	Watch(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (Health_WatchClient, error)
}

HealthClient is the client API for Health service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewHealthClient

func NewHealthClient(cc *grpc.ClientConn) HealthClient

type HealthServer

HealthServer is the server API for Health service.

type Health_WatchClient

type Health_WatchClient interface {
	Recv() (*HealthCheckResponse, error)
	grpc.ClientStream
}

type Health_WatchServer

type Health_WatchServer interface {
	Send(*HealthCheckResponse) error
	grpc.ServerStream
}

type RecoverRequest

type RecoverRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RecoverRequest) Descriptor

func (*RecoverRequest) Descriptor() ([]byte, []int)

func (*RecoverRequest) ProtoMessage

func (*RecoverRequest) ProtoMessage()

func (*RecoverRequest) Reset

func (m *RecoverRequest) Reset()

func (*RecoverRequest) String

func (m *RecoverRequest) String() string

func (*RecoverRequest) XXX_DiscardUnknown

func (m *RecoverRequest) XXX_DiscardUnknown()

func (*RecoverRequest) XXX_Marshal

func (m *RecoverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RecoverRequest) XXX_Merge

func (m *RecoverRequest) XXX_Merge(src proto.Message)

func (*RecoverRequest) XXX_Size

func (m *RecoverRequest) XXX_Size() int

func (*RecoverRequest) XXX_Unmarshal

func (m *RecoverRequest) XXX_Unmarshal(b []byte) error

type ResolveResponse

type ResolveResponse struct {
	Response             []*StatusResponse `protobuf:"bytes,1,rep,name=response,proto3" json:"response,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*ResolveResponse) Descriptor

func (*ResolveResponse) Descriptor() ([]byte, []int)

func (*ResolveResponse) GetResponse

func (m *ResolveResponse) GetResponse() []*StatusResponse

func (*ResolveResponse) ProtoMessage

func (*ResolveResponse) ProtoMessage()

func (*ResolveResponse) Reset

func (m *ResolveResponse) Reset()

func (*ResolveResponse) String

func (m *ResolveResponse) String() string

func (*ResolveResponse) XXX_DiscardUnknown

func (m *ResolveResponse) XXX_DiscardUnknown()

func (*ResolveResponse) XXX_Marshal

func (m *ResolveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResolveResponse) XXX_Merge

func (m *ResolveResponse) XXX_Merge(src proto.Message)

func (*ResolveResponse) XXX_Size

func (m *ResolveResponse) XXX_Size() int

func (*ResolveResponse) XXX_Unmarshal

func (m *ResolveResponse) XXX_Unmarshal(b []byte) error

type ServiceClient

type ServiceClient interface {
	Start(ctx context.Context, in *ServiceRequest, opts ...grpc.CallOption) (*StatusResponse, error)
	Stop(ctx context.Context, in *ServiceRequest, opts ...grpc.CallOption) (*StatusResponse, error)
}

ServiceClient is the client API for Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceRequest

type ServiceRequest struct {
	JobName              string   `protobuf:"bytes,1,opt,name=jobName,proto3" json:"jobName,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServiceRequest) Descriptor

func (*ServiceRequest) Descriptor() ([]byte, []int)

func (*ServiceRequest) GetJobName

func (m *ServiceRequest) GetJobName() string

func (*ServiceRequest) GetName

func (m *ServiceRequest) GetName() string

func (*ServiceRequest) ProtoMessage

func (*ServiceRequest) ProtoMessage()

func (*ServiceRequest) Reset

func (m *ServiceRequest) Reset()

func (*ServiceRequest) String

func (m *ServiceRequest) String() string

func (*ServiceRequest) XXX_DiscardUnknown

func (m *ServiceRequest) XXX_DiscardUnknown()

func (*ServiceRequest) XXX_Marshal

func (m *ServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceRequest) XXX_Merge

func (m *ServiceRequest) XXX_Merge(src proto.Message)

func (*ServiceRequest) XXX_Size

func (m *ServiceRequest) XXX_Size() int

func (*ServiceRequest) XXX_Unmarshal

func (m *ServiceRequest) XXX_Unmarshal(b []byte) error

type ServiceServer

type ServiceServer interface {
	Start(context.Context, *ServiceRequest) (*StatusResponse, error)
	Stop(context.Context, *ServiceRequest) (*StatusResponse, error)
}

ServiceServer is the server API for Service service.

type StatusResponse

type StatusResponse struct {
	Status               StatusResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=proto.StatusResponse_Status" json:"status,omitempty"`
	Message              string                `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*StatusResponse) Descriptor

func (*StatusResponse) Descriptor() ([]byte, []int)

func (*StatusResponse) GetMessage

func (m *StatusResponse) GetMessage() string

func (*StatusResponse) GetStatus

func (m *StatusResponse) GetStatus() StatusResponse_Status

func (*StatusResponse) ProtoMessage

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) Reset

func (m *StatusResponse) Reset()

func (*StatusResponse) String

func (m *StatusResponse) String() string

func (*StatusResponse) XXX_DiscardUnknown

func (m *StatusResponse) XXX_DiscardUnknown()

func (*StatusResponse) XXX_Marshal

func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StatusResponse) XXX_Merge

func (m *StatusResponse) XXX_Merge(src proto.Message)

func (*StatusResponse) XXX_Size

func (m *StatusResponse) XXX_Size() int

func (*StatusResponse) XXX_Unmarshal

func (m *StatusResponse) XXX_Unmarshal(b []byte) error

type StatusResponse_Status

type StatusResponse_Status int32
const (
	StatusResponse_SUCCESS StatusResponse_Status = 0
	StatusResponse_FAIL    StatusResponse_Status = 1
)

func (StatusResponse_Status) EnumDescriptor

func (StatusResponse_Status) EnumDescriptor() ([]byte, []int)

func (StatusResponse_Status) String

func (x StatusResponse_Status) String() string

type StrategyClient

type StrategyClient interface {
	Recover(ctx context.Context, in *RecoverRequest, opts ...grpc.CallOption) (*ResolveResponse, error)
}

StrategyClient is the client API for Strategy service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewStrategyClient

func NewStrategyClient(cc grpc.ClientConnInterface) StrategyClient

type StrategyServer

type StrategyServer interface {
	Recover(context.Context, *RecoverRequest) (*ResolveResponse, error)
}

StrategyServer is the server API for Strategy service.

type UnimplementedDockerServer

type UnimplementedDockerServer struct {
}

UnimplementedDockerServer can be embedded to have forward compatible implementations.

func (*UnimplementedDockerServer) Start

func (*UnimplementedDockerServer) Stop

type UnimplementedHealthServer

type UnimplementedHealthServer struct {
}

UnimplementedHealthServer can be embedded to have forward compatible implementations.

func (*UnimplementedHealthServer) Check

func (*UnimplementedHealthServer) Watch

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedServiceServer) Start

func (*UnimplementedServiceServer) Stop

type UnimplementedStrategyServer

type UnimplementedStrategyServer struct {
}

UnimplementedStrategyServer can be embedded to have forward compatible implementations.

func (*UnimplementedStrategyServer) Recover

Jump to

Keyboard shortcuts

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