proto

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 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 GetContainerIdForPodReply

type GetContainerIdForPodReply struct {
	// Types that are valid to be assigned to Content:
	//	*GetContainerIdForPodReply_ContainerId
	//	*GetContainerIdForPodReply_Message
	Content              isGetContainerIdForPodReply_Content `protobuf_oneof:"content"`
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

func (*GetContainerIdForPodReply) Descriptor

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

func (*GetContainerIdForPodReply) GetContainerId

func (m *GetContainerIdForPodReply) GetContainerId() string

func (*GetContainerIdForPodReply) GetContent

func (m *GetContainerIdForPodReply) GetContent() isGetContainerIdForPodReply_Content

func (*GetContainerIdForPodReply) GetMessage

func (m *GetContainerIdForPodReply) GetMessage() *LogMessage

func (*GetContainerIdForPodReply) ProtoMessage

func (*GetContainerIdForPodReply) ProtoMessage()

func (*GetContainerIdForPodReply) Reset

func (m *GetContainerIdForPodReply) Reset()

func (*GetContainerIdForPodReply) String

func (m *GetContainerIdForPodReply) String() string

func (*GetContainerIdForPodReply) XXX_DiscardUnknown

func (m *GetContainerIdForPodReply) XXX_DiscardUnknown()

func (*GetContainerIdForPodReply) XXX_Marshal

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

func (*GetContainerIdForPodReply) XXX_Merge

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

func (*GetContainerIdForPodReply) XXX_OneofFuncs

func (*GetContainerIdForPodReply) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*GetContainerIdForPodReply) XXX_Size

func (m *GetContainerIdForPodReply) XXX_Size() int

func (*GetContainerIdForPodReply) XXX_Unmarshal

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

type GetContainerIdForPodReply_ContainerId

type GetContainerIdForPodReply_ContainerId struct {
	ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3,oneof"`
}

type GetContainerIdForPodReply_Message

type GetContainerIdForPodReply_Message struct {
	Message *LogMessage `protobuf:"bytes,2,opt,name=message,proto3,oneof"`
}

type GetContainerIdForPodRequest

type GetContainerIdForPodRequest struct {
	PodId                string    `protobuf:"bytes,1,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
	ImageId              string    `protobuf:"bytes,2,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
	LogStyle             *LogStyle `protobuf:"bytes,3,opt,name=log_style,json=logStyle,proto3" json:"log_style,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*GetContainerIdForPodRequest) Descriptor

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

func (*GetContainerIdForPodRequest) GetImageId

func (m *GetContainerIdForPodRequest) GetImageId() string

func (*GetContainerIdForPodRequest) GetLogStyle

func (m *GetContainerIdForPodRequest) GetLogStyle() *LogStyle

func (*GetContainerIdForPodRequest) GetPodId

func (m *GetContainerIdForPodRequest) GetPodId() string

func (*GetContainerIdForPodRequest) ProtoMessage

func (*GetContainerIdForPodRequest) ProtoMessage()

func (*GetContainerIdForPodRequest) Reset

func (m *GetContainerIdForPodRequest) Reset()

func (*GetContainerIdForPodRequest) String

func (m *GetContainerIdForPodRequest) String() string

func (*GetContainerIdForPodRequest) XXX_DiscardUnknown

func (m *GetContainerIdForPodRequest) XXX_DiscardUnknown()

func (*GetContainerIdForPodRequest) XXX_Marshal

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

func (*GetContainerIdForPodRequest) XXX_Merge

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

func (*GetContainerIdForPodRequest) XXX_Size

func (m *GetContainerIdForPodRequest) XXX_Size() int

func (*GetContainerIdForPodRequest) XXX_Unmarshal

func (m *GetContainerIdForPodRequest) 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 {
	GetContainerIdForPod(ctx context.Context, in *GetContainerIdForPodRequest, opts ...grpc.CallOption) (Synclet_GetContainerIdForPodClient, error)
	// 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 {
	GetContainerIdForPod(*GetContainerIdForPodRequest, Synclet_GetContainerIdForPodServer) error
	// 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_GetContainerIdForPodClient

type Synclet_GetContainerIdForPodClient interface {
	Recv() (*GetContainerIdForPodReply, error)
	grpc.ClientStream
}

type Synclet_GetContainerIdForPodServer

type Synclet_GetContainerIdForPodServer interface {
	Send(*GetContainerIdForPodReply) error
	grpc.ServerStream
}

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

Jump to

Keyboard shortcuts

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