container

package
v0.0.0-...-6f0d270 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvokeResponse_Code_name = map[int32]string{
		0: "OK",
		1: "NOT_READY",
		2: "FUNC_MISMATCH",
		3: "RUNTIME_ERROR",
	}
	InvokeResponse_Code_value = map[string]int32{
		"OK":            0,
		"NOT_READY":     1,
		"FUNC_MISMATCH": 2,
		"RUNTIME_ERROR": 3,
	}
)

Enum value maps for InvokeResponse_Code.

View Source
var (
	SetEnvsResponse_Code_name = map[int32]string{
		0: "OK",
		1: "INVALID_ENV",
	}
	SetEnvsResponse_Code_value = map[string]int32{
		"OK":          0,
		"INVALID_ENV": 1,
	}
)

Enum value maps for SetEnvsResponse_Code.

View Source
var (
	LoadCodeResponse_Code_name = map[int32]string{
		0: "OK",
		1: "ERROR",
	}
	LoadCodeResponse_Code_value = map[string]int32{
		"OK":    0,
		"ERROR": 1,
	}
)

Enum value maps for LoadCodeResponse_Code.

View Source
var (
	StopResponse_Code_name = map[int32]string{
		0: "OK",
	}
	StopResponse_Code_value = map[string]int32{
		"OK": 0,
	}
)

Enum value maps for StopResponse_Code.

View Source
var File_container_container_proto protoreflect.FileDescriptor

Functions

func RegisterContainerServer

func RegisterContainerServer(s *grpc.Server, srv ContainerServer)

Types

type ContainerClient

type ContainerClient interface {
	Invoke(ctx context.Context, in *InvokeRequest, opts ...grpc.CallOption) (*InvokeResponse, error)
	SetEnvs(ctx context.Context, in *SetEnvsRequest, opts ...grpc.CallOption) (*SetEnvsResponse, error)
	LoadCode(ctx context.Context, in *LoadCodeRequest, opts ...grpc.CallOption) (*LoadCodeResponse, error)
	Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error)
}

ContainerClient is the client API for Container service.

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

func NewContainerClient

func NewContainerClient(cc grpc.ClientConnInterface) ContainerClient

type ContainerServer

ContainerServer is the server API for Container service.

type InvokeRequest

type InvokeRequest struct {
	FuncName string `protobuf:"bytes,1,opt,name=funcName,proto3" json:"funcName,omitempty"`
	Payload  []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*InvokeRequest) Descriptor deprecated

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

Deprecated: Use InvokeRequest.ProtoReflect.Descriptor instead.

func (*InvokeRequest) GetFuncName

func (x *InvokeRequest) GetFuncName() string

func (*InvokeRequest) GetPayload

func (x *InvokeRequest) GetPayload() []byte

func (*InvokeRequest) ProtoMessage

func (*InvokeRequest) ProtoMessage()

func (*InvokeRequest) ProtoReflect

func (x *InvokeRequest) ProtoReflect() protoreflect.Message

func (*InvokeRequest) Reset

func (x *InvokeRequest) Reset()

func (*InvokeRequest) String

func (x *InvokeRequest) String() string

type InvokeResponse

