util

package
v0.14.8 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: Apache-2.0 Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	StackDedicatedHost = "stackDedicatedHost"
	StackMacMachine    = "stackMacMachine"
)

Variables

This section is empty.

Functions

func IsMachineLocked

func IsMachineLocked(mCtx *mc.Context, h *mac.HostInformation) (bool, error)

func PickHost

func PickHost(mCtx *mc.Context, prefix string, his []*mac.HostInformation) (*mac.HostInformation, error)

We will get a list of hosts from the pool ordered by allocation time We will apply several rules on them to pick the right one - TODO Remove those with allocation time > 24 h as they may destroyed - if none left use them again - if more available pick in order the first without lock

func Release

func Release(mCtxArgs *mc.ContextArgs, hostID string) error

Release will use dedicated host ID as identifier

It will get the info for the dedicated host get backedURL (tag on the dh) get projectName (tag on the dh) load machine stack based on those params run release update on it

Types

This section is empty.

Jump to

Keyboard shortcuts

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