docker

package
v7.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	// contains filtered or unexported fields
}

func (*Container) CommandInContainer

func (c *Container) CommandInContainer(commandLine ...string) *oshelpers.CommandWrapper

func (*Container) Delete

func (c *Container) Delete() error

func (*Container) FollowLogs

func (c *Container) FollowLogs(outputWriter io.Writer) error

func (*Container) GetID

func (c *Container) GetID() string

func (*Container) GetName

func (c *Container) GetName() string

func (*Container) Start

func (c *Container) Start() error

func (*Container) Stop

func (c *Container) Stop() error

type ContainerBuilder

type ContainerBuilder struct {
	// contains filtered or unexported fields
}

func (*ContainerBuilder) Build

func (cb *ContainerBuilder) Build() (*Container, error)

func (*ContainerBuilder) ContainerParams

func (cb *ContainerBuilder) ContainerParams(args ...string) *ContainerBuilder

func (*ContainerBuilder) EnvVar

func (cb *ContainerBuilder) EnvVar(name, value string) *ContainerBuilder

func (*ContainerBuilder) Name

func (cb *ContainerBuilder) Name(name string) *ContainerBuilder

func (*ContainerBuilder) Network

func (cb *ContainerBuilder) Network(network *Network) *ContainerBuilder

func (*ContainerBuilder) PublishPort

func (cb *ContainerBuilder) PublishPort(externalPort, internalPort int) *ContainerBuilder

func (*ContainerBuilder) Run

func (cb *ContainerBuilder) Run() error

func (*ContainerBuilder) SharedVolume

func (cb *ContainerBuilder) SharedVolume(hostDir, containerDir string) *ContainerBuilder

type Image

type Image struct {
	// contains filtered or unexported fields
}

func PullImage

func PullImage(name string) (*Image, error)

func (*Image) Delete

func (i *Image) Delete() error

func (*Image) IsCustomBuild

func (i *Image) IsCustomBuild() bool

func (*Image) NewContainerBuilder

func (i *Image) NewContainerBuilder() *ContainerBuilder

type ImageBuilder

type ImageBuilder struct {
	// contains filtered or unexported fields
}

func NewImageBuilder

func NewImageBuilder(workDir oshelpers.DirPath) *ImageBuilder

func (*ImageBuilder) Build

func (ib *ImageBuilder) Build() (*Image, error)

type Network

type Network struct {
	// contains filtered or unexported fields
}

func NewNetwork

func NewNetwork() (*Network, error)

func (*Network) Delete

func (n *Network) Delete() error

func (*Network) GetContainerIDs

func (n *Network) GetContainerIDs() ([]string, error)

func (*Network) GetName

func (n *Network) GetName() string

Jump to

Keyboard shortcuts

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