image

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LastUsedAnnotation = "image-distribution-operator.giantswarm.io/last-used"
)

Variables

This section is empty.

Functions

func GetImageKey

func GetImageKey(nodeImage *images.NodeImage) string

func GetImageProvider added in v0.5.0

func GetImageProvider(release string) (string, error)

GetImageProvider extracts the provider name from a release name (e.g., "vsphere-1.2.3" -> "vsphere")

func GetNodeImage

func GetNodeImage(imageName, providerName, releaseName string) *images.NodeImage

func GetNodeImageFromRelease

func GetNodeImageFromRelease(release *releases.Release, flatcarChannel string) (*images.NodeImage, error)

Types

type Client

type Client struct {
	client.Client
	Namespace string
	Release   string
}

Client holds the client and the namespace for node image objects

func New

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

New creates a new Client object

func (*Client) AddReleaseToNodeImageStatus

func (i *Client) AddReleaseToNodeImageStatus(ctx context.Context, image string) error

func (*Client) CreateImage

func (i *Client) CreateImage(ctx context.Context, image *images.NodeImage) error

func (*Client) DeleteImage

func (i *Client) DeleteImage(ctx context.Context, image string, retentionPeriod time.Duration) error

func (*Client) RemoveReleaseFromNodeImageStatus

func (i *Client) RemoveReleaseFromNodeImageStatus(ctx context.Context, image string) error

type Config

type Config struct {
	Client    client.Client
	Namespace string
	Release   string
}

Config is a struct that holds the configuration for the Client

Jump to

Keyboard shortcuts

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