phkh

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name of project.
	PhkhKey = "phkh"
	// PrivateKeyKey is the key used to export the private key.
	PrivatekeyKey = "privatekey"
	// KubeconfigKey is the key used to export the kubeconfig.
	KubeconfigKey = "kubeconfig"
	// HetznerServersKey is the key used to export the hetzner servers.
	HetznerServersKey = "servers"
	// ServerIPKey is the key used to export external IP of servers.
	ServerIPKey = "ip"
	// ServerInternalIPKey is the key used to export internal ip of servers.
	ServerInternalIPKey = "internalIP"
	ServerUserKey       = "user"
	ServerNameKey       = "name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Servers    pulumi.MapArray
	Kubeconfig pulumi.StringOutput
	Privatekey pulumi.StringOutput
}

Cluster contains the information about the created cluster.

type Compiled

type Compiled struct {
	SysCluster system.Cluster
	Hetzner    *hetzner.Hetzner
	K8S        *k8s.K8S
}

Compiled is a collection of Hetzner, System and k8s clusters.

type PHKH

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

PHKH is the main struct.

func NewCluster added in v0.1.0

func NewCluster(ctx *pulumi.Context, name string, configuration map[string]any, opts []pulumi.ResourceOption) (*PHKH, error)

New creates a new project instance. It parses the config and compiles the project.

func (*PHKH) DumpConfig

func (c *PHKH) DumpConfig() string

DumpConfig returns a string representation of the parsed config with defaults. This is useful for debugging.

func (*PHKH) Up

func (c *PHKH) Up() (*Cluster, error)

Up creates a new cluster and returns some information about it.

Jump to

Keyboard shortcuts

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