Documentation
¶
Index ¶
- Constants
- Variables
- func CheckDeviceStatus() bool
- func CreateRemoteLogin() (loginId string, err error)
- func DeleteDevicePort(ports []DevicePort) error
- func EnsureAccount(options ...fn.Option) (string, error)
- func EnsureApp(options ...fn.Option) (*string, error)
- func EnsureCluster(options ...fn.Option) (string, error)
- func EnsureDevice(options ...fn.Option) (string, error)
- func EnsureEnv(env *client.Env, options ...fn.Option) (*client.Env, error)
- func EnsureProject(options ...fn.Option) (string, error)
- func GetEnvs(appId string) (string, error)
- func GetFromResp[T any](respData []byte) (*T, error)
- func GetFromRespForEdge[T any](respData []byte) ([]T, error)
- func GetLoadMaps() (map[string]string, CSResp, CSResp, error)
- func GetMresConfigValues(options ...fn.Option) (map[string]string, error)
- func InterceptApp(status bool, options ...fn.Option) error
- func ListMresKeys(options ...fn.Option) ([]string, error)
- func Login(loginId string) error
- func SelectApp(options ...fn.Option) (*string, error)
- func SelectMresKey(options ...fn.Option) (*string, error)
- func SyncKubeConfig(options ...fn.Option) (*string, error)
- func UpdateDevice(ports []DevicePort) error
- func UpdateDeviceClusterName(clusterName string) error
- func UpdateDeviceEnv(options ...fn.Option) error
- func UpdateDeviceNS(namespace string) error
- type Account
- type App
- type CSResp
- type Check
- type CheckName
- type Cluster
- type Config
- type ConfigEnv
- type ConfigORSecret
- type Device
- type DevicePort
- type Edge
- type Edges
- type Env
- type EnvList
- type EnvRsp
- type GeneratedEnvs
- type ItemList
- type Kv
- type Metadata
- type Mres
- type MresEnv
- type MresResp
- type Project
- type ProjectList
- type Response
- type Secret
- type SecretEnv
- type Status
- type User
Constants ¶
View Source
const (
VPNDeviceType = "vpn_device"
)
Variables ¶
View Source
var PaginationDefault = map[string]any{
"orderBy": "name",
"sortDirection": "ASC",
"first": 99999999,
}
Functions ¶
func CheckDeviceStatus ¶
func CheckDeviceStatus() bool
func CreateRemoteLogin ¶
func DeleteDevicePort ¶ added in v1.0.10
func DeleteDevicePort(ports []DevicePort) error
func GetFromResp ¶
func GetFromRespForEdge ¶
func GetMresConfigValues ¶
func UpdateDevice ¶ added in v1.0.10
func UpdateDevice(ports []DevicePort) error
func UpdateDeviceClusterName ¶ added in v1.0.10
func UpdateDeviceEnv ¶ added in v1.0.10
func UpdateDeviceNS ¶ added in v1.0.10
Types ¶
type Account ¶
type Account struct {
Metadata Metadata `json:"metadata"`
DisplayName string `json:"displayName"`
Status Status `json:"status"`
}
func ListAccounts ¶
func SelectAccount ¶
type App ¶
type CheckName ¶
type CheckName struct {
Result bool `json:"result"`
SuggestedNames []string `json:"suggestedNames"`
}
func GetDeviceName ¶ added in v1.0.10
type Cluster ¶
type Cluster struct {
Metadata struct {
Name string `json:"name"`
}
DisplayName string `json:"displayName"`
Status struct {
IsReady bool `json:"isReady"`
} `json:"status"`
}
func SelectCluster ¶
type Config ¶
type ConfigORSecret ¶
type Device ¶
type Device struct {
Metadata Metadata `json:"metadata"`
DisplayName string `json:"displayName"`
Status Status `json:"status"`
EnvName string `json:"environmentName"`
ProjectName string `json:"projectName"`
ClusterName string `json:"clusterName"`
Spec struct {
CnameRecords []struct {
Host string `json:"host"`
Target string `json:"target"`
} `json:"cnameRecords"`
ActiveNamespace string `json:"activeNamespace"`
Ports []DevicePort `json:"ports"`
} `json:"spec"`
WireguardConfig *struct {
Encoding string `json:"encoding"`
Value string `json:"value"`
} `json:"wireguardConfig,omitempty"`
}
func CreateDevice ¶ added in v1.0.10
type DevicePort ¶ added in v1.0.10
type Env ¶
type Env struct {
DisplayName string `json:"displayName"`
Metadata Metadata `json:"metadata"`
Status Status `json:"status"`
Spec struct {
TargetNamespace string `json:"targetNamespace"`
} `json:"spec"`
}
func GetEnvironment ¶ added in v1.0.10
type GeneratedEnvs ¶
type GeneratedEnvs struct {
EnvVars map[string]string `json:"envVars"`
MountFiles map[string]string `json:"mountFiles"`
}
func GenerateEnv ¶
func GenerateEnv() (*GeneratedEnvs, error)
type Project ¶ added in v1.0.10
type Project struct {
DisplayName string `json:"displayName"`
Metadata Metadata `json:"metadata"`
Status Status `json:"status"`
}
func SelectProject ¶ added in v1.0.10
type ProjectList ¶ added in v1.0.10
type Secret ¶
Click to show internal directories.
Click to hide internal directories.