Documentation ¶
Index ¶
- Variables
- func RunCustomDeployment(core *Core, component *models.Component) error
- type Action
- type Apps
- type CapacityService
- type CloudAccounts
- type Collection
- func (c *Collection) Create(m models.Model) error
- func (c *Collection) Delete(id *int64, m models.Model) error
- func (c *Collection) Get(id *int64, m models.Model) error
- func (c *Collection) GetWithIncludes(id *int64, m models.Model, includes []string) error
- func (c *Collection) Update(id *int64, oldM models.Model, m models.Model) error
- type Components
- type Core
- type DB
- func (db *DB) Create(m models.Model) error
- func (db *DB) Delete(m models.Model) error
- func (db *DB) Find(out interface{}, where ...interface{}) error
- func (db *DB) First(out interface{}, where ...interface{}) error
- func (db *DB) Preload(column string, conditions ...interface{}) *DB
- func (db *DB) Save(m models.Model) error
- func (db *DB) Where(query interface{}, args ...interface{}) *DB
- type Entrypoints
- func (c *Entrypoints) Create(m *models.Entrypoint) error
- func (c *Entrypoints) Delete(id *int64, m *models.Entrypoint) *Action
- func (c *Entrypoints) RemovePort(id *int64, m *models.Entrypoint, elbPort int) error
- func (c *Entrypoints) SetPort(id *int64, m *models.Entrypoint, elbPort int, instancePort int) error
- type InstanceObserver
- type Instances
- func (c *Instances) CreateVolumes(id *int64, m *models.Instance) error
- func (c *Instances) Delete(id *int64, m *models.Instance) *Action
- func (c *Instances) Log(m *models.Instance) (string, error)
- func (c *Instances) Start(id *int64, m *models.Instance) *Action
- func (c *Instances) Stop(id *int64, m *models.Instance) *Action
- type KubeScaler
- type Kubes
- type NodeObserver
- type NodeSynchronizer
- type Nodes
- type PodNotFoundError
- type Port
- type PrivateImageKeys
- type RecurringService
- type Releases
- type RepeatedActionError
- type Service
- type ServiceSet
- type Settings
- type Volumes
Constants ¶
This section is empty.
Variables ¶
View Source
var AWSMasterAMIs = map[string]string{
"ap-northeast-1": "ami-907fa690",
"ap-southeast-1": "ami-b4a79de6",
"eu-central-1": "ami-e8635bf5",
"eu-west-1": "ami-0fd0ae78",
"sa-east-1": "ami-f9f675e4",
"us-east-1": "ami-f57b8f9e",
"us-west-1": "ami-87b643c3",
"cn-north-1": "ami-3abf2203",
"ap-southeast-2": "ami-1bb9c221",
"us-west-2": "ami-33566d03",
}
Functions ¶
Types ¶
type Action ¶
type Action struct { Status *models.ActionStatus // contains filtered or unexported fields }
type Apps ¶
type Apps struct {
Collection
}
type CapacityService ¶
type CapacityService struct {
// contains filtered or unexported fields
}
func (*CapacityService) Perform ¶
func (s *CapacityService) Perform() error
type CloudAccounts ¶
type CloudAccounts struct {
Collection
}
func (*CloudAccounts) Create ¶
func (c *CloudAccounts) Create(m *models.CloudAccount) error
func (*CloudAccounts) Delete ¶
func (c *CloudAccounts) Delete(id *int64, m *models.CloudAccount) error
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func (*Collection) GetWithIncludes ¶
type Components ¶
type Components struct {
Collection
}
type Core ¶
type Core struct { Settings Log *logrus.Logger DB *DB CloudAccounts *CloudAccounts Kubes *Kubes Apps *Apps Components *Components Releases *Releases Instances *Instances Volumes *Volumes PrivateImageKeys *PrivateImageKeys Entrypoints *Entrypoints Nodes *Nodes Actions map[string]*Action // contains filtered or unexported fields }
func (*Core) Initialize ¶
func (c *Core) Initialize()
NOTE this used to be core.New(), but due to how we load in values from the cli package, I needed to first actually initialize a Core struct and then configure.
func (*Core) NewAPIClient ¶
func (*Core) SetResourceActionStatus ¶
type Entrypoints ¶
type Entrypoints struct {
Collection
}
func (*Entrypoints) Create ¶
func (c *Entrypoints) Create(m *models.Entrypoint) error
func (*Entrypoints) Delete ¶
func (c *Entrypoints) Delete(id *int64, m *models.Entrypoint) *Action
func (*Entrypoints) RemovePort ¶
func (c *Entrypoints) RemovePort(id *int64, m *models.Entrypoint, elbPort int) error
func (*Entrypoints) SetPort ¶
func (c *Entrypoints) SetPort(id *int64, m *models.Entrypoint, elbPort int, instancePort int) error
type InstanceObserver ¶
type InstanceObserver struct {
// contains filtered or unexported fields
}
func (*InstanceObserver) Perform ¶
func (s *InstanceObserver) Perform() error
type KubeScaler ¶
type KubeScaler struct {
// contains filtered or unexported fields
}
func (*KubeScaler) Scale ¶
func (s *KubeScaler) Scale() error
type Kubes ¶
type Kubes struct {
Collection
}
type NodeObserver ¶
type NodeObserver struct {
// contains filtered or unexported fields
}
func (*NodeObserver) Perform ¶
func (s *NodeObserver) Perform() error
type NodeSynchronizer ¶
type NodeSynchronizer struct {
// contains filtered or unexported fields
}
func (*NodeSynchronizer) Perform ¶
func (s *NodeSynchronizer) Perform() error
type Nodes ¶
type Nodes struct {
Collection
}
type PodNotFoundError ¶
type PodNotFoundError struct {
InstanceID *int64
}
func (*PodNotFoundError) Error ¶
func (err *PodNotFoundError) Error() string
type PrivateImageKeys ¶
type PrivateImageKeys struct {
Collection
}
func (*PrivateImageKeys) Create ¶
func (c *PrivateImageKeys) Create(m *models.PrivateImageKey) error
type RecurringService ¶
type RecurringService struct {
// contains filtered or unexported fields
}
func (*RecurringService) Run ¶
func (s *RecurringService) Run()
type Releases ¶
type Releases struct {
Collection
}
type RepeatedActionError ¶
type RepeatedActionError struct {
ResourceID string
}
func (*RepeatedActionError) Error ¶
func (err *RepeatedActionError) Error() string
type ServiceSet ¶
type ServiceSet struct {
// contains filtered or unexported fields
}
type Settings ¶ added in v0.8.2
type Settings struct { PsqlHost string `json:"psql_host"` PsqlDb string `json:"psql_db"` PsqlUser string `json:"psql_user"` PsqlPass string `json:"psql_pass"` HTTPPort string `json:"http_port"` HTTPBasicUser string `json:"http_basic_user"` HTTPBasicPass string `json:"http_basic_pass"` LogPath string `json:"log_file"` LogLevel string `json:"log_level"` }
type Volumes ¶
type Volumes struct {
Collection
}
Source Files ¶
- action.go
- apps.go
- capacity_service.go
- cloud_accounts.go
- collection.go
- components.go
- core.go
- custom_deployment.go
- db.go
- entrypoints.go
- instance_observer.go
- instances.go
- kubernetes_helpers.go
- kubes.go
- node_observer.go
- node_synchronizer.go
- nodes.go
- port.go
- private_image_keys.go
- recurring_service.go
- releases.go
- service_set.go
- volumes.go
Click to show internal directories.
Click to hide internal directories.