images

package
v16.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsTooManyCRsError

func IsTooManyCRsError(err error) bool

IsTooManyCRsError asserts tooManyCRsError.

Types

type Config

type Config struct {
	K8sClient k8sclient.Interface

	RegistryDomain string
}

type Images

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

func New

func New(c Config) (*Images, error)

func (*Images) AMI

func (i *Images) AMI(ctx context.Context, obj interface{}, flatcarReleaseVersion string) (string, error)

func (*Images) AWSCNI

func (i *Images) AWSCNI(ctx context.Context, obj interface{}) (string, error)

func (*Images) CC

func (i *Images) CC(ctx context.Context, obj interface{}) (k8scloudconfig.Images, error)

func (*Images) Versions

func (i *Images) Versions(ctx context.Context, obj interface{}) (k8scloudconfig.Versions, error)

type Interface

type Interface interface {
	// AMI looks up necessary information to compute the relevant EC2 AMI for the
	// given object's region and release version. Paramter obj must be a
	// metav1.Object and contain the Giant Swarm specific cluster ID label and
	// release version label.
	AMI(ctx context.Context, obj interface{}, flatcarReleaseVersion string) (string, error)
	// AWSCNI looks up aws-cni version to compute the relevant Cloud Config
	// images for the given object's release version. Paramter obj must be a
	// metav1.Object and contain the Giant Swarm specific release version label.
	AWSCNI(ctx context.Context, obj interface{}) (string, error)
	// CC looks up necessary information to compute the relevant Cloud Config
	// images for the given object's release version. Paramter obj must be a
	// metav1.Object and contain the Giant Swarm specific release version label.
	CC(ctx context.Context, obj interface{}) (k8scloudconfig.Images, error)
	// Versions looks up necessary information to compute the relevant Cloud Config
	// images versions for the given object's release version. Paramter obj must be a
	// metav1.Object and contain the Giant Swarm specific release version label.
	Versions(ctx context.Context, obj interface{}) (k8scloudconfig.Versions, error)
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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