Documentation
¶
Index ¶
- Constants
- Variables
- type CfsslCertificateBundle
- type CfsslError
- type CronJob
- type CronJobs
- type ECSServices
- type Formation
- type FormationParameter
- type FormationResource
- type Provider
- func (p *Provider) ApiError(err error) error
- func (p *Provider) AppCancel(name string) error
- func (p *Provider) AppCreate(name string, opts structs.AppCreateOptions) (*structs.App, error)
- func (p *Provider) AppDelete(name string) error
- func (p *Provider) AppGet(name string) (*structs.App, error)
- func (p *Provider) AppList() (structs.Apps, error)
- func (p *Provider) AppLogs(app string, opts structs.LogsOptions) (io.ReadCloser, error)
- func (p *Provider) AppMetrics(name string, opts structs.MetricsOptions) (structs.Metrics, error)
- func (p *Provider) AppUpdate(app string, opts structs.AppUpdateOptions) error
- func (p *Provider) BuildCreate(app, url string, opts structs.BuildCreateOptions) (*structs.Build, error)
- func (p *Provider) BuildExport(app, id string, w io.Writer) error
- func (p *Provider) BuildGet(app, id string) (*structs.Build, error)
- func (p *Provider) BuildImport(app string, r io.Reader) (*structs.Build, error)
- func (p *Provider) BuildList(app string, opts structs.BuildListOptions) (structs.Builds, error)
- func (p *Provider) BuildLogs(app, id string, opts structs.LogsOptions) (io.ReadCloser, error)
- func (p *Provider) BuildUpdate(app, id string, opts structs.BuildUpdateOptions) (*structs.Build, error)
- func (p *Provider) CapacityGet() (*structs.Capacity, error)
- func (p *Provider) CertificateApply(app, service string, port int, id string) error
- func (p *Provider) CertificateCreate(pub, key string, opts structs.CertificateCreateOptions) (*structs.Certificate, error)
- func (p *Provider) CertificateDelete(id string) error
- func (p *Provider) CertificateGenerate(domains []string) (*structs.Certificate, error)
- func (p *Provider) CertificateList() (structs.Certificates, error)
- func (p *Provider) Context() context.Context
- func (p *Provider) CreateDBSnapshot(app, resource, snapshot string) error
- func (p *Provider) DeleteDB(resource string) error
- func (p *Provider) EventSend(action string, opts structs.EventSendOptions) error
- func (p *Provider) FilesDelete(app, pid string, files []string) error
- func (p *Provider) FilesDownload(app, pid string, file string) (io.Reader, error)
- func (p *Provider) FilesUpload(app, pid string, r io.Reader) error
- func (p *Provider) IndexDiff(index *structs.Index) ([]string, error)
- func (p *Provider) IndexDownload(index *structs.Index, dir string) error
- func (p *Provider) IndexUpload(hash string, data []byte) error
- func (p *Provider) Initialize(opts structs.ProviderOptions) error
- func (p *Provider) InstanceKeyroll() error
- func (p *Provider) InstanceList() (structs.Instances, error)
- func (p *Provider) InstanceShell(id string, rw io.ReadWriter, opts structs.InstanceShellOptions) (int, error)
- func (p *Provider) InstanceTerminate(id string) error
- func (p *Provider) IsDBSnapshotComplete(snapshot string) (bool, error)
- func (p *Provider) IsTest() bool
- func (p *Provider) ObjectDelete(app, key string) error
- func (p *Provider) ObjectExists(app, key string) (bool, error)
- func (p *Provider) ObjectFetch(app, key string) (io.ReadCloser, error)
- func (p *Provider) ObjectList(app, prefix string) ([]string, error)
- func (p *Provider) ObjectStore(app, key string, r io.Reader, opts structs.ObjectStoreOptions) (*structs.Object, error)
- func (p *Provider) ProcessExec(app, pid, command string, rw io.ReadWriter, opts structs.ProcessExecOptions) (int, error)
- func (p *Provider) ProcessGet(app, pid string) (*structs.Process, error)
- func (p *Provider) ProcessList(app string, opts structs.ProcessListOptions) (structs.Processes, error)
- func (p *Provider) ProcessLogs(app, pid string, opts structs.LogsOptions) (io.ReadCloser, error)
- func (p *Provider) ProcessRun(app, service string, opts structs.ProcessRunOptions) (*structs.Process, error)
- func (p *Provider) ProcessStop(app, pid string) error
- func (p *Provider) ProcessWait(app, pid string) (int, error)
- func (p *Provider) Proxy(host string, port int, rw io.ReadWriter, opts structs.ProxyOptions) error
- func (p *Provider) RackParamsToSync(release string, params map[string]string) map[string]string
- func (p *Provider) RegistryAdd(server, username, password string) (*structs.Registry, error)
- func (p *Provider) RegistryList() (structs.Registries, error)
- func (p *Provider) RegistryRemove(server string) error
- func (p *Provider) ReleaseCreate(app string, opts structs.ReleaseCreateOptions) (*structs.Release, error)
- func (p *Provider) ReleaseGet(app, id string) (*structs.Release, error)
- func (p *Provider) ReleaseList(app string, opts structs.ReleaseListOptions) (structs.Releases, error)
- func (p *Provider) ReleasePromote(app, id string, opts structs.ReleasePromoteOptions) error
- func (p *Provider) ResourceDefaults(app, resource string) (map[string]string, error)
- func (p *Provider) ResourceGet(app, name string) (*structs.Resource, error)
- func (p *Provider) ResourceList(app string) (structs.Resources, error)
- func (p *Provider) ServiceList(app string) (structs.Services, error)
- func (p *Provider) ServiceMetrics(app, name string, opts structs.MetricsOptions) (structs.Metrics, error)
- func (p *Provider) ServiceRestart(app, name string) error
- func (p *Provider) ServiceUpdate(app, name string, opts structs.ServiceUpdateOptions) error
- func (p *Provider) SetDBDeletionProtectionAndCreateSnapShot(app, resource, snapshot string) (string, error)
- func (p *Provider) SettingDelete(name string) error
- func (p *Provider) SettingExists(name string) (bool, error)
- func (p *Provider) SettingGet(name string) (string, error)
- func (p *Provider) SettingList(opts structs.SettingListOptions) ([]string, error)
- func (p *Provider) SettingPut(name, value string) error
- func (p *Provider) Sync(name string) error
- func (p *Provider) SyncInstancesIpInSecurityGroup() error
- func (p *Provider) SystemDecrypt(data []byte) ([]byte, error)
- func (p *Provider) SystemEncrypt(data []byte) ([]byte, error)
- func (p *Provider) SystemGet() (*structs.System, error)
- func (p *Provider) SystemInstall(w io.Writer, opts structs.SystemInstallOptions) (string, error)
- func (p *Provider) SystemJwtSignKey() (string, error)
- func (p *Provider) SystemJwtSignKeyRotate() (string, error)
- func (p *Provider) SystemLogs(opts structs.LogsOptions) (io.ReadCloser, error)
- func (p *Provider) SystemMetrics(opts structs.MetricsOptions) (structs.Metrics, error)
- func (p *Provider) SystemProcesses(opts structs.SystemProcessesOptions) (structs.Processes, error)
- func (p *Provider) SystemReleases() (structs.Releases, error)
- func (p *Provider) SystemResourceCreate(kind string, opts structs.ResourceCreateOptions) (*structs.Resource, error)
- func (p *Provider) SystemResourceDelete(name string) error
- func (p *Provider) SystemResourceGet(name string) (*structs.Resource, error)
- func (p *Provider) SystemResourceLink(name, app string) (*structs.Resource, error)
- func (p *Provider) SystemResourceList() (structs.Resources, error)
- func (p *Provider) SystemResourceTypes() (structs.ResourceTypes, error)
- func (p *Provider) SystemResourceUnlink(name, app string) (*structs.Resource, error)
- func (p *Provider) SystemResourceUpdate(name string, opts structs.ResourceUpdateOptions) (*structs.Resource, error)
- func (p *Provider) SystemUninstall(name string, w io.Writer, opts structs.SystemUninstallOptions) error
- func (p *Provider) SystemUpdate(opts structs.SystemUpdateOptions) error
- func (p *Provider) WithContext(ctx context.Context) structs.Provider
- func (p *Provider) Workers() error
Constants ¶
const ( ConvoxJwtSsmKeyName = "convox-jwt-key" ParameterNameTags = "Tags" )
const CONVOX_INSTANCE_MANAGED = "CONVOX_INSTANCE"
const StatusCodePrefix = "F1E49A85-0AD7-4AEF-A618-C249C6E6568D:"
StatusCodePrefix is sent to the client to let it know the exit code is coming next
Variables ¶
var (
IndexOperationConcurrency = 128
)
var Logger = logger.New("ns=provider.aws")
Logger is a package-wide logger
Functions ¶
This section is empty.
Types ¶
type CfsslCertificateBundle ¶
type CfsslCertificateBundle struct {
Bundle string `json:"bundle"`
}
type CfsslError ¶
func (CfsslError) Error ¶
func (e CfsslError) Error() string
type CronJob ¶
type CronJob struct {
Name string `yaml:"name"`
Schedule string `yaml:"schedule"`
Command string `yaml:"command"`
Service *manifest1.Service
App *structs.App
}
func NewCronJobFromLabel ¶
type ECSServices ¶
type Formation ¶
type Formation struct {
Parameters map[string]FormationParameter
Resources map[string]FormationResource
}
type FormationParameter ¶
type FormationResource ¶
type Provider ¶
type Provider struct {
Region string
Endpoint string
AsgSpot string
AsgStandard string
AvailabilityZones string
BuildCluster string
ClientId string
CloudformationTopic string
Cluster string
CustomEncryptionKey string
Development bool
DynamoBuilds string
DynamoReleases string
DockerTLS *structs.TLSPemCertBytes
EcsPollInterval int
EncryptionKey string
Fargate bool
HighAvailability bool
InstancesIpToIncludInWhiteListing string
Internal bool
InternalOnly bool
ELBLogBucket string
LogBucket string
LogDriver string
NotificationTopic string
OnDemandMinCount int
Password string
Private bool
PrivateBuild bool
ApiBalancerSecurity string
Rack string
RackApiServiceName string
SecurityGroup string
SettingsBucket string
SshKey string
SpotInstances bool
Subnets string
SubnetsPrivate string
StackId string
SyslogDestination string
SyslogFormat string
Version string
Vpc string
VpcCidr string
WhiteListSpecified bool
MaintainTimerState bool
Metrics *metrics.Metrics
SkipCache bool
CloudWatch cloudwatchiface.CloudWatchAPI
// contains filtered or unexported fields
}
func (*Provider) AppLogs ¶
func (p *Provider) AppLogs(app string, opts structs.LogsOptions) (io.ReadCloser, error)
func (*Provider) AppMetrics ¶
func (*Provider) AppUpdate ¶
func (p *Provider) AppUpdate(app string, opts structs.AppUpdateOptions) error
func (*Provider) BuildCreate ¶
func (*Provider) BuildExport ¶
BuildExport exports a build artifact
func (*Provider) BuildImport ¶
BuildImport imports a build artifact
func (*Provider) BuildList ¶
BuildList returns a list of the latest builds, with the length specified in limit
func (*Provider) BuildLogs ¶
func (p *Provider) BuildLogs(app, id string, opts structs.LogsOptions) (io.ReadCloser, error)
BuildLogs streams build logs for running and finished builds.
func (*Provider) BuildUpdate ¶
func (*Provider) CapacityGet ¶
CapacityGet returns individual server and total rack resources
func (*Provider) CertificateApply ¶
func (*Provider) CertificateCreate ¶
func (p *Provider) CertificateCreate(pub, key string, opts structs.CertificateCreateOptions) (*structs.Certificate, error)
func (*Provider) CertificateDelete ¶
func (*Provider) CertificateGenerate ¶
func (p *Provider) CertificateGenerate(domains []string) (*structs.Certificate, error)
func (*Provider) CertificateList ¶
func (p *Provider) CertificateList() (structs.Certificates, error)
func (*Provider) CreateDBSnapshot ¶
func (*Provider) EventSend ¶
func (p *Provider) EventSend(action string, opts structs.EventSendOptions) error
func (*Provider) FilesDelete ¶
func (*Provider) FilesDownload ¶
func (*Provider) IndexDownload ¶
func (*Provider) Initialize ¶
func (p *Provider) Initialize(opts structs.ProviderOptions) error
func (*Provider) InstanceKeyroll ¶
func (*Provider) InstanceShell ¶
func (p *Provider) InstanceShell(id string, rw io.ReadWriter, opts structs.InstanceShellOptions) (int, error)
func (*Provider) InstanceTerminate ¶
func (*Provider) IsDBSnapshotComplete ¶
func (*Provider) ObjectDelete ¶
func (*Provider) ObjectFetch ¶
func (p *Provider) ObjectFetch(app, key string) (io.ReadCloser, error)
ObjectFetch fetches an Object
func (*Provider) ObjectStore ¶
func (p *Provider) ObjectStore(app, key string, r io.Reader, opts structs.ObjectStoreOptions) (*structs.Object, error)
ObjectStore stores an Object
func (*Provider) ProcessExec ¶
func (p *Provider) ProcessExec(app, pid, command string, rw io.ReadWriter, opts structs.ProcessExecOptions) (int, error)
ProcessExec runs a command in an existing Process
func (*Provider) ProcessGet ¶
ProcessGet returns the specified process for an app
func (*Provider) ProcessList ¶
func (p *Provider) ProcessList(app string, opts structs.ProcessListOptions) (structs.Processes, error)
ProcessList returns a list of processes for an app
func (*Provider) ProcessLogs ¶
func (p *Provider) ProcessLogs(app, pid string, opts structs.LogsOptions) (io.ReadCloser, error)
func (*Provider) ProcessRun ¶
func (p *Provider) ProcessRun(app, service string, opts structs.ProcessRunOptions) (*structs.Process, error)
ProcessRun runs a new Process
func (*Provider) ProcessStop ¶
ProcessStop stops a Process
func (*Provider) Proxy ¶
func (p *Provider) Proxy(host string, port int, rw io.ReadWriter, opts structs.ProxyOptions) error
func (*Provider) RackParamsToSync ¶
func (*Provider) RegistryAdd ¶
func (*Provider) RegistryList ¶
func (p *Provider) RegistryList() (structs.Registries, error)
func (*Provider) RegistryRemove ¶
func (*Provider) ReleaseCreate ¶
func (*Provider) ReleaseGet ¶
ReleaseGet returns a release
func (*Provider) ReleaseList ¶
func (p *Provider) ReleaseList(app string, opts structs.ReleaseListOptions) (structs.Releases, error)
ReleaseList returns a list of the latest releases, with the length specified in limit
func (*Provider) ReleasePromote ¶
func (p *Provider) ReleasePromote(app, id string, opts structs.ReleasePromoteOptions) error
ReleasePromote promotes a release
func (*Provider) ResourceDefaults ¶
func (*Provider) ResourceGet ¶
func (*Provider) ResourceList ¶
func (*Provider) ServiceMetrics ¶
func (*Provider) ServiceRestart ¶
func (*Provider) ServiceUpdate ¶
func (p *Provider) ServiceUpdate(app, name string, opts structs.ServiceUpdateOptions) error
func (*Provider) SetDBDeletionProtectionAndCreateSnapShot ¶
func (*Provider) SettingDelete ¶
func (*Provider) SettingList ¶
func (p *Provider) SettingList(opts structs.SettingListOptions) ([]string, error)
func (*Provider) SettingPut ¶
func (*Provider) SyncInstancesIpInSecurityGroup ¶
func (*Provider) SystemInstall ¶
func (*Provider) SystemJwtSignKey ¶
func (*Provider) SystemJwtSignKeyRotate ¶
func (*Provider) SystemLogs ¶
func (p *Provider) SystemLogs(opts structs.LogsOptions) (io.ReadCloser, error)
SystemLogs streams logs for the Rack
func (*Provider) SystemMetrics ¶
func (*Provider) SystemProcesses ¶
func (*Provider) SystemReleases ¶
SystemReleases lists the latest releases of the rack
func (*Provider) SystemResourceCreate ¶
func (p *Provider) SystemResourceCreate(kind string, opts structs.ResourceCreateOptions) (*structs.Resource, error)
ResourceCreate creates a new resource. Note: see also createResource() below.
func (*Provider) SystemResourceDelete ¶
ResourceDelete deletes a resource.
func (*Provider) SystemResourceGet ¶
ResourceGet retrieves a resource.
func (*Provider) SystemResourceLink ¶
ResourceLink creates a link between the provided app and resource.
func (*Provider) SystemResourceList ¶
ResourceList lists the resources.
func (*Provider) SystemResourceTypes ¶
func (p *Provider) SystemResourceTypes() (structs.ResourceTypes, error)
func (*Provider) SystemResourceUnlink ¶
ResourceUnlink removes a link between the provided app and resource.
func (*Provider) SystemResourceUpdate ¶
func (p *Provider) SystemResourceUpdate(name string, opts structs.ResourceUpdateOptions) (*structs.Resource, error)
ResourceUpdate updates a resource with new params.
func (*Provider) SystemUninstall ¶
func (*Provider) SystemUpdate ¶
func (p *Provider) SystemUpdate(opts structs.SystemUpdateOptions) error
Source Files
¶
- apps.go
- aws.go
- builds.go
- builds_logs.go
- capacity.go
- certificates.go
- docker.go
- error.go
- event.go
- files.go
- helpers.go
- index.go
- instances.go
- keys.go
- metrics.go
- object.go
- processes.go
- proxy.go
- registries.go
- releases.go
- resource.go
- service.go
- setting.go
- snapshot.go
- system.go
- telemetry.go
- template.go
- workers.go
- workers_cleanup.go
- workers_events.go
- workers_heartbeat.go
- workers_monitor.go
- workers_spotreplace.go