phkh

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 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"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Servers    []map[string]interface{}
	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 New

func New(ctx *pulumi.Context, 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