Documentation ¶
Index ¶
- Variables
- func ContainerIDToEntityName(cid string) string
- func ContainerIDToTaggerEntityName(cid string) string
- func FindRancherIPInLabels(labels map[string]string) (string, bool)
- func GetTags(ctx context.Context) ([]string, error)
- func HostnameProvider(ctx context.Context, options map[string]interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotImplemented is the "not implemented" error given by `gopsutil` when an // OS doesn't support and API. Unfortunately it's in an internal package so // we can't import it so we'll copy it here. ErrNotImplemented = errors.New("not implemented yet") // ErrDockerNotAvailable is returned if Docker is not running on the current machine. // We'll use this when configuring the DockerUtil so we don't error on non-docker machines. ErrDockerNotAvailable = errors.New("docker not available") // ErrDockerNotCompiled is returned if docker support is not compiled in. // User classes should handle that case as gracefully as possible. ErrDockerNotCompiled = errors.New("docker support not compiled in") )
Functions ¶
func ContainerIDToEntityName ¶
ContainerIDToEntityName returns a prefixed entity name from a container ID
func ContainerIDToTaggerEntityName ¶
ContainerIDToTaggerEntityName returns a prefixed entity name from a container ID
func FindRancherIPInLabels ¶
FindRancherIPInLabels looks for the `io.rancher.container.ip` label and parses it. Rancher 1.x containers don't have docker networks as the orchestrator provides its own CNI.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.