amis

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// aggregate alias that shows all eks-optimized amis
	EKSAlias             = "eks"
	EKSAL2Alias          = "eks-al2"
	EKSUbuntuAlias       = "eks-ubuntu"
	EKSBottlerocketAlias = "eks-bottlerocket"
	EKSWindowsAlias      = "eks-windows"
)
View Source
const (
	AMD64Architecture = "amd64"
	ARM64Architecture = "arm64"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(ec2Client *ec2.Client, ssmClient *ssm.Client, eksClient *eks.Client) *Client

func (Client) EKSSupportedVersions

func (c Client) EKSSupportedVersions(ctx context.Context) ([]string, error)

func (Client) Get

func (c Client) Get(ctx context.Context, query Query) ([]ImageOutput, error)

func (Client) GetByAlias

func (c Client) GetByAlias(ctx context.Context, query Query) ([]ImageOutput, error)

func (Client) GetByID

func (c Client) GetByID(ctx context.Context, id ...string) ([]ImageOutput, error)

type ImageOutput added in v0.0.2

type ImageOutput struct {
	types.Image
	Alias         string
	Version       string
	K8sVersion    string
	OS            string
	GPUCompatible bool
}

type Query

type Query struct {
	Alias                string
	ID                   string
	AMIVersion           string
	Architecture         string
	K8sMajorMinorVersion string
	GPUCompatible        *bool
}

Jump to

Keyboard shortcuts

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