images

package
v0.0.0-...-1b0671e Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright 2016 Capital One Services, LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldsMatch

func FieldsMatch(image *ec2.Image, fieldFilters map[string]*regexp.Regexp) bool

func ImagePlatform

func ImagePlatform(image *ec2.Image) string

func ImageVersion

func ImageVersion(image *ec2.Image) string

Types

type AmiFinder

type AmiFinder struct {
	providers.AWSApi
	DescribeImages DescribeImagesFunc
}

func NewAmiFinder

func NewAmiFinder() *AmiFinder

func NewAmiFinderFromProvider

func NewAmiFinderFromProvider(api *providers.AWSApi) *AmiFinder

func (*AmiFinder) FindImageId

func (a *AmiFinder) FindImageId(platform, version string) string

func (*AmiFinder) FindImageIds

func (a *AmiFinder) FindImageIds(platform, version string) []string

func (*AmiFinder) FindImages

func (a *AmiFinder) FindImages(platform, version string) []*ec2.Image

func (*AmiFinder) FindLatestImageId

func (a *AmiFinder) FindLatestImageId(platform string) string

type DescribeImagesFunc

type DescribeImagesFunc func(params *ec2.DescribeImagesInput) (*ec2.DescribeImagesOutput, error)

type ImageFinder

type ImageFinder interface {
	FindImageId(platform, version string) string
	FindLatestImageId(platform string) string
}

type Images

type Images []*ec2.Image

func (Images) Len

func (a Images) Len() int

func (Images) Less

func (a Images) Less(i, j int) bool

func (Images) Swap

func (a Images) Swap(i, j int)

type LazyImageFinder

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

func (*LazyImageFinder) FindImageId

func (l *LazyImageFinder) FindImageId(platform, version string) string

func (*LazyImageFinder) FindLatestImageId

func (l *LazyImageFinder) FindLatestImageId(platform string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL