Documentation
¶
Index ¶
- Constants
- Variables
- func CheckDeviceStatus() bool
- func CreateRemoteLogin() (loginId string, err error)
- func EnsureAccount(options ...fn.Option) (string, error)
- func EnsureCluster(options ...fn.Option) (string, error)
- func EnsureEnv(env *client.Env, options ...fn.Option) (*client.Env, error)
- func GetFromResp[T any](respData []byte) (*T, error)
- func GetFromRespForEdge[T any](respData []byte) ([]T, error)
- func GetMresConfigValues(options ...fn.Option) (map[string]string, error)
- func InterceptApp(status bool, ports []AppPort, options ...fn.Option) error
- func ListMresKeys(options ...fn.Option) ([]string, error)
- func LoadDevboxConfig() (*devboxfile.DevboxConfig, error)
- func Login(loginId string) error
- func MountEnvs(c devboxfile.KlConfig) error
- func SelectMresKey(options ...fn.Option) (*string, error)
- func SyncDevboxJsonFile() error
- func SyncKubeConfig(options ...fn.Option) (*string, error)
- type Account
- type App
- type AppPort
- type AppSpec
- type CSResp
- type Check
- type CheckName
- type Cluster
- type Config
- type ConfigEnv
- type ConfigORSecret
- type Device
- type DeviceList
- type Edge
- type Edges
- type Env
- type EnvList
- type EnvRsp
- type GeneratedEnvs
- type ItemList
- type Kv
- type Metadata
- type MountMap
- type Mres
- type MresEnv
- type MresResp
- type Response
- type Secret
- type SecretEnv
- type Status
- type User
Constants ¶
View Source
const (
Default_GVPN = "default"
)
View Source
const (
VPNDeviceType = "global_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 GetFromResp ¶
func GetFromRespForEdge ¶
func GetMresConfigValues ¶
func LoadDevboxConfig ¶
func LoadDevboxConfig() (*devboxfile.DevboxConfig, error)
this function will fetch real envs from api and return DevboxKlfile with real envs
func MountEnvs ¶
func MountEnvs(c devboxfile.KlConfig) error
func SyncDevboxJsonFile ¶
func SyncDevboxJsonFile() error
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 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 {
AccountName string `json:"accountName"`
CreationTime string `json:"creationTime"`
CreatedBy User `json:"createdBy"`
DisplayName string `json:"displayName"`
GlobalVPNName string `json:"globalVPNName"`
ID string `json:"id"`
IPAddress string `json:"ipAddr"`
LastUpdatedBy User `json:"lastUpdatedBy"`
MarkedForDeletion bool `json:"markedForDeletion"`
// TODO: match with api (envname)
EnvironmentName string `json:"environmentName"`
Metadata struct {
Annotations map[string]string `json:"annotations"`
CreationTimestamp string `json:"creationTimestamp"`
DeletionTimestamp string `json:"deletionTimestamp"`
Labels map[string]string `json:"labels"`
Name string `json:"name"`
} `json:"metadata"`
PrivateKey string `json:"privateKey"`
PublicEndpoint string `json:"publicEndpoint"`
PublicKey string `json:"publicKey"`
UpdateTime string `json:"updateTime"`
WireguardConfig struct {
Value string `json:"value"`
Encoding string `json:"encoding"`
} `json:"wireguardConfig,omitempty"`
}
type DeviceList ¶
type Env ¶
type GeneratedEnvs ¶
type GeneratedEnvs struct {
EnvVars map[string]string `json:"envVars"`
MountFiles map[string]string `json:"mountFiles"`
}
func GenerateEnv ¶
func GenerateEnv() (*GeneratedEnvs, error)
type Secret ¶
type Status ¶
type Status struct {
IsReady bool `json:"isReady"`
Message struct {
RawMessage json.RawMessage `json:",inline"`
} `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.