config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path                     string
	Version                  string
	WaitForCompletion        bool
	VolumeType               types.VolumeType
	VolumeIops               int32
	VolumeThroughput         int32
	VolumeSize               int32
	VolumeInitializationRate int32
	VolumeName               string
	GithubRef                string
	GithubRepository         string
	InstanceID               string
	Az                       string
	CustomTags               []Tag
	SnapshotName             string
	RunnerConfig             *RunnerConfig
}

func NewConfigFromInputs

func NewConfigFromInputs(action *githubactions.Action) *Config

NewConfigFromInputs parses action inputs and environment variables to build the Config struct.

type RunnerConfig

type RunnerConfig struct {
	DefaultBranch string `json:"defaultBranch"`
	CustomTags    []Tag  `json:"customTags"`
}

type Tag

type Tag struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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