models

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	Prefix         string   `json:"prefix"`
	VPCID          string   `json:"vpc_id"`
	PublicSubnets  []string `json:"public_subnets"`
	PrivateSubnets []string `json:"private_subnets"`
}

type ApplyDeployRequest

type ApplyDeployRequest struct {
	DeployID  string `json:"deploy_id"`
	ServiceID string `json:"service_id"`
}

type ApplyDeployResponse

type ApplyDeployResponse struct {
	DeployID  string `json:"deploy_id"`
	ServiceID string `json:"service_id"`
}

type Certificate

type Certificate struct {
	CertificateARN  string `json:"certificate_arn"`
	CertificateID   string `json:"certificate_id"`
	CertificateName string `json:"certificate_name"`
}

type Container

type Container struct {
	ID         string            `json:"id"`
	Command    string            `json:"command"`
	Created    int64             `json:"created"`
	Image      string            `json:"image"`
	ImageID    string            `json:"image_id"`
	Labels     map[string]string `json:"labels"`
	Names      []string          `json:"names"`
	Ports      []Port            `json:"ports"`
	SizeRootFS int64             `json:"size_root_fs"`
	SizeRW     int64             `json:"size_rw"`
	State      string            `json:"state"`
	Status     string            `json:"status"`
}

type ContainerOverride

type ContainerOverride struct {
	ContainerName        string            `json:"container_name"`
	EnvironmentOverrides map[string]string `json:"environment_overrides"`
}

type CreateDeployRequest

type CreateDeployRequest struct {
	DeployName string `json:"deploy_name"`
	Dockerrun  []byte `json:"dockerrun"`
}

type CreateEnvironmentLinkRequest

type CreateEnvironmentLinkRequest struct {
	EnvironmentID string `json:"environment_id"`
}

type CreateEnvironmentRequest

type CreateEnvironmentRequest struct {
	EnvironmentName  string `json:"environment_name"`
	InstanceSize     string `json:"instance_size"`
	UserDataTemplate []byte `json:"user_data_template"`
	MinClusterCount  int    `json:"min_cluster_count"`
	OperatingSystem  string `json:"operating_system"`
	AMIID            string `json:"ami_id"`
}

type CreateLoadBalancerRequest

type CreateLoadBalancerRequest struct {
	LoadBalancerName string      `json:"load_balancer_name"`
	EnvironmentID    string      `json:"environment_id"`
	IsPublic         bool        `json:"is_public"`
	Ports            []Port      `json:"ports"`
	HealthCheck      HealthCheck `json:"health_check"`
}

type CreateServiceRequest

type CreateServiceRequest struct {
	DeployID       string `json:"deploy_id"`
	EnvironmentID  string `json:"environment_id"`
	LoadBalancerID string `json:"load_balancer_id"`
	ServiceName    string `json:"service_name"`
}

type CreateTaskRequest

type CreateTaskRequest struct {
	ContainerOverrides []ContainerOverride `json:"container_overrides"`
	DeployID           string              `json:"deploy_id"`
	EnvironmentID      string              `json:"environment_id"`
	TaskName           string              `json:"task_name"`
}

type Deploy

type Deploy struct {
	Dockerrun  []byte `json:"dockerrun"`
	DeployID   string `json:"deploy_id"`
	DeployName string `json:"deploy_name"`
	Version    string `json:"version"`
}

type DeploySummary

type DeploySummary struct {
	DeployID   string `json:"deploy_id"`
	DeployName string `json:"deploy_name"`
	Version    string `json:"version"`
}

type Deployment

type Deployment struct {
	Created       time.Time `json:"created"`
	DeployID      string    `json:"deploy_id"`
	DeployName    string    `json:"deploy_name"`
	DeployVersion string    `json:"deploy_version"`
	DesiredCount  int64     `json:"desired_count"`
	PendingCount  int64     `json:"pending_count"`
	RunningCount  int64     `json:"running_count"`
	Status        string    `json:"status"`
	Updated       time.Time `json:"updated"`
	DeploymentID  string    `json:"deployment_id"`
}

type Dockerrun added in v0.10.3

