resources

package
v0.0.0-...-a2c64ce Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 11 Imported by: 6

Documentation

Index

Constants

View Source
const (
	MasterIPAttempts               = 100
	MasterIPSleepSecondsPerAttempt = 5
)

Variables

Functions

func GetProjectByName

func GetProjectByName(name string) (*packngo.Project, error)

Types

type Device

type Device struct {
	Shared
	Location         string
	Type             string
	OS               string
	SSHFingerprint   string
	BootstrapScripts []string
	Count            int
	ServerPool       *cluster.ServerPool
	Tags             []string
	ProjectID        string
}

func (*Device) Actual

func (r *Device) Actual(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Device) Apply

func (r *Device) Apply(actual, expected cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Device) Delete

func (r *Device) Delete(actual cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Device) Expected

func (r *Device) Expected(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Device) String

func (r *Device) String() string

type Project

type Project struct {
	Shared
}

func (*Project) Actual

func (r *Project) Actual(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Project) Apply

func (r *Project) Apply(actual, expected cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Project) Delete

func (r *Project) Delete(actual cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Project) Expected

func (r *Project) Expected(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

type SSH

type SSH struct {
	Shared
	User                 string
	PublicKeyFingerprint string
	PublicKeyData        string
	PublicKeyPath        string
}

func (*SSH) Actual

func (r *SSH) Actual(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*SSH) Apply

func (r *SSH) Apply(actual, expected cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*SSH) Delete

func (r *SSH) Delete(actual cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*SSH) Expected

func (r *SSH) Expected(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

type Shared

type Shared struct {
	Identifier string
	Name       string `json:"name,omitempty"`
	Tags       []string
}

Jump to

Keyboard shortcuts

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