Documentation ¶
Index ¶
- func BuildImageFromTarContext(challengeName, challengeTag, tarContextPath, dockerCtxFile string) (*bytes.Buffer, string, error)
- func CheckIfImageExists(imageId string) (bool, error)
- func CommitContainer(containerId string) (string, error)
- func CreateContainerFromImage(containerConfig *CreateContainerConfig) (string, error)
- func GetValidTrafficTypes() []string
- func IsValidTrafficType(t string) bool
- func RemoveImage(imageId string) error
- func SearchContainerByFilter(filterMap map[string]string) ([]types.Container, error)
- func SearchImageByFilter(filterMap map[string]string) ([]types.ImageSummary, error)
- func ShowLiveContainerLogs(containerID string)
- func StopAndRemoveContainer(containerId string) error
- type CreateContainerConfig
- type Log
- type PortMapping
- type TrafficType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfImageExists ¶
func CommitContainer ¶
func CreateContainerFromImage ¶
func CreateContainerFromImage(containerConfig *CreateContainerConfig) (string, error)
func GetValidTrafficTypes ¶
func GetValidTrafficTypes() []string
func IsValidTrafficType ¶
func RemoveImage ¶
func SearchContainerByFilter ¶
func SearchImageByFilter ¶
func SearchImageByFilter(filterMap map[string]string) ([]types.ImageSummary, error)
func ShowLiveContainerLogs ¶
func ShowLiveContainerLogs(containerID string)
func StopAndRemoveContainer ¶
Types ¶
type CreateContainerConfig ¶
type CreateContainerConfig struct { PortMapping []PortMapping MountsMap map[string]string ImageId string ContainerName string ContainerEnv []string ContainerNetwork string Traffic TrafficType Memory int64 PidsLimit int64 }
func (*CreateContainerConfig) TrafficType ¶
func (c *CreateContainerConfig) TrafficType() string
type Log ¶
func GetContainerStdLogs ¶
type PortMapping ¶
type TrafficType ¶
type TrafficType string
TrafficType is the protocol supported by container ingress and egress through the port mappings.
const ( TCPTraffic TrafficType = "tcp" UDPTraffic TrafficType = "udp" DefaultTraffic TrafficType = TCPTraffic )
func (TrafficType) String ¶
func (t TrafficType) String() string
String returns the string representation of the traffic type.
Click to show internal directories.
Click to hide internal directories.