config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskForMachineSpecs

func AskForMachineSpecs() (*ravelAPI.GuestConfig, error)

func InitializeConfigFile

func InitializeConfigFile(fleetID string) error

func IsAlreadyInitialized

func IsAlreadyInitialized() bool

func RemoveConfigFile

func RemoveConfigFile() error

func RetrieveAPIKey

func RetrieveAPIKey() (string, error)

func RetrieveNamespace

func RetrieveNamespace() (string, error)

func StoreAPIKey

func StoreAPIKey(namespace, key string) (err error)

Types

type MachineTemplate

type MachineTemplate struct {
	Name        string
	VCPUConfigs []VCPUConfig
}

type ProjectConfiguration

type ProjectConfiguration struct {
	ravelAPI.CreateMachinePayload

	FleetID string `json:"fleet_id"`
}

func RetrieveProjectConfiguration

func RetrieveProjectConfiguration() (cfg ProjectConfiguration, err error)

type VCPUConfig

type VCPUConfig struct {
	VCPUs         int
	MemoryConfigs []int
}

Jump to

Keyboard shortcuts

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