types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTargetManifest

func GetTargetManifest() *provider.ProviderTargetManifest

Types

type TargetOptions

type TargetOptions struct {
	Location   string `json:"Location"`
	DiskImage  string `json:"Disk Image"`
	DiskSize   int    `json:"Disk Size"`
	ServerType string `json:"Server Type"`
	APIToken   string `json:"API Token"`
}

func ParseTargetOptions

func ParseTargetOptions(optionsJson string) (*TargetOptions, error)

ParseTargetOptions parses the target options from the JSON string.

type WorkspaceMetadata

type WorkspaceMetadata struct {
	ServerID     int
	ServerName   string
	ServerMemory float32
	Architecture string
	Location     string
	Created      string
}

func ToWorkspaceMetadata

func ToWorkspaceMetadata(server *hcloud.Server) WorkspaceMetadata

ToWorkspaceMetadata converts and maps values from an *hcloud.Server to a WorkspaceMetadata.

Jump to

Keyboard shortcuts

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