client

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWorkload

func CreateWorkload(payload []byte, contentType string) (string, error)

GetClusterNodes makes a POST request to fetch nodes for a given cluster

func DeleteWorkload

func DeleteWorkload(payload []byte, contentType string) (string, error)

Types

type Cluster

type Cluster struct {
	ID       string      `json:"ID"`
	OrgID    string      `json:"OrgID"`
	Name     string      `json:"Name"`
	Status   string      `json:"Status"`
	Metadata interface{} `json:"Metadata"`
}

Cluster represents a cluster in the response

func ListClusters

func ListClusters() ([]Cluster, error)

ListClusters makes a GET request to fetch all clusters

type Node

type Node struct {
	ID           string `json:"ID"`
	ClusterID    string `json:"ClusterID"`
	Name         string `json:"Name"`
	Status       string `json:"Status"`
	ComputeType  string `json:"ComputeType"`
	InstanceType string `json:"InstanceType"`
	Region       string `json:"Region"`
}

Node represents a node in the cluster response

func GetClusterNodes

func GetClusterNodes(clusterName string) ([]Node, error)

GetClusterNodes makes a POST request to fetch nodes for a given cluster

type Pod

type Pod struct {
	ID        string      `json:"ID"`
	ClusterID string      `json:"ClusterID"`
	NodeID    string      `json:"NodeID"`
	Name      string      `json:"Name"`
	Namespace string      `json:"Namespace"`
	Status    string      `json:"Status"`
	Metadata  interface{} `json:"Metadata"`
}

func GetClusterPods

func GetClusterPods(clusterName string, clusterNamespace string) ([]Pod, error)

GetClusterNodes makes a POST request to fetch nodes for a given cluster

Jump to

Keyboard shortcuts

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