proto

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevel_name = map[int32]string{
	0: "INFO",
	1: "VERBOSE",
	2: "DEBUG",
}
View Source
var LogLevel_value = map[string]int32{
	"INFO":    0,
	"VERBOSE": 1,
	"DEBUG":   2,
}

Functions

func RegisterSyncletServer

func RegisterSyncletServer(s *grpc.Server, srv SyncletServer)

Types

type Cmd

type Cmd struct {
	Argv                 []string `protobuf:"bytes,1,rep,name=argv,proto3" json:"argv,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Cmd) Descriptor

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

func (*Cmd) GetArgv

func (m *Cmd) GetArgv() []string

func (*Cmd) ProtoMessage

func (*Cmd) ProtoMessage()

func (*Cmd) Reset

func (m *Cmd) Reset()

func (*Cmd) String

func (m *Cmd) String() string

func (*Cmd) XXX_DiscardUnknown

func (m *Cmd) XXX_DiscardUnknown()

func (*Cmd) XXX_Marshal

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

func (*Cmd) XXX_Merge

func (dst *Cmd) XXX_Merge(src proto.Message)

func (*Cmd) XXX_Size

func (m *Cmd) XXX_Size() int

func (*Cmd) XXX_Unmarshal

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

type LogLevel

type LogLevel int32
const (
	LogLevel_INFO    LogLevel = 0
	LogLevel_VERBOSE LogLevel = 1
	LogLevel_DEBUG   LogLevel = 2
)

func (LogLevel) EnumDescriptor

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

func (LogLevel) String

func (x LogLevel) String() string

type LogMessage

type LogMessage struct {
	Level                LogLevel `protobuf:"varint,1,opt,name=level,proto3,enum=synclet.LogLevel" json:"level,omitempty"`
	Message              []byte   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LogMessage) Descriptor

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

func (*LogMessage) GetLevel

func (m *LogMessage) GetLevel() LogLevel

func (*LogMessage) GetMessage

func (m *LogMessage) GetMessage() []byte

func (*LogMessage) ProtoMessage

func (*LogMessage) ProtoMessage()

func (*LogMessage) Reset

func (m *LogMessage) Reset()

func (*LogMessage) String

func (m *LogMessage) String() string

func (*LogMessage) XXX_DiscardUnknown

func (m *LogMessage) XXX_DiscardUnknown()

func (*LogMessage) XXX_Marshal

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

func (*LogMessage) XXX_Merge

func (dst *LogMessage) XXX_Merge(src proto.Message)

func (*LogMessage) XXX_Size

func (m *LogMessage) XXX_Size() int

func (*LogMessage) XXX_Unmarshal

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

type LogStyle

type LogStyle struct {
	ColorsEnabled        bool     `protobuf:"varint,1,opt,name=colors_enabled,json=colorsEnabled,proto3" json:"colors_enabled,omitempty"`
	Level                LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=synclet.LogLevel" json:"level,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LogStyle) Descriptor

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

func (*LogStyle) GetColorsEnabled

func (m *LogStyle) GetColorsEnabled() bool

func (*LogStyle) GetLevel

func (m *LogStyle) GetLevel() LogLevel

func (*LogStyle) ProtoMessage

func (*LogStyle) ProtoMessage()

func (*LogStyle) Reset

func (m *LogStyle) Reset()

func (*LogStyle) String

func (m *LogStyle) String() string

func (*LogStyle) XXX_DiscardUnknown

func (m *LogStyle) XXX_DiscardUnknown()

func (*LogStyle) XXX_Marshal

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

func (*LogStyle) XXX_Merge

func (dst *LogStyle) XXX_Merge(src proto.Message)

func (*LogStyle) XXX_Size

func (m *LogStyle) XXX_Size() int

func (*LogStyle) XXX_Unmarshal

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

type SyncletClient

type SyncletClient interface {
	// updates the specified container and then restarts it
	// (much functionality packed into one rpc to minimize latency)
	UpdateContainer(ctx context.Context, in *UpdateContainerRequest, opts ...grpc.CallOption) (Synclet_UpdateContainerClient, error)
}

SyncletClient is the client API for Synclet service.

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

func NewSyncletClient

func NewSyncletClient(cc *grpc.ClientConn) SyncletClient

type SyncletServer

type SyncletServer interface {
	// updates the specified container and then restarts it
	// (much functionality packed into one rpc to minimize latency)
	UpdateContainer(*UpdateContainerRequest, Synclet_UpdateContainerServer) error
}

SyncletServer is the server API for Synclet service.

type Synclet_UpdateContainerClient

type Synclet_UpdateContainerClient interface {
	Recv() (*UpdateContainerReply, error)
	grpc.ClientStream
}

type Synclet_UpdateContainerServer

type Synclet_UpdateContainerServer interface {
	Send(*UpdateContainerReply) error
	grpc.ServerStream
}

type UpdateContainerReply

type UpdateContainerReply struct {
	LogMessage           *LogMessage `protobuf:"bytes,1,opt,name=log_message,json=logMessage,proto3" json:"log_message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*UpdateContainerReply) Descriptor

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

func (*UpdateContainerReply) GetLogMessage

func (m *UpdateContainerReply) GetLogMessage() *LogMessage

func (*UpdateContainerReply) ProtoMessage

func (*UpdateContainerReply) ProtoMessage()

func (*UpdateContainerReply) Reset

func (m *UpdateContainerReply) Reset()

func (*UpdateContainerReply) String

func (m *UpdateContainerReply) String() string

func (*UpdateContainerReply) XXX_DiscardUnknown

func (m *UpdateContainerReply) XXX_DiscardUnknown()

func (*UpdateContainerReply) XXX_Marshal

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

func (*UpdateContainerReply) XXX_Merge

func (dst *UpdateContainerReply) XXX_Merge(src proto.Message)

func (*UpdateContainerReply) XXX_Size

func (m *UpdateContainerReply) XXX_Size() int

func (*UpdateContainerReply) XXX_Unmarshal

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

type UpdateContainerRequest

type UpdateContainerRequest struct {
	ContainerId          string    `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	TarArchive           []byte    `protobuf:"bytes,2,opt,name=tar_archive,json=tarArchive,proto3" json:"tar_archive,omitempty"`
	FilesToDelete        []string  `protobuf:"bytes,3,rep,name=files_to_delete,json=filesToDelete,proto3" json:"files_to_delete,omitempty"`
	Commands             []*Cmd    `protobuf:"bytes,4,rep,name=commands,proto3" json:"commands,omitempty"`
	LogStyle             *LogStyle `protobuf:"bytes,5,opt,name=log_style,json=logStyle,proto3" json:"log_style,omitempty"`
	HotReload            bool      `protobuf:"varint,6,opt,name=hot_reload,json=hotReload,proto3" json:"hot_reload,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*UpdateContainerRequest) Descriptor

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

func (*UpdateContainerRequest) GetCommands

func (m *UpdateContainerRequest) GetCommands() []*Cmd

func (*UpdateContainerRequest) GetContainerId

func (m *UpdateContainerRequest) GetContainerId() string

func (*UpdateContainerRequest) GetFilesToDelete

func (m *UpdateContainerRequest) GetFilesToDelete() []string

func (*UpdateContainerRequest) GetHotReload added in v0.7.11

func (m *UpdateContainerRequest) GetHotReload() bool

func (*UpdateContainerRequest) GetLogStyle

func (m *UpdateContainerRequest) GetLogStyle() *LogStyle

func (*UpdateContainerRequest) GetTarArchive

func (m *UpdateContainerRequest) GetTarArchive() []byte

func (*UpdateContainerRequest) ProtoMessage

func (*UpdateContainerRequest) ProtoMessage()

func (*UpdateContainerRequest) Reset

func (m *UpdateContainerRequest) Reset()

func (*UpdateContainerRequest) String

func (m *UpdateContainerRequest) String() string

func (*UpdateContainerRequest) XXX_DiscardUnknown

func (m *UpdateContainerRequest) XXX_DiscardUnknown()

func (*UpdateContainerRequest) XXX_Marshal

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

func (*UpdateContainerRequest) XXX_Merge

func (dst *UpdateContainerRequest) XXX_Merge(src proto.Message)

func (*UpdateContainerRequest) XXX_Size

func (m *UpdateContainerRequest) XXX_Size() int

func (*UpdateContainerRequest) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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