Documentation ¶
Index ¶
- Variables
- func GetExecutingSeconds(startSecondsUnix int64, nowTime time.Time) uint64
- func StopAndTerminateContainer(containerId string, maxWaitTime *time.Duration) bool
- func StopContainer(containerId string, maxWaitTime *time.Duration) bool
- func TerminateContainer(containerId string) bool
- type ContainerInfo
- func (*ContainerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerInfo) GetId() string
- func (x *ContainerInfo) GetImage() string
- func (x *ContainerInfo) GetImageid() string
- func (x *ContainerInfo) GetInternalCommand() string
- func (x *ContainerInfo) GetNames() []string
- func (x *ContainerInfo) GetStarted() int64
- func (x *ContainerInfo) GetState() string
- func (x *ContainerInfo) GetStatus() string
- func (*ContainerInfo) ProtoMessage()
- func (x *ContainerInfo) ProtoReflect() protoreflect.Message
- func (x *ContainerInfo) Reset()
- func (x *ContainerInfo) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_docker_dkr_proto protoreflect.FileDescriptor
Functions ¶
func GetExecutingSeconds ¶
func StopAndTerminateContainer ¶ added in v1.1.3
func StopContainer ¶ added in v1.1.1
func TerminateContainer ¶ added in v1.1.1
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
Click to show internal directories.
Click to hide internal directories.