type InvokeResponse struct {
	Code   InvokeResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=container.InvokeResponse_Code" json:"code,omitempty"`
	Output []byte              `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

func (*InvokeResponse) Descriptor deprecated

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

Deprecated: Use InvokeResponse.ProtoReflect.Descriptor instead.

func (*InvokeResponse) GetCode

func (x *InvokeResponse) GetCode() InvokeResponse_Code

func (*InvokeResponse) GetOutput

func (x *InvokeResponse) GetOutput() []byte

func (*InvokeResponse) ProtoMessage

func (*InvokeResponse) ProtoMessage()

func (*InvokeResponse) ProtoReflect

func (x *InvokeResponse) ProtoReflect() protoreflect.Message

func (*InvokeResponse) Reset

func (x *InvokeResponse) Reset()

func (*InvokeResponse) String

func (x *InvokeResponse) String() string

type InvokeResponse_Code

type InvokeResponse_Code int32
const (
	InvokeResponse_OK            InvokeResponse_Code = 0
	InvokeResponse_NOT_READY     InvokeResponse_Code = 1
	InvokeResponse_FUNC_MISMATCH InvokeResponse_Code = 2
	InvokeResponse_RUNTIME_ERROR InvokeResponse_Code = 3
)

func (InvokeResponse_Code) Descriptor

func (InvokeResponse_Code) Enum

func (InvokeResponse_Code) EnumDescriptor deprecated

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

Deprecated: Use InvokeResponse_Code.Descriptor instead.

func (InvokeResponse_Code) Number

func (InvokeResponse_Code) String

func (x InvokeResponse_Code) String() string

func (InvokeResponse_Code) Type

type LoadCodeRequest

type LoadCodeRequest struct {
	FuncName string `protobuf:"bytes,1,opt,name=funcName,proto3" json:"funcName,omitempty"`
	Url      string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*LoadCodeRequest) Descriptor deprecated

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

Deprecated: Use LoadCodeRequest.ProtoReflect.Descriptor instead.

func (*LoadCodeRequest) GetFuncName

func (x *LoadCodeRequest) GetFuncName() string

func (*LoadCodeRequest) GetUrl

func (x *LoadCodeRequest) GetUrl() string

func (*LoadCodeRequest) ProtoMessage

func (*LoadCodeRequest) ProtoMessage()

func (*LoadCodeRequest) ProtoReflect

func (x *LoadCodeRequest) ProtoReflect() protoreflect.Message

func (*LoadCodeRequest) Reset

func (x *LoadCodeRequest) Reset()

func (*LoadCodeRequest) String

func (x *LoadCodeRequest) String() string

type LoadCodeResponse

type LoadCodeResponse struct {
	Code LoadCodeResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=container.LoadCodeResponse_Code" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*LoadCodeResponse) Descriptor deprecated

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

Deprecated: Use LoadCodeResponse.ProtoReflect.Descriptor instead.

func (*LoadCodeResponse) GetCode

func (*LoadCodeResponse) ProtoMessage

func (*LoadCodeResponse) ProtoMessage()

func (*LoadCodeResponse) ProtoReflect

func (x *LoadCodeResponse) ProtoReflect() protoreflect.Message

func (*LoadCodeResponse) Reset

func (x *LoadCodeResponse) Reset()

func (*LoadCodeResponse) String

func (x *LoadCodeResponse) String() string

type LoadCodeResponse_Code

type LoadCodeResponse_Code int32
const (
	LoadCodeResponse_OK    LoadCodeResponse_Code = 0
	LoadCodeResponse_ERROR LoadCodeResponse_Code = 1
)

func (LoadCodeResponse_Code) Descriptor

func (LoadCodeResponse_Code) Enum

func (LoadCodeResponse_Code) EnumDescriptor deprecated

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

Deprecated: Use LoadCodeResponse_Code.Descriptor instead.

func (LoadCodeResponse_Code) Number

func (LoadCodeResponse_Code) String

func (x LoadCodeResponse_Code) String() string

func (LoadCodeResponse_Code) Type

type SetEnvsRequest

type SetEnvsRequest struct {
	Env []string `protobuf:"bytes,1,rep,name=env,proto3" json:"env,omitempty"`
	// contains filtered or unexported fields
}

func (*SetEnvsRequest) Descriptor deprecated

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

Deprecated: Use SetEnvsRequest.ProtoReflect.Descriptor instead.

func (*SetEnvsRequest) GetEnv

func (x *SetEnvsRequest) GetEnv() []string

func (*SetEnvsRequest) ProtoMessage

func (*SetEnvsRequest) ProtoMessage()

func (*SetEnvsRequest) ProtoReflect

func (x *SetEnvsRequest) ProtoReflect() protoreflect.Message

func (*SetEnvsRequest) Reset

func (x *SetEnvsRequest) Reset()

func (*SetEnvsRequest) String

func (x *SetEnvsRequest) String() string

type SetEnvsResponse

type SetEnvsResponse struct {
	Code SetEnvsResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=container.SetEnvsResponse_Code" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*SetEnvsResponse) Descriptor deprecated

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

Deprecated: Use SetEnvsResponse.ProtoReflect.Descriptor instead.

func (*SetEnvsResponse) GetCode

func (*SetEnvsResponse) ProtoMessage

func (*SetEnvsResponse) ProtoMessage()

func (*SetEnvsResponse) ProtoReflect

func (x *SetEnvsResponse) ProtoReflect() protoreflect.Message

func (*SetEnvsResponse) Reset

func (x *SetEnvsResponse) Reset()

func (*SetEnvsResponse) String

func (x *SetEnvsResponse) String() string

type SetEnvsResponse_Code

type SetEnvsResponse_Code int32
const (
	SetEnvsResponse_OK          SetEnvsResponse_Code = 0
	SetEnvsResponse_INVALID_ENV SetEnvsResponse_Code = 1
)

func (SetEnvsResponse_Code) Descriptor

func (SetEnvsResponse_Code) Enum

func (SetEnvsResponse_Code) EnumDescriptor deprecated

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

Deprecated: Use SetEnvsResponse_Code.Descriptor instead.

func (SetEnvsResponse_Code) Number

func (SetEnvsResponse_Code) String

func (x SetEnvsResponse_Code) String() string

func (SetEnvsResponse_Code) Type

type StopRequest

type StopRequest struct {
	// contains filtered or unexported fields
}

func (*StopRequest) Descriptor deprecated

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

Deprecated: Use StopRequest.ProtoReflect.Descriptor instead.

func (*StopRequest) ProtoMessage

func (*StopRequest) ProtoMessage()

func (*StopRequest) ProtoReflect

func (x *StopRequest) ProtoReflect() protoreflect.Message

func (*StopRequest) Reset

func (x *StopRequest) Reset()

func (*StopRequest) String

func (x *StopRequest) String() string

type StopResponse

type StopResponse struct {
	Code StopResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=container.StopResponse_Code" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*StopResponse) Descriptor deprecated

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

Deprecated: Use StopResponse.ProtoReflect.Descriptor instead.

func (*StopResponse) GetCode

func (x *StopResponse) GetCode() StopResponse_Code

func (*StopResponse) ProtoMessage

func (*StopResponse) ProtoMessage()

func (*StopResponse) ProtoReflect

func (x *StopResponse) ProtoReflect() protoreflect.Message

func (*StopResponse) Reset

func (x *StopResponse) Reset()

func (*StopResponse) String

func (x *StopResponse) String() string

type StopResponse_Code

type StopResponse_Code int32
const (
	StopResponse_OK StopResponse_Code = 0
)

func (StopResponse_Code) Descriptor

func (StopResponse_Code) Enum

func (StopResponse_Code) EnumDescriptor deprecated

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

Deprecated: Use StopResponse_Code.Descriptor instead.

func (StopResponse_Code) Number

func (StopResponse_Code) String

func (x StopResponse_Code) String() string

func (StopResponse_Code) Type

type UnimplementedContainerServer

type UnimplementedContainerServer struct {
}

UnimplementedContainerServer can be embedded to have forward compatible implementations.

func (*UnimplementedContainerServer) Invoke

func (*UnimplementedContainerServer) LoadCode

func (*UnimplementedContainerServer) SetEnvs

func (*UnimplementedContainerServer) Stop

Jump to

Keyboard shortcuts

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