Documentation
¶
Index ¶
- func CheckGroupExistsByName(ctx context.Context, groupName, accountID string) (bool, error)
- func Create(w http.ResponseWriter, r *http.Request)
- func Decrement(w http.ResponseWriter, r *http.Request)
- func Delete(w http.ResponseWriter, r *http.Request)
- func DeleteOrchestratorJob(ctx context.Context, group *ServiceGroup) error
- func Get(w http.ResponseWriter, r *http.Request)
- func Increment(w http.ResponseWriter, r *http.Request)
- func List(w http.ResponseWriter, r *http.Request)
- func ListInstances(w http.ResponseWriter, r *http.Request)
- func RemoveGroup(ctx context.Context, identifier string, accountID string) error
- func SaveGroup(ctx context.Context, accountID string, group *ServiceGroup) error
- func SubmitOrchestratorJob(ctx context.Context, group *ServiceGroup) error
- func Update(w http.ResponseWriter, r *http.Request)
- func UpdateGroup(ctx context.Context, uuid string, accountID string, group *ServiceGroup) error
- func UpdateOrchestratorJob(ctx context.Context, group *ServiceGroup) error
- type ActionableInput
- type OrchestratorJob
- type ServiceGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGroupExistsByName ¶ added in v0.2.8
func DeleteOrchestratorJob ¶
func DeleteOrchestratorJob(ctx context.Context, group *ServiceGroup) error
func ListInstances ¶
func ListInstances(w http.ResponseWriter, r *http.Request)
func SubmitOrchestratorJob ¶
func SubmitOrchestratorJob(ctx context.Context, group *ServiceGroup) error
func UpdateGroup ¶
func UpdateOrchestratorJob ¶
func UpdateOrchestratorJob(ctx context.Context, group *ServiceGroup) error
Types ¶
type ActionableInput ¶
type ActionableInput struct {
InstanceCount int `json:"instance_count"` //Number of instances to decrement by
MaxInstance int `json:"max_instance"` //Maximum number of instances allowed in group
MinInstance int `json:"min_instance"` //Minimum number of instances allowed in group
}
func (*ActionableInput) Validate ¶ added in v0.2.7
func (i *ActionableInput) Validate() error
type OrchestratorJob ¶
type OrchestratorJob struct {
Datacenter string
JobName string
DesiredCount int
PackageID string
ImageID string
ServiceGroupName string
TemplateID string
UserData string
FirewallEnabled bool
Networks []string
Tags map[string]string
MetaData map[string]string
TritonAccount string
TritonURL string
TritonKeyID string
TritonKeyMaterial string
}
type ServiceGroup ¶
type ServiceGroup struct {
ID string `json:"id"`
GroupName string `json:"group_name"`
TemplateID string `json:"template_id"`
Capacity int `json:"capacity"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
func FindGroupByID ¶
func FindGroupByName ¶
func FindGroups ¶
func FindGroups(ctx context.Context, accountID string) ([]*ServiceGroup, error)
Click to show internal directories.
Click to hide internal directories.