Documentation ¶
Index ¶
- Constants
- Variables
- type EventHandler
- type Manager
- func (m *Manager) Account(username string) (*shipyard.Account, error)
- func (m *Manager) Accounts() ([]*shipyard.Account, error)
- func (m *Manager) AddEngine(engine *shipyard.Engine) error
- func (m *Manager) Authenticate(username, password string) bool
- func (m *Manager) ChangePassword(username, password string) error
- func (m *Manager) ClusterInfo() (*shipyard.ClusterInfo, error)
- func (m *Manager) ClusterManager() *cluster.Cluster
- func (m *Manager) Container(id string) (*citadel.Container, error)
- func (m *Manager) Containers(all bool) []*citadel.Container
- func (m *Manager) ContainersByImage(name string, all bool) ([]*citadel.Container, error)
- func (m *Manager) DeleteAccount(account *shipyard.Account) error
- func (m *Manager) DeleteExtension(id string) error
- func (m *Manager) DeleteRole(role *shipyard.Role) error
- func (m *Manager) DeleteWebhookKey(id string) error
- func (m *Manager) Destroy(container *citadel.Container) error
- func (m *Manager) Engine(id string) *shipyard.Engine
- func (m *Manager) Engines() []*shipyard.Engine
- func (m *Manager) Events(limit int) ([]*shipyard.Event, error)
- func (m *Manager) Extension(id string) (*shipyard.Extension, error)
- func (m *Manager) Extensions() ([]*shipyard.Extension, error)
- func (m *Manager) IdenticalContainers(container *citadel.Container, all bool) ([]*citadel.Container, error)
- func (m *Manager) Logs(container *citadel.Container, stdout bool, stderr bool) (io.ReadCloser, error)
- func (m *Manager) NewAuthToken(username string, userAgent string) (*shipyard.AuthToken, error)
- func (m *Manager) NewServiceKey(description string) (*shipyard.ServiceKey, error)
- func (m *Manager) NewWebhookKey(image string) (*dockerhub.WebhookKey, error)
- func (m *Manager) PurgeEvents() error
- func (m *Manager) RedeployContainers(image string) error
- func (m *Manager) RegisterExtension(ext *shipyard.Extension) error
- func (m *Manager) RemoveEngine(id string) error
- func (m *Manager) RemoveServiceKey(key string) error
- func (m *Manager) Role(name string) (*shipyard.Role, error)
- func (m *Manager) Roles() ([]*shipyard.Role, error)
- func (m *Manager) Run(image *citadel.Image, count int, pull bool) ([]*citadel.Container, error)
- func (m *Manager) SaveAccount(account *shipyard.Account) error
- func (m *Manager) SaveEngine(engine *shipyard.Engine) error
- func (m *Manager) SaveEvent(event *shipyard.Event) error
- func (m *Manager) SaveExtension(ext *shipyard.Extension) error
- func (m *Manager) SaveRole(role *shipyard.Role) error
- func (m *Manager) SaveServiceKey(key *shipyard.ServiceKey) error
- func (m *Manager) SaveWebhookKey(key *dockerhub.WebhookKey) error
- func (m *Manager) Scale(container *citadel.Container, count int) error
- func (m *Manager) ServiceKey(key string) (*shipyard.ServiceKey, error)
- func (m *Manager) ServiceKeys() ([]*shipyard.ServiceKey, error)
- func (m *Manager) Store() *sessions.CookieStore
- func (m *Manager) UnregisterExtension(ext *shipyard.Extension) error
- func (m *Manager) VerifyAuthToken(username, token string) error
- func (m *Manager) VerifyServiceKey(key string) error
- func (m *Manager) WebhookKey(key string) (*dockerhub.WebhookKey, error)
- func (m *Manager) WebhookKeys() ([]*dockerhub.WebhookKey, error)
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
}
type Manager ¶
type Manager struct { StoreKey string // contains filtered or unexported fields }
func NewManager ¶
func (*Manager) Authenticate ¶
func (*Manager) ChangePassword ¶
func (*Manager) ClusterInfo ¶
func (m *Manager) ClusterInfo() (*shipyard.ClusterInfo, error)
func (*Manager) ClusterManager ¶
func (*Manager) ContainersByImage ¶
func (*Manager) DeleteExtension ¶
func (*Manager) DeleteWebhookKey ¶
func (*Manager) IdenticalContainers ¶
func (*Manager) NewAuthToken ¶
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 (*Manager) RedeployContainers ¶
func (*Manager) RegisterExtension ¶
func (*Manager) RemoveEngine ¶
func (*Manager) RemoveServiceKey ¶
func (*Manager) SaveServiceKey ¶
func (m *Manager) SaveServiceKey(key *shipyard.ServiceKey) error
func (*Manager) SaveWebhookKey ¶
func (m *Manager) SaveWebhookKey(key *dockerhub.WebhookKey) 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 (*Manager) VerifyAuthToken ¶
func (*Manager) VerifyServiceKey ¶
func (*Manager) WebhookKey ¶
func (m *Manager) WebhookKey(key string) (*dockerhub.WebhookKey, error)
func (*Manager) WebhookKeys ¶
func (m *Manager) WebhookKeys() ([]*dockerhub.WebhookKey, error)
Click to show internal directories.
Click to hide internal directories.