Documentation
¶
Index ¶
- Constants
- Variables
- type ContainerLookupError
- type EventEmitter
- type Exchanger
- type GardenClient
- type GardenStore
- func (store *GardenStore) Create(logger lager.Logger, container executor.Container) (executor.Container, error)
- func (store *GardenStore) Destroy(logger lager.Logger, guid string) error
- func (store *GardenStore) GetFiles(logger lager.Logger, guid, sourcePath string) (io.ReadCloser, error)
- func (store *GardenStore) List(logger lager.Logger, tags executor.Tags) ([]executor.Container, error)
- func (store *GardenStore) Lookup(logger lager.Logger, guid string) (executor.Container, error)
- func (store *GardenStore) Metrics(logger lager.Logger, containerGuids []string) (map[string]executor.ContainerMetrics, error)
- func (store *GardenStore) Ping() error
- func (store *GardenStore) Run(logger lager.Logger, container executor.Container) error
- func (store *GardenStore) Stop(logger lager.Logger, guid string) error
- type InvalidJSONError
- type InvalidStateError
- type MalformedPropertyError
Constants ¶
View Source
const ( ContainerOwnerProperty = executorPropertyPrefix + "owner" ContainerStateProperty = executorPropertyPrefix + "state" ContainerAllocatedAtProperty = executorPropertyPrefix + "allocated-at" ContainerRootfsProperty = executorPropertyPrefix + "rootfs" ContainerLogProperty = executorPropertyPrefix + "log-config" ContainerMetricsConfigProperty = executorPropertyPrefix + "metrics-config" ContainerResultProperty = executorPropertyPrefix + "result" ContainerMemoryMBProperty = executorPropertyPrefix + "memory-mb" ContainerDiskMBProperty = executorPropertyPrefix + "disk-mb" ContainerCPUWeightProperty = executorPropertyPrefix + "cpu-weight" ContainerStartTimeoutProperty = executorPropertyPrefix + "start-timeout" )
Variables ¶
View Source
var ErrIPRangeConversionFailed = errors.New("failed to convert destination to ip range")
Functions ¶
This section is empty.
Types ¶
type ContainerLookupError ¶
func (ContainerLookupError) Error ¶
func (err ContainerLookupError) Error() string
type EventEmitter ¶
type Exchanger ¶
type GardenClient ¶
type GardenStore ¶
type GardenStore struct {
// contains filtered or unexported fields
}
func NewGardenStore ¶
func NewGardenStore( gardenClient garden.Client, containerOwnerName string, containerMaxCPUShares uint64, containerInodeLimit uint64, healthyMonitoringInterval time.Duration, unhealthyMonitoringInterval time.Duration, transformer *transformer.Transformer, clock clock.Clock, eventEmitter EventEmitter, healthCheckWorkPoolSize int, postSetupHook []string, postSetupUser string, ) (*GardenStore, error)
func (*GardenStore) Destroy ¶
func (store *GardenStore) Destroy(logger lager.Logger, guid string) error
func (*GardenStore) GetFiles ¶
func (store *GardenStore) GetFiles(logger lager.Logger, guid, sourcePath string) (io.ReadCloser, error)
func (*GardenStore) Metrics ¶
func (store *GardenStore) Metrics(logger lager.Logger, containerGuids []string) (map[string]executor.ContainerMetrics, error)
func (*GardenStore) Ping ¶
func (store *GardenStore) Ping() error
type InvalidJSONError ¶
func (InvalidJSONError) Error ¶
func (err InvalidJSONError) Error() string
type InvalidStateError ¶
type InvalidStateError struct {
State string
}
func (InvalidStateError) Error ¶
func (err InvalidStateError) Error() string
type MalformedPropertyError ¶
func (MalformedPropertyError) Error ¶
func (err MalformedPropertyError) Error() string
Click to show internal directories.
Click to hide internal directories.