Documentation
¶
Index ¶
- type ContainerConfig
- func (c *ContainerConfig) SetContainerOptions(setOFns ...containeroptions.SetOptionsFns)
- func (c *ContainerConfig) SetHostOptions(setHOFns ...hostoptions.SetHostOptFn)
- func (c *ContainerConfig) SetNetworkOptions(setNwOptFns ...networkoptions.SetContainerNetworkOptFn)
- func (c *ContainerConfig) SetPlatformOptions(setPOFns ...platformoptions.SetPlatformOptions)
- func (c *ContainerConfig) String() string
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.