Documentation ¶
Index ¶
- Variables
- func ApplyCluster(environment Environment)
- func DeleteNodes(name string)
- func DeleteOmniCluster(name string)
- func DeleteOmniMachine(name string)
- func GenerateRandomString(length int) (string, error)
- func ListClusters() ([]string, error)
- func Setup()
- func WaitForCluster(environment Environment)
- func WaitForReady(envname string)
- type Environment
- type Machine
- type Machines
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // OmniURL is the URL for the Omni API OmniURL string // OmniAuth is the authentication token for the Omni API OmniAuth string )
Functions ¶
func GenerateRandomString ¶
GenerateRandomString generates a random string
func WaitForCluster ¶
func WaitForCluster(environment Environment)
WaitForCluster waits for the managed cluster to be ready
func WaitForReady ¶
func WaitForReady(envname string)
WaitForReady waits for the managed nodes to be ready
Types ¶
type Environment ¶
type Environment struct { Name string ControlPlane string Workers string Gpus string TailScaleClientID string TailScaleClientSecret string GitHubToken string Gpu bool }
Environment struct to hold the environment variables
type Machine ¶
type Machine struct { Metadata struct { ID string `json:"id"` Labels map[string]string `json:"labels"` } `json:"metadata"` Spec struct { Connected bool `json:"connected"` Platformmetadata struct { Hostname string `json:"hostname"` Instanceid string `json:"instanceid"` Instancetype string `json:"instancetype"` Platform string `json:"platform"` Providerid string `json:"providerid"` Region string `json:"region"` } `json:"platformmetadata"` } `json:"spec"` }
Machine is the struct for the machine
func FindReadyNodes ¶
FindReadyNodes finds the ready nodes
Click to show internal directories.
Click to hide internal directories.