manager

package
v2.0.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2014 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TRACKER_HOST     = "http://tracker.shipyard-project.com"
	EngineHealthUp   = "up"
	EngineHealthDown = "down"
)

Variables

View Source
var (
	ErrAccountExists          = errors.New("account already exists")
	ErrAccountDoesNotExist    = errors.New("account does not exist")
	ErrRoleDoesNotExist       = errors.New("role does not exist")
	ErrServiceKeyDoesNotExist = errors.New("service key does not exist")
	ErrInvalidAuthToken       = errors.New("invalid auth token")
	ErrExtensionDoesNotExist  = errors.New("extension does not exist")
	ErrWebhookKeyDoesNotExist = errors.New("webhook key does not exist")
)

Functions

This section is empty.

Types

type EventHandler

type EventHandler struct {
	Manager *Manager
}

func (*EventHandler) Handle

func (h *EventHandler) Handle(e *citadel.Event) error

type Manager

type Manager struct {
	StoreKey string
	// contains filtered or unexported fields
}

func NewManager

func NewManager(addr string, database string, authKey string, version string, disableUsageInfo bool) (*Manager, error)

func (*Manager) Account

func (m *Manager) Account(username string) (*shipyard.Account, error)

func (*Manager) Accounts

func (m *Manager) Accounts() ([]*shipyard.Account, error)

func (*Manager) AddEngine

func (m *Manager) AddEngine(engine *shipyard.Engine) error

func (*Manager) Authenticate

func (m *Manager) Authenticate(username, password string) bool

func (*Manager) ChangePassword

func (m *Manager) ChangePassword(username, password string) error

func (*Manager) ClusterInfo

func (m *Manager) ClusterInfo() (*shipyard.ClusterInfo, error)

func (*Manager) ClusterManager

func (m *Manager) ClusterManager() *cluster.Cluster

func (*Manager) Container

func (m *Manager) Container(id string) (*citadel.Container, error)

func (*Manager) Containers

func (m *Manager) Containers(all bool) []*citadel.Container

func (*Manager) ContainersByImage

func (m *Manager) ContainersByImage(name string, all bool) ([]*citadel.Container, error)

func (*Manager) DeleteAccount

func (m *Manager) DeleteAccount(account *shipyard.Account) error

func (*Manager) DeleteExtension

func (m *Manager) DeleteExtension(id string) error

func (*Manager) DeleteRole

func (m *Manager) DeleteRole(role *shipyard.Role) error

func (*Manager) DeleteWebhookKey

func (m *Manager) DeleteWebhookKey(id string) error

func (*Manager) Destroy

func (m *Manager) Destroy(container *citadel.Container) error

func (*Manager) Engine

func (m *Manager) Engine(id string) *shipyard.Engine

func (*Manager) Engines

func (m *Manager) Engines() []*shipyard.Engine

func (*Manager) Events

func (m *Manager) Events(limit int) ([]*shipyard.Event, error)

func (*Manager) Extension

func (m *Manager) Extension(id string) (*shipyard.Extension, error)

func (*Manager) Extensions

func (m *Manager) Extensions() ([]*shipyard.Extension, error)

func (*Manager) IdenticalContainers

func (m *Manager) IdenticalContainers(container *citadel.Container, all bool) ([]*citadel.Container, error)

func (*Manager) Logs

func (m *Manager) Logs(container *citadel.Container, stdout bool, stderr bool) (io.ReadCloser, error)

func (*Manager) NewAuthToken

func (m *Manager) NewAuthToken(username string, userAgent string) (*shipyard.AuthToken, error)

func (*Manager) NewServiceKey

func (m *Manager) NewServiceKey(description string) (*shipyard.ServiceKey, error)

func (*Manager) NewWebhookKey

func (m *Manager) NewWebhookKey(image string) (*dockerhub.WebhookKey, error)

func (*Manager) PurgeEvents

func (m *Manager) PurgeEvents() error

func (*Manager) RedeployContainers

func (m *Manager) RedeployContainers(image string) error

func (*Manager) RegisterExtension

func (m *Manager) RegisterExtension(ext *shipyard.Extension) error

func (*Manager) RemoveEngine

func (m *Manager) RemoveEngine(id string) error

func (*Manager) RemoveServiceKey

func (m *Manager) RemoveServiceKey(key string) error

func (*Manager) Role

func (m *Manager) Role(name string) (*shipyard.Role, error)

func (*Manager) Roles

func (m *Manager) Roles() ([]*shipyard.Role, error)

func (*Manager) Run

func (m *Manager) Run(image *citadel.Image, count int, pull bool) ([]*citadel.Container, error)

func (*Manager) SaveAccount

func (m *Manager) SaveAccount(account *shipyard.Account) error

func (*Manager) SaveEngine

func (m *Manager) SaveEngine(engine *shipyard.Engine) error

func (*Manager) SaveEvent

func (m *Manager) SaveEvent(event *shipyard.Event) error

func (*Manager) SaveExtension

func (m *Manager) SaveExtension(ext *shipyard.Extension) error

func (*Manager) SaveRole

func (m *Manager) SaveRole(role *shipyard.Role) error

func (*Manager) SaveServiceKey

func (m *Manager) SaveServiceKey(key *shipyard.ServiceKey) error

func (*Manager) SaveWebhookKey

func (m *Manager) SaveWebhookKey(key *dockerhub.WebhookKey) error

func (*Manager) Scale

func (m *Manager) Scale(container *citadel.Container, count int) error

func (*Manager) ServiceKey

func (m *Manager) ServiceKey(key string) (*shipyard.ServiceKey, error)

func (*Manager) ServiceKeys

func (m *Manager) ServiceKeys() ([]*shipyard.ServiceKey, error)

func (*Manager) Store

func (m *Manager) Store() *sessions.CookieStore

func (*Manager) UnregisterExtension

func (m *Manager) UnregisterExtension(ext *shipyard.Extension) error

func (*Manager) VerifyAuthToken

func (m *Manager) VerifyAuthToken(username, token string) error

func (*Manager) VerifyServiceKey

func (m *Manager) VerifyServiceKey(key string) error

func (*Manager) WebhookKey

func (m *Manager) WebhookKey(key string) (*dockerhub.WebhookKey, error)

func (*Manager) WebhookKeys

func (m *Manager) WebhookKeys() ([]*dockerhub.WebhookKey, error)

Jump to

Keyboard shortcuts

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