packet

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterInfo

type ClusterInfo struct {
	ProjectID string
	IPBlock   string
}

ClusterInfo holds data about desired config in cluster object

type InstanceInfo

type InstanceInfo struct {
	Plan     string
	Facility string
	PXEUrl   string
	Install  map[string]interface{}
}

InstanceInfo holds data about the instances we'll create

type MachineInfo

type MachineInfo struct {
	ProjectID string
	Instances InstanceInfo
}

MachineInfo holds data about desired config in cluster object

type Network

type Network struct {
	OS *OS `yaml:"os,omitempty"`
}

type OS

type OS struct {
	Devices []map[string]interface{} `yaml:"devices,omitempty"`
}

type Packet

type Packet struct {
	// contains filtered or unexported fields
}

Packet represents a provider for Packet.

func NewPacket

func NewPacket() (*Packet, error)

NewPacket returns an instance of the Packet provisioner

func (*Packet) AllocateExternalIPs

func (packet *Packet) AllocateExternalIPs(cluster *clusterv1.Cluster, clientset *kubernetes.Clientset) ([]string, error)

AllocateExternalIPs creates IPs for the control plane nodes Note: This is weird for packet. We still expect the block of IPs to pre-exist and we just list them out.

func (*Packet) Create

func (packet *Packet) Create(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine, clientset *kubernetes.Clientset) error

Create creates an instance in Packet.

func (*Packet) DeAllocateExternalIPs

func (packet *Packet) DeAllocateExternalIPs(cluster *clusterv1.Cluster, clientset *kubernetes.Clientset) error

DeAllocateExternalIPs cleans IPs for the control plane nodes Note: Weird for packet. A no-op since we actually expect the block of IPs to be pre-created

func (*Packet) Delete

func (packet *Packet) Delete(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine, clientset *kubernetes.Clientset) error

Delete deletes a Packet instance.

func (*Packet) Exists

func (packet *Packet) Exists(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine, clientset *kubernetes.Clientset) (bool, error)

Exists returns whether or not an instance is present in AWS.

func (*Packet) Update

func (packet *Packet) Update(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine, clientset *kubernetes.Clientset) error

Update updates a given Packet instance.

type Userdata

type Userdata struct {
	Version    string
	Security   interface{}
	Services   interface{}
	Install    map[string]interface{}
	Networking *Network
}

Userdata holds userdata in struct form

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL