swarmtypes

package
v0.0.0-...-8cfe922 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCreateFlags

type AWSCreateFlags struct {
	KeypairName      string
	VPC              string
	VPCCIDR          string
	Subnet           string
	AvailabilityZone string
}

AWSCreateFlags describes AWS specific flags for creating a swarm.

type CreateFlags

type CreateFlags struct {
	// Template type that should be used
	Type string

	// Comma separated list of key=value tag pairs that are applied to all nodes in the fleet cluster
	Tags string

	// The version tag of Yochu to be deployed
	YochuVersion string

	ClusterSize      int
	EtcdPeers        string
	EtcdVersion      string
	FleetVersion     string
	DockerVersion    string
	EtcdDiscoveryURL string
	K8sVersion       string
	RktVersion       string
	TemplateDir      string

	// MachineType provides some identifier for the provider to know which type of machine should be used.
	// for AWS these are the EC2 types, e.g. t2.nano, m3.large etc.
	MachineType string

	// URI for the OS image that should be used for the nodes in the cluster. Must be understood by the provider.
	ImageURI string

	// An URI for the certificate you want to deploy for the swarm. Must be understood by the provider.
	CertificateURI string

	// Provider Specific Structs
	*AWSCreateFlags

	// Use ignition as bootstrap mechanism for CoreOS
	UseIgnition bool
}

CreateFlags describes flags for creating a swarm.

type Instance

type Instance struct {
	Id               string
	Image            string
	Type             string
	PublicIPAddress  string
	PublicDNSName    string
	PrivateIPAddress string
	PrivateDNSName   string
}

Instance describes a machine running in a swarm.

func FilterInstanceById

func FilterInstanceById(instances []Instance, instanceID string) []Instance

FilterInstanceById filters an instance from an existing slice by its id.

func FindInstanceById

func FindInstanceById(instances []Instance, instanceID string) (Instance, error)

FindInstanceById searches for an instance in a slice by its id.

Jump to

Keyboard shortcuts

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