docker

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_docker_dkr_proto protoreflect.FileDescriptor

Functions

func GetExecutingSeconds

func GetExecutingSeconds(startSecondsUnix int64, nowTime time.Time) uint64

func StopAndTerminateContainer added in v1.1.3

func StopAndTerminateContainer(containerId string, maxWaitTime *time.Duration) bool

func StopContainer added in v1.1.1

func StopContainer(containerId string, maxWaitTime *time.Duration) bool

func TerminateContainer added in v1.1.1

func TerminateContainer(containerId string) bool

Types

type ContainerInfo

type ContainerInfo struct {
	Id              string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Image           string   `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	Started         int64    `protobuf:"varint,3,opt,name=started,proto3" json:"started,omitempty"`
	Names           []string `protobuf:"bytes,4,rep,name=names,proto3" json:"names,omitempty"`
	Imageid         string   `protobuf:"bytes,5,opt,name=imageid,proto3" json:"imageid,omitempty"`
	InternalCommand string   `protobuf:"bytes,6,opt,name=internalCommand,proto3" json:"internalCommand,omitempty"`
	State           string   `protobuf:"bytes,7,opt,name=state,proto3" json:"state,omitempty"`
	Status          string   `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func GetCurrentContainers

func GetCurrentContainers() []*ContainerInfo

func (*ContainerInfo) Descriptor deprecated

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

Deprecated: Use ContainerInfo.ProtoReflect.Descriptor instead.

func (*ContainerInfo) GetId

func (x *ContainerInfo) GetId() string

func (*ContainerInfo) GetImage

func (x *ContainerInfo) GetImage() string

func (*ContainerInfo) GetImageid added in v1.1.2

func (x *ContainerInfo) GetImageid() string

func (*ContainerInfo) GetInternalCommand added in v1.1.2

func (x *ContainerInfo) GetInternalCommand() string

func (*ContainerInfo) GetNames added in v1.1.2

func (x *ContainerInfo) GetNames() []string

func (*ContainerInfo) GetStarted

func (x *ContainerInfo) GetStarted() int64

func (*ContainerInfo) GetState added in v1.1.2

func (x *ContainerInfo) GetState() string

func (*ContainerInfo) GetStatus added in v1.1.2

func (x *ContainerInfo) GetStatus() string

func (*ContainerInfo) ProtoMessage

func (*ContainerInfo) ProtoMessage()

func (*ContainerInfo) ProtoReflect added in v1.2.3

func (x *ContainerInfo) ProtoReflect() protoreflect.Message

func (*ContainerInfo) Reset

func (x *ContainerInfo) Reset()

func (*ContainerInfo) String

func (x *ContainerInfo) String() string

Jump to

Keyboard shortcuts

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