ami

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(input CopyInput) (*amiv1.AWSAMI, error)

Copy will create an AWSAMI from a CopyInput.

func LatestPatchRelease added in v1.5.0

func LatestPatchRelease(searchVersion string) (string, error)

LatestPatchRelease returns the latest patch release matching.

func List

func List(input ListInput) (*amiv1.AWSAMIList, error)

List will create an AWSAMIList from a given ListInput.

func PreviousMinorRelease added in v1.5.0

func PreviousMinorRelease(searchVersion string) (string, error)

PreviousMinorRelease returns the latest patch release for the previous version of Kubernetes, e.g. v1.19.1 returns v1.18.8 as of Sep 2020.

Types

type CopyInput

type CopyInput struct {
	SourceRegion      string
	DestinationRegion string
	OwnerID           string
	OperatingSystem   string
	KubernetesVersion string
	KmsKeyID          string
	DryRun            bool
	Encrypted         bool
	Log               logr.Logger
}

CopyInput defines input that can be copied to create an AWSAMI.

type ListInput

type ListInput struct {
	Region            string
	KubernetesVersion string
	OperatingSystem   string
	OwnerID           string
}

ListInput defines the specs required to construct an AWSAMIList.

Jump to

Keyboard shortcuts

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