cloudfoundry

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

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

func GetHostAliases() ([]string, error)

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

Jump to

Keyboard shortcuts

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