spec

package
v0.0.0-...-4e0aa42 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerIDTagName = "garm-controller-id"
	PoolIDTagName       = "garm-pool-id"
)

Variables

View Source
var (
	DefaultToolFetch      ToolFetchFunc      = util.GetTools
	DefaultGetCloudconfig GetCloudConfigFunc = cloudconfig.GetCloudConfig
)

Functions

func Ptr

func Ptr[T any](v T) *T

Types

type GetCloudConfigFunc

type GetCloudConfigFunc func(bootstrapParams params.BootstrapInstance, tools params.RunnerApplicationDownload, runnerName string) (string, error)

type RunnerSpec

type RunnerSpec struct {
	ProjectID             string
	MetroCode             string
	HardwareReservationID *string
	Tools                 params.RunnerApplicationDownload
	Tags                  []string
	BootstrapParams       params.BootstrapInstance
}

func GetRunnerSpecFromBootstrapParams

func GetRunnerSpecFromBootstrapParams(data params.BootstrapInstance, controllerID string) (*RunnerSpec, error)

func (*RunnerSpec) ComposeUserData

func (r *RunnerSpec) ComposeUserData() (string, error)

func (*RunnerSpec) MergeExtraSpecs

func (r *RunnerSpec) MergeExtraSpecs(spec extraSpecs)

func (RunnerSpec) Validate

func (r RunnerSpec) Validate() error

Jump to

Keyboard shortcuts

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