kubeapi

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountNode

type AccountNode struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AccountNodeSpec   `json:"spec,omitempty"`
	Status AccountNodeStatus `json:"status,omitempty"`
}

type AccountNodeList

type AccountNodeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AccountNode `json:"items"`
}

type AccountNodeSpec

type AccountNodeSpec struct {
	AccountRef  string `json:"accountRef,omitempty"`
	Region      string `json:"region"`
	EdgeRef     string `json:"edgeRef"`
	Provider    string `json:"provider"`
	ProviderRef string `json:"providerRef,omitempty"`
	Config      string `json:"config"`
	Pool        string `json:"pool"`
	Index       int    `json:"nodeIndex,omitempty"`
}

type AccountNodeStatus

type AccountNodeStatus struct {
	IsReady          bool               `json:"isReady"`
	Conditions       []metav1.Condition `json:"conditions,omitempty"`
	StatusConditions []metav1.Condition `json:"statusConditions,omitempty"`
	OpsConditions    []metav1.Condition `json:"opsConditions,omitempty"`
	Message          string             `json:"message,omitempty"`
}

type Client

type Client struct {
	KubeconfigPath string
}

func NewClientWithConfigPath

func NewClientWithConfigPath(cfgPath string) *Client

func (*Client) GetAccountNodes

func (c *Client) GetAccountNodes(ctx context.Context, edgeId string) (*AccountNodeList, error)

func (*Client) GetSecret

func (c *Client) GetSecret(ctx context.Context, namespace, name string) (*v1.Secret, error)

Jump to

Keyboard shortcuts

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