utils

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterFirstPodNetworkCIDR added in v0.8.0

func ClusterFirstPodNetworkCIDR(in *clusterv1.Cluster) string

func GetMachinesForCluster

func GetMachinesForCluster(ctx context.Context, c client.Client, cluster client.ObjectKey, filters ...collections.Func) (collections.Machines, error)

GetMachinesForCluster returns a list of machines that can be filtered or not. If no filter is supplied then all machines associated with the target cluster are returned.

func IsTerminalError

func IsTerminalError(err error) bool

IsTerminalError checks whether the error is a terminalError. These are returned to indicate non-retriable errors.

func TerminalError

func TerminalError(err error) error

TerminalError is used to indicate a non-retriable error.

Types

type OCIImage added in v0.8.0

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

func ParseOCIImage added in v0.8.0

func ParseOCIImage(image string) (*OCIImage, error)

ParseOCIImage parses an OCI image name.

func (*OCIImage) Alias added in v0.8.0

func (i *OCIImage) Alias() string

Alias returns the alias to use in Incus for pulling the image.

func (*OCIImage) Digest added in v0.8.0

func (i *OCIImage) Digest() string

Digest returns the image digest, if specified, or an empty string.

func (*OCIImage) Server added in v0.8.0

func (i *OCIImage) Server() string

Server returns the HTTPS server endpoint of the image registry.

func (*OCIImage) Tag added in v0.8.0

func (i *OCIImage) Tag() string

Tag returns the image tag, if specified, or an empty string.

Jump to

Keyboard shortcuts

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