containers

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

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

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 Default

func Default(container *Container) *Container

Default set default values to Container model

func Defaults

func Defaults(containers []*Container) (result []*Container)

Defaults set default values to container definitions

func (*Container) Descriptor

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

func (*Container) GetArgs

func (m *Container) GetArgs() []string

func (*Container) GetEnv

func (m *Container) GetEnv() []string

func (*Container) GetImage

func (m *Container) GetImage() string

func (*Container) GetMounts

func (m *Container) GetMounts() []*Mount

func (*Container) GetName

func (m *Container) GetName() string

func (*Container) GetPipe

func (m *Container) GetPipe() *PipeSet

func (*Container) GetTty

func (m *Container) GetTty() bool

func (*Container) GetWorkingDir

func (m *Container) GetWorkingDir() string

func (*Container) ProtoMessage

func (*Container) ProtoMessage()

func (*Container) Reset

func (m *Container) Reset()

func (*Container) String

func (m *Container) String() string

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) Descriptor() ([]byte, []int)

func (*Mount) GetDestination

func (m *Mount) GetDestination() string

func (*Mount) GetOptions

func (m *Mount) GetOptions() []string

func (*Mount) GetSource

func (m *Mount) GetSource() string

func (*Mount) GetType

func (m *Mount) GetType() string

func (*Mount) ProtoMessage

func (*Mount) ProtoMessage()

func (*Mount) Reset

func (m *Mount) Reset()

func (*Mount) String

func (m *Mount) String() string

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) Descriptor() ([]byte, []int)

func (*PipeSet) GetStdout

func (m *PipeSet) GetStdout() *PipeFromStdout

func (*PipeSet) ProtoMessage

func (*PipeSet) ProtoMessage()

func (*PipeSet) Reset

func (m *PipeSet) Reset()

func (*PipeSet) String

func (m *PipeSet) String() string

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

Jump to

Keyboard shortcuts

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