type Dockerrun struct {
	ContainerDefinitions []*ecs.ContainerDefinition `json:"containerDefinitions,omitempty"`
	Volumes              []*ecs.Volume              `json:"volumes,omitempty"`
	Family               string                     `json:"family,omitempty"`
	NetworkMode          string                     `json:"networkMode,omitempty"`
	TaskRoleARN          string                     `json:"taskRoleArn,omitempty"`
	PlacementConstraints []*ecs.PlacementConstraint `json:"placementConstraints,omitempty"`
}

type EntitiesWithTags

type EntitiesWithTags []*EntityWithTags

func (EntitiesWithTags) RemoveIf

func (e EntitiesWithTags) RemoveIf(f ewtFilter) EntitiesWithTags

func (EntitiesWithTags) WithKey

func (e EntitiesWithTags) WithKey(key string) EntitiesWithTags

removes each EntityWithTags object from e if e.Tags does not contain at least one tag with the specified key

func (EntitiesWithTags) WithValue

func (e EntitiesWithTags) WithValue(value string) EntitiesWithTags

removes each EntityWithTags object from e if e.Tags does not contain at least one tag with the specified value

type EntityWithTags

type EntityWithTags struct {
	EntityID   string `json:"entity_id"`
	EntityType string `json:"entity_type"`
	Tags       Tags   `json:"tags"`
}

type Environment

type Environment struct {
	EnvironmentID   string   `json:"environment_id"`
	EnvironmentName string   `json:"environment_name"`
	ClusterCount    int      `json:"cluster_count"`
	InstanceSize    string   `json:"instance_size"`
	SecurityGroupID string   `json:"security_group_id"`
	OperatingSystem string   `json:"operating_system"`
	AMIID           string   `json:"ami_id"`
	Links           []string `json:"links"`
}

type EnvironmentSummary

type EnvironmentSummary struct {
	EnvironmentID   string `json:"environment_id"`
	EnvironmentName string `json:"environment_name"`
	OperatingSystem string `json:"operating_system"`
}

type HealthCheck

type HealthCheck struct {
	Target             string `json:"target"`
	Interval           int    `json:"interval"`
	Timeout            int    `json:"timeout"`
	HealthyThreshold   int    `json:"healthy_threshold"`
	UnhealthyThreshold int    `json:"unhealthy_threshold"`
}

type Job

type Job struct {
	JobID       string            `json:"job_id"`
	TaskID      string            `json:"task_id"`
	JobStatus   int64             `json:"job_status"`
	JobType     int64             `json:"job_type"`
	Request     string            `json:"request"`
	TimeCreated time.Time         `json:"time_created"`
	Meta        map[string]string `json:"meta"`
}

type LoadBalancer

type LoadBalancer struct {
	EnvironmentID    string      `json:"environment_id"`
	EnvironmentName  string      `json:"environment_name"`
	HealthCheck      HealthCheck `json:"health_check"`
	IsPublic         bool        `json:"is_public"`
	LoadBalancerID   string      `json:"load_balancer_id"`
	LoadBalancerName string      `json:"load_balancer_name"`
	Ports            []Port      `json:"ports"`
	ServiceID        string      `json:"service_id"`
	ServiceName      string      `json:"service_name"`
	URL              string      `json:"url"`
}

type LoadBalancerSummary

type LoadBalancerSummary struct {
	LoadBalancerID   string `json:"load_balancer_id"`
	LoadBalancerName string `json:"load_balancer_name"`
	EnvironmentID    string `json:"environment_id"`
	EnvironmentName  string `json:"environment_name"`
}

type LogFile

type LogFile struct {
	Lines []string `json:"lines"`
	Name  string   `json:"name"`
}

type Port

type Port struct {
	CertificateName string `json:"certificate_name"`
	ContainerPort   int64  `json:"container_port"`
	HostPort        int64  `json:"host_port"`
	Protocol        string `json:"protocol"`
}

type ResourceConsumer

type ResourceConsumer struct {
	ID     string `json:"id"`
	Memory string `json:"memory"`
	Ports  []int  `json:"ports"`
}

type ResourceProvider

type ResourceProvider struct {
	ID              string `json:"id"`
	InUse           bool   `json:"in_use"`
	UsedPorts       []int  `json:"used_ports"`
	AvailableMemory string `json:"available_memory"`
}

type SQLVersion

type SQLVersion struct {
	Message []string `json:"message"`
	Version string   `json:"version"`
}

type ScaleServiceRequest

