container

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerConfig

type ContainerConfig struct {
	Id                string
	Name              string
	Options           *containerType.Config
	HostOptions       *containerType.HostConfig
	NetworkingOptions *network.NetworkingConfig
	PlatformOptions   *v1.Platform
}

Container represents a Docker container along with its configuration options.

func NewConfig

func NewConfig(name string) *ContainerConfig

NewConfig creates a new Container config instance with the specified name. The Container instance contains configuration options for creating a Docker container.

func (*ContainerConfig) SetContainerOptions

func (c *ContainerConfig) SetContainerOptions(setOFns ...containeroptions.SetOptionsFns)

SetOptions configures options for the Docker container. Use this method to set various container options using functions from the containeropt package.

func (*ContainerConfig) SetHostOptions

func (c *ContainerConfig) SetHostOptions(setHOFns ...hostoptions.SetHostOptFn)

SetHostOptions configures host-related options for the Docker container config. Use this method to set various host options using functions from the hostopt package.

func (*ContainerConfig) SetNetworkOptions

func (c *ContainerConfig) SetNetworkOptions(setNwOptFns ...networkoptions.SetContainerNetworkOptFn)

SetNetworkOptions configures network-related options for the Docker container. Use this method to set various network options using functions from the netopt package.

func (*ContainerConfig) SetPlatformOptions

func (c *ContainerConfig) SetPlatformOptions(setPOFns ...platformoptions.SetPlatformOptions)

func (*ContainerConfig) String

func (c *ContainerConfig) String() string

String returns the name of the Docker container.

Jump to

Keyboard shortcuts

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