Documentation ¶
Index ¶
- Constants
- func AddVolumes(targets awsutil.TargetList, skipList awsutil.TargetList, tags libtags.Tags, ...) error
- func CopyBootstrapImage(streamName string, targets awsutil.TargetList, skipList awsutil.TargetList, ...) error
- func DeleteResources(resources []Resource, logger log.Logger) error
- func DeleteTags(resources []Resource, tagKeys []string, logger log.Logger) error
- func DeleteTagsOnUnpackers(targets awsutil.TargetList, skipList awsutil.TargetList, name string, ...) error
- func ExpireResources(targets awsutil.TargetList, skipList awsutil.TargetList, logger log.Logger) error
- func ImportKeyPair(targets awsutil.TargetList, skipList awsutil.TargetList, keyName string, ...) error
- func ListStreams(targets awsutil.TargetList, skipList awsutil.TargetList, unpackerName string, ...) (map[string]struct{}, error)
- func PrepareUnpackers(streamName string, targets awsutil.TargetList, skipList awsutil.TargetList, ...) error
- func RemoveUnusedVolumes(targets awsutil.TargetList, skipList awsutil.TargetList, unpackerName string, ...) error
- func SetExclusiveTags(resources []Resource, tagKey string, tagValue string, logger log.Logger) error
- func SetTags(targets awsutil.TargetList, skipList awsutil.TargetList, name string, ...) error
- func StopIdleUnpackers(targets awsutil.TargetList, skipList awsutil.TargetList, name string, ...) error
- func TerminateInstances(targets awsutil.TargetList, skipList awsutil.TargetList, name string, ...) error
- type Image
- type Instance
- type InstanceResult
- func LaunchInstances(targets awsutil.TargetList, skipList awsutil.TargetList, ...) ([]InstanceResult, error)
- func LaunchInstancesForImages(images []Resource, ...) ([]InstanceResult, error)
- func StartInstances(targets awsutil.TargetList, skipList awsutil.TargetList, name string, ...) ([]InstanceResult, error)
- type PublishOptions
- type Resource
- type Results
- type TargetResult
- type TargetUnpackers
- type Unpacker
- type UnusedImagesResult
- type UsedImagesResult
Constants ¶
View Source
const ExpiresAtFormat = "2006-01-02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
func AddVolumes ¶
func CopyBootstrapImage ¶
func CopyBootstrapImage(streamName string, targets awsutil.TargetList, skipList awsutil.TargetList, marketplaceImage, marketplaceLoginName string, newImageTags libtags.Tags, unpackerName string, vpcSearchTags, subnetSearchTags, securityGroupSearchTags libtags.Tags, instanceType string, sshKeyName string, logger log.Logger) error
func DeleteTagsOnUnpackers ¶
func DeleteTagsOnUnpackers(targets awsutil.TargetList, skipList awsutil.TargetList, name string, tagKeys []string, logger log.Logger) error
func ExpireResources ¶
func ExpireResources(targets awsutil.TargetList, skipList awsutil.TargetList, logger log.Logger) error
func ImportKeyPair ¶
func ImportKeyPair(targets awsutil.TargetList, skipList awsutil.TargetList, keyName string, publicKey []byte, logger log.Logger) error
func ListStreams ¶
func ListStreams(targets awsutil.TargetList, skipList awsutil.TargetList, unpackerName string, logger log.Logger) (map[string]struct{}, error)
func PrepareUnpackers ¶
func PrepareUnpackers(streamName string, targets awsutil.TargetList, skipList awsutil.TargetList, name string, logger log.Logger) error
func RemoveUnusedVolumes ¶
func RemoveUnusedVolumes(targets awsutil.TargetList, skipList awsutil.TargetList, unpackerName string, logger log.Logger) error
func SetExclusiveTags ¶
func SetTags ¶
func SetTags(targets awsutil.TargetList, skipList awsutil.TargetList, name string, tags map[string]string, logger log.Logger) error
func StopIdleUnpackers ¶
func StopIdleUnpackers(targets awsutil.TargetList, skipList awsutil.TargetList, name string, idleTimeout time.Duration, logger log.Logger) error
func TerminateInstances ¶
func TerminateInstances(targets awsutil.TargetList, skipList awsutil.TargetList, name string, logger log.Logger) error
Types ¶
type Image ¶
type Image struct { awsutil.Target AmiId string AmiName string CreationDate string Description string Size uint // Size in GiB. Tags libtags.Tags }
func ListImages ¶
func ListImages(targets awsutil.TargetList, skipList awsutil.TargetList, searchTags, excludeSearchTags libtags.Tags, minImageAge time.Duration, logger log.DebugLogger) ([]Image, error)
type InstanceResult ¶
func LaunchInstances ¶
func LaunchInstances(targets awsutil.TargetList, skipList awsutil.TargetList, imageSearchTags, vpcSearchTags, subnetSearchTags, securityGroupSearchTags libtags.Tags, instanceType string, rootVolumeSize uint, sshKeyName string, tags map[string]string, replaceInstances bool, logger log.Logger) ([]InstanceResult, error)
func StartInstances ¶
func StartInstances(targets awsutil.TargetList, skipList awsutil.TargetList, name string, logger log.Logger) ( []InstanceResult, error)
func (InstanceResult) MarshalJSON ¶
func (v InstanceResult) MarshalJSON() ([]byte, error)
type PublishOptions ¶
type PublishOptions struct {
EnaSupport bool
}
type Results ¶
type Results []TargetResult
func Publish ¶
func Publish(imageServerAddress string, streamName string, imageLeafName string, minFreeBytes uint64, amiName string, tags map[string]string, targets awsutil.TargetList, skipList awsutil.TargetList, unpackerName string, s3Bucket string, s3Folder string, sharingAccountName string, publishOptions PublishOptions, logger log.Logger) (Results, error)
type TargetResult ¶
type TargetResult struct { awsutil.Target SnapshotId string S3Bucket string S3ManifestFile string AmiId string Size uint // Size in GiB. Error error }
func (TargetResult) MarshalJSON ¶
func (v TargetResult) MarshalJSON() ([]byte, error)
type TargetUnpackers ¶
func ListUnpackers ¶
func ListUnpackers(targets awsutil.TargetList, skipList awsutil.TargetList, unpackerName string, logger log.Logger) ( []TargetUnpackers, error)
type UnusedImagesResult ¶
func DeleteUnusedImages ¶
func DeleteUnusedImages(targets awsutil.TargetList, skipList awsutil.TargetList, searchTags, excludeSearchTags libtags.Tags, minImageAge time.Duration, logger log.DebugLogger) (UnusedImagesResult, error)
func ListUnusedImages ¶
func ListUnusedImages(targets awsutil.TargetList, skipList awsutil.TargetList, searchTags, excludeSearchTags libtags.Tags, minImageAge time.Duration, logger log.DebugLogger) (UnusedImagesResult, error)
type UsedImagesResult ¶
func ListUsedImages ¶
func ListUsedImages(targets awsutil.TargetList, skipList awsutil.TargetList, searchTags, excludeSearchTags libtags.Tags, logger log.DebugLogger) (UsedImagesResult, error)
Source Files ¶
- addVolumes.go
- api.go
- copyBootstrapImage.go
- delete.go
- expire.go
- importKeyPair.go
- iterators.go
- launchInstances.go
- libAws.go
- listImages.go
- listStreams.go
- listUnpackers.go
- marshal.go
- prepareUnpackers.go
- publish.go
- removeUnusedVolumes.go
- setExclusiveTags.go
- setTags.go
- startInstances.go
- stopIdleUnpackers.go
- terminateInstances.go
- unusedImages.go
- usedImages.go
Click to show internal directories.
Click to hide internal directories.