Documentation ¶
Index ¶
- Constants
- type App
- type Config
- type Manager
- func (am *Manager) Create(installer string, name string, instanceName string, persistence bool, ...) (*App, error)
- func (am *Manager) Get(id string) (App, error)
- func (am *Manager) GetAll() ([]App, error)
- func (am *Manager) GetByID(id string) (App, error)
- func (am *Manager) GetByIntance(instance string) ([]App, error)
- func (am *Manager) GetLogs(name string) ([]byte, error)
- func (am *Manager) GetStatus(name string) (string, error)
- func (am *Manager) Notify()
- func (am *Manager) Remove(id string) error
- func (am *Manager) Start(name string) error
- func (am *Manager) Stop(name string) error
Constants ¶
View Source
const ( TypeProtosc = "protosc" TypeProtosd = "protosd" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { // Public members Name string `json:"name"` ID string `json:"id"` InstallerRef string `json:"installer-ref"` InstanceID string `json:"instance-id"` DesiredStatus string `json:"desired-status"` IP net.IP `json:"ip"` Persistence bool `json:"persistence"` // contains filtered or unexported fields }
App represents the application state
func (*App) GetVersion ¶
GetVersion returns the version of an application
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager keeps track of all the apps
func CreateManager ¶
CreateManager returns a Manager, which implements the *AppManager interface
func (*Manager) Create ¶
func (am *Manager) Create(installer string, name string, instanceName string, persistence bool, installerParams map[string]string) (*App, error)
Create takes an image and creates an application, without starting it
func (*Manager) GetByIntance ¶
GetAll returns a copy of all the applications
func (*Manager) Notify ¶
func (am *Manager) Notify()
Refresh checks the db for new apps and deploys them if they belong to the current instance
Click to show internal directories.
Click to hide internal directories.