type ScaleServiceRequest struct {
	DesiredCount int64 `json:"desired_count"`
}

type ScalerRunInfo

type ScalerRunInfo struct {
	EnvironmentID           string             `json:"environment_id"`
	ScaleBeforeRun          int                `json:"scale_before_run"`
	DesiredScaleAfterRun    int                `json:"desired_scale_after_run"`
	ActualScaleAfterRun     int                `json:"actual_scale_after_run"`
	UnusedResourceProviders int                `json:"unused_resource_providers"`
	PendingResources        []ResourceConsumer `json:"pending_resources"`
	ResourceProviders       []ResourceProvider `json:"resource_providers"`
}

type ServerError

type ServerError struct {
	ErrorCode int64  `json:"error_code"`
	Message   string `json:"message"`
}

type Service

type Service struct {
	Deployments      []Deployment `json:"deployments"`
	DesiredCount     int64        `json:"desired_count"`
	EnvironmentID    string       `json:"environment_id"`
	EnvironmentName  string       `json:"environment_name"`
	LoadBalancerID   string       `json:"load_balancer_id"`
	LoadBalancerName string       `json:"load_balancer_name"`
	PendingCount     int64        `json:"pending_count"`
	RunningCount     int64        `json:"running_count"`
	ServiceID        string       `json:"service_id"`
	ServiceName      string       `json:"service_name"`
}

type ServiceSummary

type ServiceSummary struct {
	ServiceID       string `json:"service_id"`
	ServiceName     string `json:"service_name"`
	EnvironmentID   string `json:"environment_id"`
	EnvironmentName string `json:"environment_name"`
}

type Tag

type Tag struct {
	EntityID   string `json:"entity_id"`
	EntityType string `json:"entity_type"`
	Key        string `json:"key"`
	Value      string `json:"value"`
}

type Tags

type Tags []Tag

func (Tags) Any

func (t Tags) Any(f filter) bool

func (Tags) First

func (t Tags) First() (Tag, bool)

func (Tags) GroupByEntity

func (t Tags) GroupByEntity() EntitiesWithTags

func (Tags) RemoveIf

func (t Tags) RemoveIf(f filter) Tags

func (Tags) WithID

func (t Tags) WithID(entityID string) Tags

func (Tags) WithKey

func (t Tags) WithKey(key string) Tags

func (Tags) WithType

func (t Tags) WithType(entityType string) Tags

func (Tags) WithValue

func (t Tags) WithValue(value string) Tags

type Task

type Task struct {
	Copies          []TaskCopy `json:"copies"`
	DeployID        string     `json:"deploy_id"`
	DeployName      string     `json:"deploy_name"`
	DeployVersion   string     `json:"deploy_version"`
	EnvironmentID   string     `json:"environment_id"`
	EnvironmentName string     `json:"environment_name"`
	PendingCount    int64      `json:"pending_count"`
	RunningCount    int64      `json:"running_count"`
	TaskID          string     `json:"task_id"`
	TaskName        string     `json:"task_name"`
}

type TaskCopy

type TaskCopy struct {
	Details    []TaskDetail `json:"details"`
	Reason     string       `json:"reason"`
	TaskCopyID string       `json:"task_copy_id"`
}

type TaskDetail

type TaskDetail struct {
	ContainerName string `json:"container_name"`
	ExitCode      int64  `json:"exit_code"`
	LastStatus    string `json:"last_status"`
	Reason        string `json:"reason"`
}

type TaskSummary

type TaskSummary struct {
	TaskID          string `json:"task_id"`
	TaskName        string `json:"task_name"`
	EnvironmentID   string `json:"environment_id"`
	EnvironmentName string `json:"environment_name"`
}

type UpdateEnvironmentRequest

type UpdateEnvironmentRequest struct {
	MinClusterCount int `json:"min_cluster_count"`
}

type UpdateLoadBalancerHealthCheckRequest

type UpdateLoadBalancerHealthCheckRequest struct {
	HealthCheck HealthCheck `json:"health_check"`
}

type UpdateLoadBalancerPortsRequest

type UpdateLoadBalancerPortsRequest struct {
	Ports []Port `json:"ports"`
}

type UpdateServiceRequest

type UpdateServiceRequest struct {
	DeployID string `json:"deploy_id"`
}

Jump to

Keyboard shortcuts

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