hetzner

package
v0.0.0-...-9135743 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiKey

type ApiKey string

func (ApiKey) Client

func (a ApiKey) Client() *hcloud.Client

func (ApiKey) String

func (a ApiKey) String() string

func (ApiKey) Validate

func (a ApiKey) Validate(ctx context.Context) error

type Client

type Client interface {
	GetIP(ctx context.Context, key ApiKey, name k8s.Context) (net.IP, error)
}

func NewCLientDummy

func NewCLientDummy() Client

func NewClient

func NewClient() Client

type IP

type IP struct {
	Client Client
	ApiKey deployer.SecretValue
	Name   k8s.Context
}

func (IP) IP

func (i IP) IP(ctx context.Context) (net.IP, error)

func (IP) Validate

func (i IP) Validate(ctx context.Context) error

type Server

type Server struct {
	ApiKey        deployer.SecretValue
	Name          k8s.Context
	PublicKeyPath ssh.PublicKeyPath
	User          ssh.User
	ServerType    ServerType
}

func (*Server) Apply

func (s *Server) Apply(ctx context.Context) error

func (*Server) Satisfied

func (s *Server) Satisfied(ctx context.Context) (bool, error)

func (*Server) Validate

func (s *Server) Validate(ctx context.Context) error

type ServerType

type ServerType string

func (ServerType) String

func (a ServerType) String() string

func (ServerType) Validate

func (a ServerType) Validate(ctx context.Context) error

type User

type User struct {
	Name              string   `yaml:"name"`
	Sudo              string   `yaml:"sudo"`
	SshAuthorizedKeys []string `yaml:"ssh_authorized_keys"`
	Shell             string   `yaml:"shell"`
}

type UserData

type UserData struct {
	Users []User `yaml:"users"`
}

Jump to

Keyboard shortcuts

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