Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoFilter is return when didn't narrow AMI ID result ErrNoFilter error = errors.New("no filter specified") // ErrSpecNotValid is return when aws/ami spec are is not valid ErrSpecNotValid error = errors.New("ami spec not valid") // ErrWrongServiceConnection is returned when failing to connect to AWS api ErrWrongServiceConnection error = errors.New("can't connect to aws api") )
View Source
var (
ErrWrongSortByValue error = errors.New("wrong value for key 'sortBy'")
)
Functions ¶
This section is empty.
Types ¶
type AMI ¶
type AMI struct { Spec Spec // contains filtered or unexported fields }
AMI contains information to manipuliate AWS AMI information
func (*AMI) ConditionFromSCM ¶
ConditionFromSCM is a placeholder to validate the condition interface
type ByCreationDateAsc ¶
Sort by CreationDate Asc ByAge implements sort.Interface based on the Age field.
func (ByCreationDateAsc) Len ¶
func (images ByCreationDateAsc) Len() int
func (ByCreationDateAsc) Less ¶
func (images ByCreationDateAsc) Less(i, j int) bool
func (ByCreationDateAsc) Swap ¶
func (images ByCreationDateAsc) Swap(i, j int)
type ByCreationDateDesc ¶
Sort by CreationDate Descendant ByAge implements sort.Interface based on the Age field.
func (ByCreationDateDesc) Len ¶
func (images ByCreationDateDesc) Len() int
func (ByCreationDateDesc) Less ¶
func (images ByCreationDateDesc) Less(i, j int) bool
func (ByCreationDateDesc) Swap ¶
func (images ByCreationDateDesc) Swap(i, j int)
type Spec ¶
type Spec struct { AccessKey string // AWs access key SecretKey string // AWS secret key Filters Filters // AMI ID filters Region string // AWS region to use when searching AMI Endpoint string // Endpoint to use when searching AMI DryRun bool SortBy string // Specify the order of AMI-ID that will be used to retrieve the last element }
Spec contains updatecli configuration provided by users
Source Files ¶
Click to show internal directories.
Click to hide internal directories.