metal

package
v1.31.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APITarget

type APITarget struct {
	Cloud       *Cloud
	OtherClouds []fi.Cloud
}

func NewAPITarget

func NewAPITarget(cloud *Cloud, otherClouds []fi.Cloud) *APITarget

func (*APITarget) DefaultCheckExisting

func (t *APITarget) DefaultCheckExisting() bool

func (*APITarget) Finish

func (t *APITarget) Finish(taskMap map[string]fi.CloudupTask) error

func (*APITarget) GetAWSCloud

func (t *APITarget) GetAWSCloud() awsup.AWSCloud

type Cloud

type Cloud struct {
}

Cloud holds the fi.Cloud implementation for metal resources.

func NewCloud

func NewCloud() (*Cloud, error)

NewCloud returns a Cloud for metal resources.

func (*Cloud) DNS

func (c *Cloud) DNS() (dnsprovider.Interface, error)

func (*Cloud) DeleteGroup

func (c *Cloud) DeleteGroup(group *cloudinstances.CloudInstanceGroup) error

DeleteGroup deletes the cloud resources that make up a CloudInstanceGroup, including the instances.

func (*Cloud) DeleteInstance

func (c *Cloud) DeleteInstance(instance *cloudinstances.CloudInstance) error

DeleteInstance deletes a cloud instance.

func (*Cloud) DeregisterInstance

func (c *Cloud) DeregisterInstance(instance *cloudinstances.CloudInstance) error

// DeregisterInstance drains a cloud instance and loadbalancers.

func (*Cloud) DetachInstance

func (c *Cloud) DetachInstance(instance *cloudinstances.CloudInstance) error

DetachInstance causes a cloud instance to no longer be counted against the group's size limits.

func (*Cloud) FindClusterStatus

func (c *Cloud) FindClusterStatus(cluster *kops.Cluster) (*kops.ClusterStatus, error)

FindClusterStatus discovers the status of the cluster, by inspecting the cloud objects

func (*Cloud) FindVPCInfo

func (c *Cloud) FindVPCInfo(id string) (*fi.VPCInfo, error)

FindVPCInfo looks up the specified VPC by id, returning info if found, otherwise (nil, nil).

func (*Cloud) GetApiIngressStatus

func (c *Cloud) GetApiIngressStatus(cluster *kops.Cluster) ([]fi.ApiIngressStatus, error)

func (*Cloud) GetCloudGroups

func (c *Cloud) GetCloudGroups(cluster *kops.Cluster, instancegroups []*kops.InstanceGroup, warnUnmatched bool, nodes []v1.Node) (map[string]*cloudinstances.CloudInstanceGroup, error)

GetCloudGroups returns a map of cloud instances that back a kops cluster. Detached instances must be returned in the NeedUpdate slice.

func (*Cloud) ProviderID

func (c *Cloud) ProviderID() kops.CloudProviderID

func (*Cloud) Region

func (c *Cloud) Region() string

Region returns the cloud region bound to the cloud instance. If the region concept does not apply, returns "".

Jump to

Keyboard shortcuts

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