Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arg ¶
type Data ¶
type DockerRunner ¶
type DockerRunner struct { Dockerfile *Data `json:"dockerfile,omitempty" yaml:"dockerfile,omitempty"` Labels []string `json:"labels,omitempty" yaml:"labels,omitempty"` Quantity int `json:"quantity,omitempty" yaml:"quantity,omitempty"` }
func (*DockerRunner) DeepCopy ¶
func (dr *DockerRunner) DeepCopy() *DockerRunner
DeepCopy creates a deep copy of DockerRunner.
type Environments ¶
type Environments struct {
HCloud map[string]*HCloudServerCreateOpts `json:"hcloud,omitempty" yaml:"hcloud,omitempty"`
}
func (*Environments) DeepCopy ¶
func (e *Environments) DeepCopy() *Environments
DeepCopy creates a deep copy of Environments.
type Github ¶
type Github struct { Token string `json:"token,omitempty" yaml:"token,omitempty"` // Not saved to config Organization string `json:"organization,omitempty" yaml:"organization,omitempty"` Repository *string `json:"repository,omitempty" yaml:"repository,omitempty"` }
func (*Github) SCMPlatform ¶
func (g *Github) SCMPlatform() *SCMPlatform
type Gitlab ¶
type Gitlab struct { Token string `json:"token,omitempty" yaml:"token,omitempty"` // Not saved to config Organization string `json:"organization,omitempty" yaml:"organization,omitempty"` Repository *string `json:"repository,omitempty" yaml:"repository,omitempty"` }
func (*Gitlab) SCMPlatform ¶
func (g *Gitlab) SCMPlatform() *SCMPlatform
type GoTemplateOptions ¶
type GoTemplateOptions struct { Runner *Runner SCMPlatform *SCMPlatform }
type HCloud ¶
type HCloud struct {
Token string `json:"token,omitempty" yaml:"token,omitempty"` // Not saved to config
}
type HCloudServerCreateOpts ¶
type HCloudServerCreateOpts struct { Setup *SCMPlatform `json:"setup,omitempty" yaml:"setup,omitempty"` // should not be provided by the config file Name string `json:"-"` Type string `json:"type"` Image string `json:"image"` SSHKeys []string `json:"ssh_keys,omitempty" yaml:"ssh_keys,omitempty"` Location *string `json:"location,omitempty" yaml:"location,omitempty"` Datacenter *string `json:"datacenter,omitempty" yaml:"datacenter,omitempty"` UserData *Data `json:"user_data"` StartAfterCreate bool `json:"start_after_create,omitempty" yaml:"start_after_create,omitempty"` Labels []string `json:"labels,omitempty" yaml:"labels,omitempty"` Automount bool `json:"automount,omitempty" yaml:"automount,omitempty"` Volumes []string `json:"volumes,omitempty" yaml:"volumes,omitempty"` Networks []string `json:"networks,omitempty" yaml:"networks,omitempty"` Firewalls []string `json:"firewalls,omitempty" yaml:"firewalls,omitempty"` PlacementGroup *string `json:"placement_group,omitempty" yaml:"placement_group,omitempty"` }
func (*HCloudServerCreateOpts) Args ¶
func (s *HCloudServerCreateOpts) Args() ([]string, *bytes.Buffer, error)
func (*HCloudServerCreateOpts) DeepCopy ¶
func (hc *HCloudServerCreateOpts) DeepCopy() *HCloudServerCreateOpts
DeepCopy creates a deep copy of HCloudServerCreateOpts.
type Hetzner ¶
type Hetzner struct {
Token string `json:"token,omitempty" yaml:"token,omitempty"` // Not saved to config
}
type Logs ¶
type Runner ¶
type Runner struct { // will be filled with the name of the runner from map Name *string `json:"-" yaml:"-"` Host *string `json:"host,omitempty" yaml:"host,omitempty"` HCloud *string `json:"hcloud,omitempty" yaml:"hcloud,omitempty"` User string `json:"user,omitempty" yaml:"user,omitempty"` Auth string `json:"auth,omitempty" yaml:"auth,omitempty"` Password *string `json:"password,omitempty" yaml:"password,omitempty"` // Not saved to config Setup *RunnerSetup `json:"setup,omitempty" yaml:"setup,omitempty"` Docker map[string]*DockerRunner `json:"docker,omitempty" yaml:"docker,omitempty"` Pre *string `json:"pre,omitempty" yaml:"pre,omitempty"` Post *string `json:"post,omitempty" yaml:"post,omitempty"` }
func (*Runner) ScrubSecrets ¶
func (r *Runner) ScrubSecrets() interface{}
type RunnerSetup ¶
type RunnerSetup struct { SCMPlatform `json:",inline" yaml:",inline"` User string `json:"user"` Packages []string `json:"packages,omitempty" yaml:"packages,omitempty"` RunnerWorkDir string `json:"runner_work_dir,omitempty" yaml:"runner_work_dir,omitempty"` Installimage *Data `json:"installimage,omitempty" yaml:"installimage,omitempty"` }
func (*RunnerSetup) DeepCopy ¶
func (rs *RunnerSetup) DeepCopy() *RunnerSetup
DeepCopy creates a deep copy of RunnerSetup.
type Runr ¶
type Runr struct {
// contains filtered or unexported fields
}
type SCMPlatform ¶
type SCMPlatform struct { Platform string `json:"platform,omitempty" yaml:"platform,omitempty"` Organization string `json:"organization,omitempty" yaml:"organization,omitempty"` Repository *string `json:"repository,omitempty" yaml:"repository,omitempty"` Token string `json:"token,omitempty" yaml:"token,omitempty"` // Not saved to config }
func (*SCMPlatform) DeepCopy ¶
func (s *SCMPlatform) DeepCopy() *SCMPlatform
DeepCopy creates a deep copy of SCMPlatform.
func (*SCMPlatform) NewProvider ¶
type State ¶
type State struct { Logs *Logs `json:"logs,omitempty" yaml:"logs,omitempty"` Runners map[string]*Runner `json:"runners,omitempty" yaml:"runners,omitempty"` Environments *Environments `json:"environments,omitempty" yaml:"environments,omitempty"` Github *Github `json:"github,omitempty" yaml:"github,omitempty"` Gitlab *Gitlab `json:"gitlab,omitempty" yaml:"gitlab,omitempty"` HCloud *HCloud `json:"hcloud,omitempty" yaml:"hcloud,omitempty"` Hetzner *Hetzner `json:"hetzner,omitempty" yaml:"hetzner,omitempty"` }
func (*State) ExpandRunner ¶
ExpandRunner returns a runner configuration by name It will complete and expand the configuration
func (*State) ExpandRunners ¶
Click to show internal directories.
Click to hide internal directories.