Documentation ¶
Overview ¶
Package containers is a generated protocol buffer package.
It is generated from these files:
services/containers/v1/containers.proto
It has these top-level messages:
StdinStreamRequest StdoutStreamResponse SignalRequest SignalResponse Container PipeSet PipeFromStdout PipeToStdin Mount ContainerStatus
Index ¶
- func RegisterContainersServer(s *grpc.Server, srv ContainersServer)
- type Container
- func (*Container) Descriptor() ([]byte, []int)
- func (m *Container) GetArgs() []string
- func (m *Container) GetEnv() []string
- func (m *Container) GetImage() string
- func (m *Container) GetMounts() []*Mount
- func (m *Container) GetName() string
- func (m *Container) GetPipe() *PipeSet
- func (m *Container) GetTty() bool
- func (m *Container) GetWorkingDir() string
- func (*Container) ProtoMessage()
- func (m *Container) Reset()
- func (m *Container) String() string
- type ContainerStatus
- func (*ContainerStatus) Descriptor() ([]byte, []int)
- func (m *ContainerStatus) GetContainerID() string
- func (m *ContainerStatus) GetImage() string
- func (m *ContainerStatus) GetName() string
- func (m *ContainerStatus) GetRestartCount() int32
- func (m *ContainerStatus) GetState() string
- func (*ContainerStatus) ProtoMessage()
- func (m *ContainerStatus) Reset()
- func (m *ContainerStatus) String() string
- type ContainersClient
- type ContainersServer
- type Containers_AttachClient
- type Containers_AttachServer
- type Containers_ExecClient
- type Containers_ExecServer
- type Mount
- type PipeFromStdout
- type PipeSet
- type PipeToStdin
- type SignalRequest
- type SignalResponse
- type StdinStreamRequest
- type StdoutStreamResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterContainersServer ¶
func RegisterContainersServer(s *grpc.Server, srv ContainersServer)
Types ¶
type Container ¶
type Container struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Image string `protobuf:"bytes,2,opt,name=image" json:"image,omitempty"` Tty bool `protobuf:"varint,3,opt,name=tty" json:"tty,omitempty"` WorkingDir string `protobuf:"bytes,4,opt,name=workingDir" json:"workingDir,omitempty"` Args []string `protobuf:"bytes,5,rep,name=args" json:"args,omitempty"` Env []string `protobuf:"bytes,6,rep,name=env" json:"env,omitempty"` Mounts []*Mount `protobuf:"bytes,7,rep,name=mounts" json:"mounts,omitempty"` Pipe *PipeSet `protobuf:"bytes,8,opt,name=pipe" json:"pipe,omitempty"` }
func (*Container) Descriptor ¶
func (*Container) GetWorkingDir ¶
func (*Container) ProtoMessage ¶
func (*Container) ProtoMessage()
type ContainerStatus ¶
type ContainerStatus struct { ContainerID string `protobuf:"bytes,1,opt,name=containerID" json:"containerID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Image string `protobuf:"bytes,3,opt,name=image" json:"image,omitempty"` State string `protobuf:"bytes,4,opt,name=state" json:"state,omitempty"` RestartCount int32 `protobuf:"varint,5,opt,name=restartCount" json:"restartCount,omitempty"` }
func (*ContainerStatus) Descriptor ¶
func (*ContainerStatus) Descriptor() ([]byte, []int)
func (*ContainerStatus) GetContainerID ¶
func (m *ContainerStatus) GetContainerID() string
func (*ContainerStatus) GetImage ¶
func (m *ContainerStatus) GetImage() string
func (*ContainerStatus) GetName ¶
func (m *ContainerStatus) GetName() string
func (*ContainerStatus) GetRestartCount ¶
func (m *ContainerStatus) GetRestartCount() int32
func (*ContainerStatus) GetState ¶
func (m *ContainerStatus) GetState() string
func (*ContainerStatus) ProtoMessage ¶
func (*ContainerStatus) ProtoMessage()
func (*ContainerStatus) Reset ¶
func (m *ContainerStatus) Reset()
func (*ContainerStatus) String ¶
func (m *ContainerStatus) String() string
type ContainersClient ¶
type ContainersClient interface { Attach(ctx context.Context, opts ...grpc.CallOption) (Containers_AttachClient, error) Exec(ctx context.Context, opts ...grpc.CallOption) (Containers_ExecClient, error) Signal(ctx context.Context, in *SignalRequest, opts ...grpc.CallOption) (*SignalResponse, error) }
func NewContainersClient ¶
func NewContainersClient(cc *grpc.ClientConn) ContainersClient
type ContainersServer ¶
type ContainersServer interface { Attach(Containers_AttachServer) error Exec(Containers_ExecServer) error Signal(context.Context, *SignalRequest) (*SignalResponse, error) }
type Containers_AttachClient ¶
type Containers_AttachClient interface { Send(*StdinStreamRequest) error Recv() (*StdoutStreamResponse, error) grpc.ClientStream }
type Containers_AttachServer ¶
type Containers_AttachServer interface { Send(*StdoutStreamResponse) error Recv() (*StdinStreamRequest, error) grpc.ServerStream }
type Containers_ExecClient ¶ added in v0.2.3
type Containers_ExecClient interface { Send(*StdinStreamRequest) error Recv() (*StdoutStreamResponse, error) grpc.ClientStream }
type Containers_ExecServer ¶ added in v0.2.3
type Containers_ExecServer interface { Send(*StdoutStreamResponse) error Recv() (*StdinStreamRequest, error) grpc.ServerStream }
type Mount ¶
type Mount struct { Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` Source string `protobuf:"bytes,2,opt,name=source" json:"source,omitempty"` Destination string `protobuf:"bytes,3,opt,name=destination" json:"destination,omitempty"` Options []string `protobuf:"bytes,4,rep,name=options" json:"options,omitempty"` }
func (*Mount) Descriptor ¶
func (*Mount) GetDestination ¶
func (*Mount) GetOptions ¶
func (*Mount) ProtoMessage ¶
func (*Mount) ProtoMessage()
type PipeFromStdout ¶
type PipeFromStdout struct {
Stdin *PipeToStdin `protobuf:"bytes,1,opt,name=stdin" json:"stdin,omitempty"`
}
func (*PipeFromStdout) Descriptor ¶
func (*PipeFromStdout) Descriptor() ([]byte, []int)
func (*PipeFromStdout) GetStdin ¶
func (m *PipeFromStdout) GetStdin() *PipeToStdin
func (*PipeFromStdout) ProtoMessage ¶
func (*PipeFromStdout) ProtoMessage()
func (*PipeFromStdout) Reset ¶
func (m *PipeFromStdout) Reset()
func (*PipeFromStdout) String ¶
func (m *PipeFromStdout) String() string
type PipeSet ¶
type PipeSet struct {
Stdout *PipeFromStdout `protobuf:"bytes,1,opt,name=stdout" json:"stdout,omitempty"`
}
func (*PipeSet) Descriptor ¶
func (*PipeSet) GetStdout ¶
func (m *PipeSet) GetStdout() *PipeFromStdout
func (*PipeSet) ProtoMessage ¶
func (*PipeSet) ProtoMessage()
type PipeToStdin ¶
type PipeToStdin struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*PipeToStdin) Descriptor ¶
func (*PipeToStdin) Descriptor() ([]byte, []int)
func (*PipeToStdin) GetName ¶
func (m *PipeToStdin) GetName() string
func (*PipeToStdin) ProtoMessage ¶
func (*PipeToStdin) ProtoMessage()
func (*PipeToStdin) Reset ¶
func (m *PipeToStdin) Reset()
func (*PipeToStdin) String ¶
func (m *PipeToStdin) String() string
type SignalRequest ¶
type SignalRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace" json:"namespace,omitempty"` ContainerID string `protobuf:"bytes,2,opt,name=containerID" json:"containerID,omitempty"` Signal int32 `protobuf:"varint,3,opt,name=signal" json:"signal,omitempty"` }
func (*SignalRequest) Descriptor ¶
func (*SignalRequest) Descriptor() ([]byte, []int)
func (*SignalRequest) GetContainerID ¶
func (m *SignalRequest) GetContainerID() string
func (*SignalRequest) GetNamespace ¶
func (m *SignalRequest) GetNamespace() string
func (*SignalRequest) GetSignal ¶
func (m *SignalRequest) GetSignal() int32
func (*SignalRequest) ProtoMessage ¶
func (*SignalRequest) ProtoMessage()
func (*SignalRequest) Reset ¶
func (m *SignalRequest) Reset()
func (*SignalRequest) String ¶
func (m *SignalRequest) String() string
type SignalResponse ¶
type SignalResponse struct { }
func (*SignalResponse) Descriptor ¶
func (*SignalResponse) Descriptor() ([]byte, []int)
func (*SignalResponse) ProtoMessage ¶
func (*SignalResponse) ProtoMessage()
func (*SignalResponse) Reset ¶
func (m *SignalResponse) Reset()
func (*SignalResponse) String ¶
func (m *SignalResponse) String() string
type StdinStreamRequest ¶
type StdinStreamRequest struct {
Input []byte `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
}
func (*StdinStreamRequest) Descriptor ¶
func (*StdinStreamRequest) Descriptor() ([]byte, []int)
func (*StdinStreamRequest) GetInput ¶
func (m *StdinStreamRequest) GetInput() []byte
func (*StdinStreamRequest) ProtoMessage ¶
func (*StdinStreamRequest) ProtoMessage()
func (*StdinStreamRequest) Reset ¶
func (m *StdinStreamRequest) Reset()
func (*StdinStreamRequest) String ¶
func (m *StdinStreamRequest) String() string
type StdoutStreamResponse ¶
type StdoutStreamResponse struct { Output []byte `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` // Is this stderr(=true) or stdout(=false) Stderr bool `protobuf:"varint,2,opt,name=stderr" json:"stderr,omitempty"` }
func (*StdoutStreamResponse) Descriptor ¶
func (*StdoutStreamResponse) Descriptor() ([]byte, []int)
func (*StdoutStreamResponse) GetOutput ¶
func (m *StdoutStreamResponse) GetOutput() []byte
func (*StdoutStreamResponse) GetStderr ¶
func (m *StdoutStreamResponse) GetStderr() bool
func (*StdoutStreamResponse) ProtoMessage ¶
func (*StdoutStreamResponse) ProtoMessage()
func (*StdoutStreamResponse) Reset ¶
func (m *StdoutStreamResponse) Reset()
func (*StdoutStreamResponse) String ¶
func (m *StdoutStreamResponse) String() string
Click to show internal directories.
Click to hide internal directories.