util

package
v0.0.0-...-b2eb650 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package util implements utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchAlias

func ArchAlias(arch string) string

ArchAlias returns the alias of cpu's architecture. amd64: x86_64 arm64: aarch64

func GetInfraCluster

func GetInfraCluster(ctx context.Context, c client.Client, log logr.Logger, cluster *clusterv1.Cluster, controllerName string,
	dataDir string) (*scope.ClusterScope, error)

GetInfraCluster returns the infrastructure cluster object corresponding to a Cluster.

func GetKKMachineByName

func GetKKMachineByName(ctx context.Context, c client.Client, namespace, name string) (*infrav1.KKMachine, error)

GetKKMachineByName finds and return a Machine object using the specified params.

func GetOwnerKKMachine

func GetOwnerKKMachine(ctx context.Context, c client.Client, obj metav1.ObjectMeta) (*infrav1.KKMachine, error)

GetOwnerKKMachine returns the Machine object owning the given object.

Types

This section is empty.

Directories

Path Synopsis
Package filesystem implements the operation of the local file system.
Package filesystem implements the operation of the local file system.
Package hash implements hash utilities
Package hash implements hash utilities
Package osrelease is to parse a os release file content.
Package osrelease is to parse a os release file content.

Jump to

Keyboard shortcuts

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