Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CapNetAdmin to start agent with NET_ADMIN capability // For more information on capabilities, please read this manpage: // http://man7.org/linux/man-pages/man7/capabilities.7.html CapNetAdmin = "NET_ADMIN" // CapSysAdmin to start agent with SYS_ADMIN capability // This is needed for the ECS Agent to invoke the setns call when // configuring the network namespace of the pause container // For more information on setns, please read this manpage: // http://man7.org/linux/man-pages/man2/setns.2.html CapSysAdmin = "SYS_ADMIN" // DefaultCgroupMountpoint is the default mount point for the cgroup subsystem DefaultCgroupMountpoint = "/sys/fs/cgroup" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client enables business logic for running the Agent inside Docker
func (*Client) IsAgentImageLoaded ¶
IsAgentImageLoaded returns true if the Agent image is loaded in Docker
func (*Client) RemoveExistingAgentContainer ¶
RemoveExistingAgentContainer remvoes any existing container named "ecs-agent" or returns without error if none is found
func (*Client) StartAgent ¶
StartAgent starts the Agent in Docker and returns the exit code from the container
Click to show internal directories.
Click to hide internal directories.