Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ContainerNameTagKey tag key for container tags ContainerNameTagKey = "container_name" // AppInstanceGUIDTagKey tag key for container tags AppInstanceGUIDTagKey = "app_instance_guid" // AppNameTagKey tag key for container tags AppNameTagKey = "app_name" // AppInstanceIndexTagKey tag key for container tags AppInstanceIndexTagKey = "app_instance_index" // AppGUIDTagKey tag key for container tags AppGUIDTagKey = "app_guid" )
Variables ¶
This section is empty.
Functions ¶
func GetHostAliases ¶
GetHostAliases returns the host aliases from Cloud Foundry
Types ¶
type GardenUtil ¶
type GardenUtil struct {
// contains filtered or unexported fields
}
GardenUtil wraps interactions with a local garden API.
func GetGardenUtil ¶
func GetGardenUtil() (*GardenUtil, error)
GetGardenUtil returns the global instance of the garden utility and initializes it first if needed
func (*GardenUtil) GetGardenContainers ¶
func (gu *GardenUtil) GetGardenContainers() ([]garden.Container, error)
GetGardenContainers returns the list of running containers from the local garden API
func (*GardenUtil) ListContainers ¶
func (gu *GardenUtil) ListContainers() ([]*containers.Container, error)
ListContainers returns the list of running containers and populates their metrics and metadata
func (*GardenUtil) UpdateContainerMetrics ¶
func (gu *GardenUtil) UpdateContainerMetrics(cList []*containers.Container) error
UpdateContainerMetrics updates the metric for a list of containers
type GardenUtilInterface ¶
type GardenUtilInterface interface { GetGardenContainers() ([]garden.Container, error) ListContainers() ([]*containers.Container, error) UpdateContainerMetrics(cList []*containers.Container) error }
GardenUtilInterface describes a wrapper for collecting local garden containers
Click to show internal directories.
Click to hide internal directories.