package
2.6.0+incompatible
Repository: https://github.com/intuit/ami-query.git
Documentation: pkg.go.dev

# Functions

CollectLaunchPermissions determines if launch permissions should be collected for each AMI.
FilterByImageID returns images with matching AMI ids.
FilterByLaunchPermission returns images that have the account id in its launch permissions.
FilterByOwnerID returns only the images owned by the provided owner ID.
FilterByTags returns images with matching tags.
HTTPClient sets the http.Client used for communicating with the AWS APIs.
Logger sets the go-kit logger.
MaxConcurrentRequests sets the maximum number of concurrent DescribeImageAttributes API requests for a given Owner.
MaxRequestRetries sets the maximum number of retries for the DescribeImageAttributes API request for a given AMI.
New returns a Cache with sensible defaults if none are provided.
NewFilter creates a new Filter.
NewImage returns a new Image from the provided ec2.Image and region.
Regions sets the AWS standard regions that will be polled for AMIs.
SortByState sorts by taking the CreationDate attribute, converting it to UNIX epoch, and adds it to the weighted value of the status tag.
StateTag sets the tag-key used to determine the state of an AMI.
TagFilter sets the tag-key used to filter the results of ec2:DescribeImages.
TTL sets the duration between cache updates.

# Constants

DefaultStateTag is the default tag-key for determining AMI state.

# Structs

Cache manages the images polled from AWS.
Filter is used to filter Image objects.
Image represents an Amazon Machine Image.

# Interfaces

Filterer is an interface used to apply specified filters on a slice of Image objects.
Option is the option interface.

# Type aliases

The FilterFunc type is an adapter to allow the use of ordinary functions as filter handlers.