Documentation ¶
Index ¶
- Constants
- Variables
- type Hetzner
- func (h *Hetzner) BuildServerOptions(ctx context.Context, opts *options.Options) (*hcloud.ServerCreateOpts, *string, []byte, error)
- func (h *Hetzner) Create(ctx context.Context, req *hcloud.ServerCreateOpts, diskSize int, ...) error
- func (h *Hetzner) Delete(ctx context.Context, name string) error
- func (h *Hetzner) GetByName(ctx context.Context, name string) (*hcloud.Server, error)
- func (h *Hetzner) Init(ctx context.Context) error
- func (h *Hetzner) Status(ctx context.Context, name string) (client.Status, error)
- func (h *Hetzner) Stop(ctx context.Context, name string) error
Constants ¶
View Source
const ( SSH_USERNAME = "devpod" SSH_PORT = 22 )
Variables ¶
View Source
var ( ErrBadSSHKey = errors.New("bad ssh key") ErrMultipleServersFound = func(name string) error { return fmt.Errorf("multiple server with name %s found", name) } ErrMultipleVolumesFound = func(name string) error { return fmt.Errorf("multiple volumes with name %s found", name) } ErrUnknownDiskImage = errors.New("unknown disk image") ErrUnknownMachineID = errors.New("unknown machine id") ErrUnknownRegion = errors.New("unknown region") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.