Documentation ¶
Index ¶
Constants ¶
View Source
const ( TargetImage = "ubuntu-20.04" // Most Stable, Reliable and Cheapest // Location by Hetzner TargetLocation = "nbg1" )
Change this if needed in the future when Hetzner deprecates Ubuntu 20.04 LTS, or if it is that time of the year.
Variables ¶
This section is empty.
Functions ¶
func CreateServer ¶
func WriteConfiguration ¶
func WriteConfiguration(config Configuration) error
Types ¶
type Configuration ¶
func GetConfiguration ¶
func GetConfiguration() (Configuration, error)
func NewConfiguration ¶
func NewConfiguration(Key string, SSHPubKey string, SSHPrivKey string) Configuration
type HAMFile ¶
type HAMFile struct { Title string `yaml:"title"` Version string `yaml:"version"` SHA256Sum string Args []struct { ID string `yaml:"id"` Prompt string `yaml:"prompt"` Required *bool `yaml:"required",omitempty` Type string `yaml:"type"` } Build []struct { Title string `yaml:"name"` Cmd string `yaml:"run"` } PostBuild []string `yaml:"post_build"` }
func NewHAMFile ¶
type Variable ¶
type Variable struct { Value string Type VariableType }
type VariableType ¶
type VariableType int
const ( VARIABLE_TYPE_VALUE VariableType = iota VARIABLE_TYPE_FILE_PATH VARIABLE_TYPE_SECRET )
Click to show internal directories.
Click to hide internal directories.