provider

package
v0.0.0-...-8cfe922 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package provider defines the cloud backend for the `swarm` package.

Index

Constants

View Source
const (
	StatusCreated = "created"
	StatusDeleted = "deleted"
)

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type Provider

type Provider interface {
	CreateSwarm(name string, flags swarmtypes.CreateFlags, cloudconfigText string) (ProviderSwarm, error)
	GetSwarm(name string) (ProviderSwarm, error)
	GetSwarms() ([]ProviderSwarm, error)
}

Provider represents a system that can manage Swarm.

type ProviderSwarm

type ProviderSwarm interface {
	GetName() string
	GetType() string
	GetCreationTime() time.Time
	GetStatus() (string, string, error)
	GetPublicDNS() (string, error)
	GetPrivateDNS() (string, error)
	GetInstances() ([]swarmtypes.Instance, error)
	WaitUntil(string) error
	KillInstance(swarmtypes.Instance) error
	Destroy() error
}

ProviderSwarm represents a Swarm running in a Provider.

Directories

Path Synopsis
aws
Package aws implements a Provider implementation on AWS.
Package aws implements a Provider implementation on AWS.
sdk
Package sdk provides the API clients for the AWS SDK.
Package sdk provides the API clients for the AWS SDK.
types
Package types provides some general types used by the api clients of the provider/aws package for internal usage.
Package types provides some general types used by the api clients of the provider/aws package for internal usage.

Jump to

Keyboard shortcuts

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