aws

package
Version: v28.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const TERMINATION_PATH = "/meta-data/spot/termination-time"

Variables

View Source
var EC2MetadataBaseURL = "http://169.254.169.254/latest"

Functions

func New

func New(runnercfg *cfg.RunnerConfig) (provider.Provider, error)

func Usage

func Usage() string

Types

type AWSProvider

type AWSProvider struct {
	// contains filtered or unexported fields
}

func (*AWSProvider) ConfigureRun

func (p *AWSProvider) ConfigureRun(state *run.State) error

func (*AWSProvider) SetProtocol

func (p *AWSProvider) SetProtocol(proto *protocol.Protocol)

func (*AWSProvider) UseCachedRun

func (p *AWSProvider) UseCachedRun(run *run.State) error

func (*AWSProvider) WorkerFinished

func (p *AWSProvider) WorkerFinished(state *run.State) error

func (*AWSProvider) WorkerStarted

func (p *AWSProvider) WorkerStarted(state *run.State) error

type InstanceIdentityDocument

type InstanceIdentityDocument struct {
	InstanceId       string `json:"instanceId"`
	ImageId          string `json:"imageId"`
	InstanceType     string `json:"instanceType"`
	Region           string `json:"region"`
	AvailabilityZone string `json:"availabilityZone"`
	PrivateIp        string `json:"privateIp"`
}

type MetadataService

type MetadataService interface {
	// contains filtered or unexported methods
}

type UserData

type UserData struct {
	WorkerPoolId         string           `json:"workerPoolId"`
	ProviderId           string           `json:"providerId"`
	RootURL              string           `json:"rootUrl"`
	WorkerGroup          string           `json:"workerGroup"`
	ProviderWorkerConfig *json.RawMessage `json:"workerConfig"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL