clients

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HcloudCreateServerFromImage

func HcloudCreateServerFromImage(cl *cluster.Cluster, network *hcloud.Network, placementGroup *hcloud.PlacementGroup, tmpl HcloudServerCreateFromImageOpts) (*hcloud.Server, error)

func HcloudEnsureFirewall

func HcloudEnsureFirewall(cl *cluster.Cluster, tmpl hcloud.FirewallCreateOpts, create bool) (*hcloud.Firewall, error)

func HcloudEnsureLoadBalancer

func HcloudEnsureLoadBalancer(cl *cluster.Cluster, network *hcloud.Network, tmpl hcloud.LoadBalancerCreateOpts, create bool) (*hcloud.LoadBalancer, error)

func HcloudEnsureNetwork

func HcloudEnsureNetwork(cl *cluster.Cluster, tmpl hcloud.NetworkCreateOpts, create bool) (*hcloud.Network, error)

func HcloudEnsurePlacementGroup

func HcloudEnsurePlacementGroup(cl *cluster.Cluster, tmpl hcloud.PlacementGroupCreateOpts, create bool) (*hcloud.PlacementGroup, error)

func KubernetesCreateFromManifest

func KubernetesCreateFromManifest(cl *cluster.Cluster, manifest string) error

func KubernetesCreateObject

func KubernetesCreateObject(kubeClientset kubernetes.Interface, restConfig rest.Config, obj runtime.Object) error

func KubernetesDeleteNode

func KubernetesDeleteNode(cl *cluster.Cluster, name string) error

func KubernetesInit

func KubernetesInit(cl *cluster.Cluster) (*kubernetes.Clientset, *rest.Config, error)

func KubernetesWaitNodeRegistered

func KubernetesWaitNodeRegistered(cl *cluster.Cluster, name string) error

func KubernetesWaitPodRunning

func KubernetesWaitPodRunning(cl *cluster.Cluster, namespace string, name string) error

Types

type HcloudServerCreateFromImageOpts

type HcloudServerCreateFromImageOpts struct {
	Name           string
	ServerType     string
	UserData       string
	BaseLabels     map[string]string
	FinalizeLabels map[string]string
	ImageTarXzUrl  string
}

type SSHKeyPrivate

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

func (*SSHKeyPrivate) Execute

func (k *SSHKeyPrivate) Execute(host string, port int, cmd string) (string, error)

func (*SSHKeyPrivate) Generate

func (k *SSHKeyPrivate) Generate() error

func (*SSHKeyPrivate) Load

func (k *SSHKeyPrivate) Load(str string) error

func (*SSHKeyPrivate) LoadFile

func (k *SSHKeyPrivate) LoadFile(file string) error

func (*SSHKeyPrivate) Store

func (k *SSHKeyPrivate) Store() string

func (*SSHKeyPrivate) StoreFile

func (k *SSHKeyPrivate) StoreFile(file string) error

func (*SSHKeyPrivate) StorePublic

func (k *SSHKeyPrivate) StorePublic() (string, error)

Jump to

Keyboard shortcuts

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