config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderAWS    = "aws"
	ProviderAzure  = "azure"
	ProviderDocker = "docker"
	ProviderGCP    = "gcp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	Region               string            `json:"region"`
	AMI                  string            `json:"ami"`
	InstanceType         string            `json:"instanceType"`
	Architecture         string            `json:"architecture"`
	SubnetIDs            []string          `json:"subnetIds"`
	SecurityGroupIDs     []string          `json:"securityGroupIds"`
	IAMInstanceProfile   string            `json:"iamInstanceProfile"`
	KeyName              string            `json:"keyName"`
	VolumeSizeGB         int32             `json:"volumeSizeGb"`
	VolumeIOPS           int32             `json:"volumeIops"`
	VolumeThroughputMBps int32             `json:"volumeThroughputMbps"`
	ResourceTags         map[string]string `json:"resourceTags"`
	CloudWatch           CloudWatch        `json:"cloudWatch"`
}

type Azure

type Azure struct {
	SubscriptionID         string            `json:"subscriptionId"`
	ResourceGroup          string            `json:"resourceGroup"`
	Location               string            `json:"location"`
	ImageID                string            `json:"imageId"`
	VMSize                 string            `json:"vmSize"`
	Architecture           string            `json:"architecture"`
	SubnetID               string            `json:"subnetId"`
	NetworkSecurityGroupID string            `json:"networkSecurityGroupId"`
	IdentityID             string            `json:"identityId"`
	Zones                  []string          `json:"zones"`
	DiskSizeGB             int32             `json:"diskSizeGb"`
	EphemeralOSDisk        bool              `json:"ephemeralOSDisk"`
	ResourceTags           map[string]string `json:"resourceTags"`
}

type CloudWatch

type CloudWatch struct {
	LogGroupName string `json:"logGroupName"`
}

type Config

type Config struct {
	ID                     string               `json:"id"`
	SuperPlaneURL          string               `json:"superplaneUrl"`
	InstallationAdminToken string               `json:"installationAdminToken"`
	RunnerReleaseBaseURL   string               `json:"runnerReleaseBaseUrl"`
	Reconciliation         ReconciliationConfig `json:"reconciliation"`
	HTTP                   HTTPConfig           `json:"http"`
	Fleets                 []Fleet              `json:"fleets"`
}

func Load

func Load(path string) (*Config, error)

func (*Config) ErrorRetryInterval

func (c *Config) ErrorRetryInterval() time.Duration

func (*Config) PollTimeout

func (c *Config) PollTimeout() time.Duration

func (*Config) ReconciliationInterval

func (c *Config) ReconciliationInterval() time.Duration

func (*Config) RequestTimeout

func (c *Config) RequestTimeout() time.Duration

type Docker

type Docker struct {
	Image        string   `json:"image"`
	Architecture string   `json:"architecture"`
	RunnerAPIURL string   `json:"runnerApiUrl"`
	Network      string   `json:"network"`
	Volumes      []string `json:"volumes"`
	ExtraHosts   []string `json:"extraHosts"`
	Init         bool     `json:"init"`
	User         string   `json:"user"`
	Entrypoint   []string `json:"entrypoint"`
}

type Duration

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

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(data []byte) error

type Fleet

type Fleet struct {
	ID            string    `json:"id"`
	RunnerVersion string    `json:"runnerVersion"`
	Spec          FleetSpec `json:"spec"`
	WarmCapacity  int       `json:"warmCapacity"`
	MaxCapacity   int       `json:"maxCapacity"`
	Provider      string    `json:"provider"`
	AWS           AWS       `json:"aws"`
	Azure         Azure     `json:"azure"`
	GCP           GCP       `json:"gcp"`
	Docker        Docker    `json:"docker"`
}

type FleetSpec

type FleetSpec struct {
	OperatingSystem string   `json:"operatingSystem"`
	Architecture    string   `json:"architecture"`
	CPUMillicores   int32    `json:"cpuMillicores"`
	MemoryMB        int32    `json:"memoryMb"`
	DiskGB          int32    `json:"diskGb"`
	Capabilities    []string `json:"capabilities"`
}

type GCP

type GCP struct {
	ProjectID           string            `json:"projectId"`
	Zones               []string          `json:"zones"`
	MachineType         string            `json:"machineType"`
	Image               string            `json:"image"`
	Architecture        string            `json:"architecture"`
	Subnetwork          string            `json:"subnetwork"`
	ServiceAccountEmail string            `json:"serviceAccountEmail"`
	NetworkTags         []string          `json:"networkTags"`
	DiskSizeGB          int64             `json:"diskSizeGb"`
	DiskType            string            `json:"diskType"`
	Labels              map[string]string `json:"labels"`
}

type HTTPConfig

type HTTPConfig struct {
	RequestTimeout Duration `json:"requestTimeout"`
}

type ReconciliationConfig

type ReconciliationConfig struct {
	PollTimeout        Duration `json:"pollTimeout"`
	Interval           Duration `json:"interval"`
	ErrorRetryInterval Duration `json:"errorRetryInterval"`
}

Jump to

Keyboard shortcuts

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