agentsetup

package
v0.0.0-...-3511abf Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SecureScheme = "https"

SecureScheme is the scheme used for the master's HTTPS port.

Variables

This section is empty.

Functions

func MustMakeAgentSetupScript

func MustMakeAgentSetupScript(config AgentSetupScriptConfig) []byte

MustMakeAgentSetupScript generates the agent setup script.

Types

type AgentSetupScriptConfig

type AgentSetupScriptConfig struct {
	MasterHost                   string
	MasterPort                   string
	MasterCertName               string
	StartupScriptBase64          string
	ContainerStartupScriptBase64 string
	MasterCertBase64             string
	ConfigFileBase64             string
	SlotType                     device.Type
	AgentDockerRuntime           string
	AgentNetwork                 string
	AgentDockerImage             string
	AgentID                      string
	ResourcePool                 string
	LogOptions                   string
	AgentReconnectAttempts       int
	AgentReconnectBackoff        int
}

AgentSetupScriptConfig is the configuration for the agent setup script.

type Provider

type Provider interface {
	InstanceType() model.InstanceType
	SlotsPerInstance() int
	List() ([]*model.Instance, error)
	Launch(instanceNum int) error
	Terminate(instanceIDs []string)
}

Provider is the interface for interacting with the underlying instance provider.

Jump to

Keyboard shortcuts

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