Documentation ¶
Index ¶
- Variables
- func RegisterSyncletServer(s *grpc.Server, srv SyncletServer)
- type Cmd
- func (*Cmd) Descriptor() ([]byte, []int)
- func (m *Cmd) GetArgv() []string
- func (*Cmd) ProtoMessage()
- func (m *Cmd) Reset()
- func (m *Cmd) String() string
- func (m *Cmd) XXX_DiscardUnknown()
- func (m *Cmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Cmd) XXX_Merge(src proto.Message)
- func (m *Cmd) XXX_Size() int
- func (m *Cmd) XXX_Unmarshal(b []byte) error
- type LogLevel
- type LogMessage
- func (*LogMessage) Descriptor() ([]byte, []int)
- func (m *LogMessage) GetLevel() LogLevel
- func (m *LogMessage) GetMessage() []byte
- func (*LogMessage) ProtoMessage()
- func (m *LogMessage) Reset()
- func (m *LogMessage) String() string
- func (m *LogMessage) XXX_DiscardUnknown()
- func (m *LogMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LogMessage) XXX_Merge(src proto.Message)
- func (m *LogMessage) XXX_Size() int
- func (m *LogMessage) XXX_Unmarshal(b []byte) error
- type LogStyle
- func (*LogStyle) Descriptor() ([]byte, []int)
- func (m *LogStyle) GetColorsEnabled() bool
- func (m *LogStyle) GetLevel() LogLevel
- func (*LogStyle) ProtoMessage()
- func (m *LogStyle) Reset()
- func (m *LogStyle) String() string
- func (m *LogStyle) XXX_DiscardUnknown()
- func (m *LogStyle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LogStyle) XXX_Merge(src proto.Message)
- func (m *LogStyle) XXX_Size() int
- func (m *LogStyle) XXX_Unmarshal(b []byte) error
- type SyncletClient
- type SyncletServer
- type Synclet_UpdateContainerClient
- type Synclet_UpdateContainerServer
- type UpdateContainerReply
- func (*UpdateContainerReply) Descriptor() ([]byte, []int)
- func (m *UpdateContainerReply) GetLogMessage() *LogMessage
- func (*UpdateContainerReply) ProtoMessage()
- func (m *UpdateContainerReply) Reset()
- func (m *UpdateContainerReply) String() string
- func (m *UpdateContainerReply) XXX_DiscardUnknown()
- func (m *UpdateContainerReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UpdateContainerReply) XXX_Merge(src proto.Message)
- func (m *UpdateContainerReply) XXX_Size() int
- func (m *UpdateContainerReply) XXX_Unmarshal(b []byte) error
- type UpdateContainerRequest
- func (*UpdateContainerRequest) Descriptor() ([]byte, []int)
- func (m *UpdateContainerRequest) GetCommands() []*Cmd
- func (m *UpdateContainerRequest) GetContainerId() string
- func (m *UpdateContainerRequest) GetFilesToDelete() []string
- func (m *UpdateContainerRequest) GetLogStyle() *LogStyle
- func (m *UpdateContainerRequest) GetTarArchive() []byte
- func (*UpdateContainerRequest) ProtoMessage()
- func (m *UpdateContainerRequest) Reset()
- func (m *UpdateContainerRequest) String() string
- func (m *UpdateContainerRequest) XXX_DiscardUnknown()
- func (m *UpdateContainerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UpdateContainerRequest) XXX_Merge(src proto.Message)
- func (m *UpdateContainerRequest) XXX_Size() int
- func (m *UpdateContainerRequest) XXX_Unmarshal(b []byte) error
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) ProtoMessage ¶
func (*Cmd) ProtoMessage()
func (*Cmd) XXX_DiscardUnknown ¶
func (m *Cmd) XXX_DiscardUnknown()
func (*Cmd) XXX_Unmarshal ¶
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) GetColorsEnabled ¶
func (*LogStyle) ProtoMessage ¶
func (*LogStyle) ProtoMessage()
func (*LogStyle) XXX_DiscardUnknown ¶
func (m *LogStyle) XXX_DiscardUnknown()
func (*LogStyle) XXX_Marshal ¶
func (*LogStyle) XXX_Unmarshal ¶
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"` 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) 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
Click to show internal directories.
Click to hide internal directories.