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 ¶
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
type ToolFetchFunc ¶
type ToolFetchFunc func(osType params.OSType, osArch params.OSArch, tools []params.RunnerApplicationDownload) (params.RunnerApplicationDownload, error)
Click to show internal directories.
Click to hide internal directories.