corral

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusNew = 0 + iota
	StatusProvisioning
	StatusError
	StatusDeleting
	StatusReady
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Corral

type Corral struct {
	RootPath string `yaml:"rootPath"`
	Source   string `yaml:"source"`

	Name       string `yaml:"name"`
	Status     Status `yaml:"status" json:"status,omitempty"`
	PublicKey  string `yaml:"public_key"`
	PrivateKey string `yaml:"private_key"`

	NodePools map[string][]Node `yaml:"node_pools" json:"node_pools,omitempty"`
	Vars      vars.VarSet       `yaml:"vars" json:"vars,omitempty"`
}

func Load

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

func (*Corral) ApplyModule

func (c *Corral) ApplyModule(src, name string) error

func (*Corral) Delete

func (c *Corral) Delete() error

func (*Corral) DestroyModule

func (c *Corral) DestroyModule(name string) error

func (*Corral) Exists

func (c *Corral) Exists() bool

func (*Corral) Save

func (c *Corral) Save() error

func (*Corral) SetStatus

func (c *Corral) SetStatus(status Status)

func (*Corral) TerraformPath

func (c *Corral) TerraformPath(name string) string

type Node

type Node struct {
	Name           string `json:"name,omitempty" yaml:"name,omitempty"`
	User           string `json:"user,omitempty" yaml:"user,omitempty"`
	Address        string `json:"address,omitempty" yaml:"address,omitempty"`
	BastionAddress string `json:"bastion_address,omitempty" yaml:"bastion_address,omitempty"`
	OverlayRoot    string `json:"overlay_root" yaml:"overlay_root"`
}

type Status

type Status int

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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