baremetal

package
v0.0.0-...-005948e Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Resource string = "resource"
	Shell    string = "shell"

	NodeInitShell   string = "nodeinit.sh"
	ComponentShell  string = "component.sh"
	SystemInfoShell string = "systeminfo.sh"
	ClusterInstall  string = "clusterinstall.sh"

	ClusterConfiguration string = "cluster-config.yaml"
	Install              string = "install.yaml"

	ClusterInitAction string = "init"
	ClusterJoinAction string = "join"
	ClusterController string = "controller"

	ResourcePackageUrl = "https://github.com/f-rambo/infrastructure/releases/download/v0.0.1/resource-v0.0.1.tar.gz"
)
View Source
var ARCH_MAP = map[string]string{
	"x86_64":  "amd64",
	"aarch64": "arm64",
}
View Source
var ArchMap = map[string]biz.NodeArchType{
	"x86_64":  biz.NodeArchType_AMD64,
	"aarch64": biz.NodeArchType_ARM64,
}
View Source
var GPUSpecMap = map[string]biz.NodeGPUSpec{
	"nvidia-a10":  biz.NodeGPUSpec_NVIDIA_A10,
	"nvidia-v100": biz.NodeGPUSpec_NVIDIA_V100,
	"nvidia-t4":   biz.NodeGPUSpec_NVIDIA_T4,
	"nvidia-p100": biz.NodeGPUSpec_NVIDIA_P100,
	"nvidia-p4":   biz.NodeGPUSpec_NVIDIA_P4,
}

Functions

This section is empty.

Types

type Baremetal

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

func NewBaremetal

func NewBaremetal(logger log.Logger) *Baremetal

func (*Baremetal) ApplyServices

func (b *Baremetal) ApplyServices(ctx context.Context, cluster *biz.Cluster) error

func (*Baremetal) GetNodesSystemInfo

func (b *Baremetal) GetNodesSystemInfo(ctx context.Context, cluster *biz.Cluster) error

func (*Baremetal) HandlerNodes

func (b *Baremetal) HandlerNodes(cluster *biz.Cluster) error

func (*Baremetal) Install

func (b *Baremetal) Install(ctx context.Context, cluster *biz.Cluster) error

func (*Baremetal) UnInstall

func (b *Baremetal) UnInstall(cluster *biz.Cluster) error

Jump to

Keyboard shortcuts

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