ami

package
v2.4.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 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

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

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