gardener

package
v0.0.0-...-499d384 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2015 License: MIT, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Containerizer

type Containerizer interface {
	Create(spec DesiredContainerSpec) error
	Run(handle string, spec garden.ProcessSpec, io garden.ProcessIO) (garden.Process, error)
	Destroy(handle string) error
}

type DesiredContainerSpec

type DesiredContainerSpec struct {
	Handle string

	// Path to the Root Filesystem for the container
	RootFSPath string

	// Path to a Network Namespace to enter
	NetworkPath string
}

type Gardener

type Gardener struct {
	// Containerizer runs and manages linux containers
	Containerizer Containerizer

	// UidGenerator generates unique ids for containers
	UidGenerator UidGenerator

	// Starter runs any needed start-up tasks (e.g. setting up cgroups)
	Starter

	// Networker creates a network for containers
	Networker Networker
}

Gardener orchestrates other components to implement the Garden API

func (*Gardener) BulkInfo

func (g *Gardener) BulkInfo(handles []string) (map[string]garden.ContainerInfoEntry, error)

func (*Gardener) BulkMetrics

func (g *Gardener) BulkMetrics(handles []string) (map[string]garden.ContainerMetricsEntry, error)

func (*Gardener) Capacity

func (g *Gardener) Capacity() (garden.Capacity, error)

func (*Gardener) Containers

func (g *Gardener) Containers(garden.Properties) ([]garden.Container, error)

func (*Gardener) Create

func (g *Gardener) Create(spec garden.ContainerSpec) (garden.Container, error)

func (*Gardener) Destroy

func (g *Gardener) Destroy(handle string) error

func (*Gardener) GraceTime

func (g *Gardener) GraceTime(garden.Container) time.Duration

func (*Gardener) Lookup

func (g *Gardener) Lookup(handle string) (garden.Container, error)

func (*Gardener) Ping

func (g *Gardener) Ping() error

func (*Gardener) Stop

func (g *Gardener) Stop()

type Networker

type Networker interface {
	Network(network string) (string, error)
}

type Starter

type Starter interface {
	Start() error
}

type UidGenerator

type UidGenerator interface {
	Generate() string
}

type UidGeneratorFunc

type UidGeneratorFunc func() string

func (UidGeneratorFunc) Generate

func (fn UidGeneratorFunc) Generate() string

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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