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 (m *Cmd) XXX_Merge(src proto.Message)
- func (m *Cmd) XXX_Size() int
- func (m *Cmd) XXX_Unmarshal(b []byte) error
- type FailedRunStep
- func (*FailedRunStep) Descriptor() ([]byte, []int)
- func (m *FailedRunStep) GetCmd() string
- func (m *FailedRunStep) GetExitCode() int32
- func (*FailedRunStep) ProtoMessage()
- func (m *FailedRunStep) Reset()
- func (m *FailedRunStep) String() string
- func (m *FailedRunStep) XXX_DiscardUnknown()
- func (m *FailedRunStep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FailedRunStep) XXX_Merge(src proto.Message)
- func (m *FailedRunStep) XXX_Size() int
- func (m *FailedRunStep) 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 (m *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 (m *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 UnimplementedSyncletServer
- type UpdateContainerReply
- func (*UpdateContainerReply) Descriptor() ([]byte, []int)
- func (m *UpdateContainerReply) GetFailedRunStep() *FailedRunStep
- 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 (m *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) GetHotReload() bool
- 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 (m *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 FailedRunStep ¶ added in v0.10.0
type FailedRunStep struct { Cmd string `protobuf:"bytes,1,opt,name=cmd,proto3" json:"cmd,omitempty"` ExitCode int32 `protobuf:"varint,2,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FailedRunStep) Descriptor ¶ added in v0.10.0
func (*FailedRunStep) Descriptor() ([]byte, []int)
func (*FailedRunStep) GetCmd ¶ added in v0.10.0
func (m *FailedRunStep) GetCmd() string
func (*FailedRunStep) GetExitCode ¶ added in v0.10.0
func (m *FailedRunStep) GetExitCode() int32
func (*FailedRunStep) ProtoMessage ¶ added in v0.10.0
func (*FailedRunStep) ProtoMessage()
func (*FailedRunStep) Reset ¶ added in v0.10.0
func (m *FailedRunStep) Reset()
func (*FailedRunStep) String ¶ added in v0.10.0
func (m *FailedRunStep) String() string
func (*FailedRunStep) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *FailedRunStep) XXX_DiscardUnknown()
func (*FailedRunStep) XXX_Marshal ¶ added in v0.10.0
func (m *FailedRunStep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FailedRunStep) XXX_Merge ¶ added in v0.10.0
func (m *FailedRunStep) XXX_Merge(src proto.Message)
func (*FailedRunStep) XXX_Size ¶ added in v0.10.0
func (m *FailedRunStep) XXX_Size() int
func (*FailedRunStep) XXX_Unmarshal ¶ added in v0.10.0
func (m *FailedRunStep) XXX_Unmarshal(b []byte) error
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 (m *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 UnimplementedSyncletServer ¶ added in v0.10.18
type UnimplementedSyncletServer struct { }
UnimplementedSyncletServer can be embedded to have forward compatible implementations.
func (*UnimplementedSyncletServer) UpdateContainer ¶ added in v0.10.18
func (*UnimplementedSyncletServer) UpdateContainer(req *UpdateContainerRequest, srv Synclet_UpdateContainerServer) error
type UpdateContainerReply ¶
type UpdateContainerReply struct { LogMessage *LogMessage `protobuf:"bytes,1,opt,name=log_message,json=logMessage,proto3" json:"log_message,omitempty"` // Contains info about run step failure (if any) FailedRunStep *FailedRunStep `protobuf:"bytes,2,opt,name=failed_run_step,json=failedRunStep,proto3" json:"failed_run_step,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateContainerReply) Descriptor ¶
func (*UpdateContainerReply) Descriptor() ([]byte, []int)
func (*UpdateContainerReply) GetFailedRunStep ¶ added in v0.10.0
func (m *UpdateContainerReply) GetFailedRunStep() *FailedRunStep
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 (m *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 (m *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.