Documentation ¶
Index ¶
- type ClusterInfo
- type InstanceInfo
- type MachineInfo
- type Network
- type OS
- type Packet
- func (packet *Packet) AllocateExternalIPs(cluster *clusterv1.Cluster, clientset *kubernetes.Clientset) ([]string, error)
- func (packet *Packet) Create(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine, ...) error
- func (packet *Packet) DeAllocateExternalIPs(cluster *clusterv1.Cluster, clientset *kubernetes.Clientset) error
- func (packet *Packet) Delete(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine, ...) error
- func (packet *Packet) Exists(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine, ...) (bool, error)
- func (packet *Packet) Update(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine, ...) error
- type Userdata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterInfo ¶
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 Packet ¶
type Packet struct {
// contains filtered or unexported fields
}
Packet represents a provider for Packet.
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.
Click to show internal directories.
Click to hide internal directories.