system

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster []*System

func (*Cluster) Leader

func (c *Cluster) Leader() *System

Leader returns the first element of the cluster. TO DO: make it better.

func (*Cluster) Up

func (c *Cluster) Up(token *k3stoken.Token, deps *hetzner.Deployed) (*Deployed, error)

type Deployed

type Deployed struct {
	K3s       *k3s.Outputs
	Resources []pulumi.Resource
}

type SysProvisioned

type SysProvisioned struct {
	OS os.Provisioned
}

type System

type System struct {
	ID      string
	KeyPair *keypair.ECDSAKeyPair
	OS      os.OperatingSystem
	// contains filtered or unexported fields
}

func New

func New(ctx *program.Context, id string) *System

func (*System) CommunicationMethod

func (s *System) CommunicationMethod() variables.CommunicationMethod

func (*System) MarkAsLeader

func (s *System) MarkAsLeader() *System

func (*System) MicroOS

func (s *System) MicroOS() *microos.MicroOS

func (*System) Up

func (s *System) Up(server *hetzner.Server) (*SysProvisioned, error)

func (*System) WithCommunicationMethod

func (s *System) WithCommunicationMethod(method variables.CommunicationMethod) *System

func (*System) WithK8SEndpointType

func (s *System) WithK8SEndpointType(t string) *System

func (*System) WithOS

func (s *System) WithOS(os os.OperatingSystem) *System

Directories

Path Synopsis
k3s
os
This package contains variables used by all system subpackages.
This package contains variables used by all system subpackages.

Jump to

Keyboard shortcuts

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