Documentation
¶
Index ¶
- func ActiveDns() ([]string, error)
- func CloseInterceptApp(appId string) error
- func CreateDevice(deviceName string) error
- func CreateRemoteLogin() (loginId string, err error)
- func CurrentAccountId() (string, error)
- func CurrentDeviceId() (string, error)
- func CurrentProjectId() (string, error)
- func DeleteDevicePort(ports []Port) error
- func GetConfigPath() string
- func GetEnvs(appId string) (string, error)
- func InterceptApp(devieId, appId string) error
- func Login(loginId string) error
- func SetActiveDns(dns []string) error
- func UpdateDevice(ports []Port, region *string) error
- func WriteContextFile(fileObj KLContext) error
- func WriteKLFile(fileObj KLFileType) error
- type Account
- type App
- type CSEntry
- type Config
- type ConfigORSecret
- type DAccount
- type DApp
- type Device
- type EnvType
- type FileEntry
- type GeneratedEnvs
- type KLContext
- type KLFileType
- type MountType
- type Mres
- type MresMarketCategories
- type MresMarketItem
- type Outputs
- type Port
- type Project
- type Provider
- type Region
- type ResEnvType
- type ResType
- type ResourceType
- type Secret
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseInterceptApp ¶
func CreateDevice ¶
func CreateRemoteLogin ¶
func CurrentAccountId ¶
func CurrentDeviceId ¶
func CurrentProjectId ¶
func DeleteDevicePort ¶
func GetConfigPath ¶
func GetConfigPath() string
func InterceptApp ¶
func SetActiveDns ¶
func UpdateDevice ¶
func WriteContextFile ¶
func WriteKLFile ¶
func WriteKLFile(fileObj KLFileType) error
Types ¶
type Account ¶
func GetAccounts ¶
type App ¶
type App struct {
IsLambda bool `json:"isLambda"`
Id string `json:"id"`
Name string `json:"name"`
ReadableId string `json:"readableId"`
Containers []struct {
Name string `json:"name"`
EnvVars []struct {
Key string `json:"key"`
Value struct {
Key string `json:"key"`
Ref string `json:"ref"`
Type string `json:"type"`
Value string `json:"value"`
} `json:"value"`
} `json:"envVars"`
} `json:"containers"`
}
type Config ¶
type ConfigORSecret ¶
type Device ¶
type GeneratedEnvs ¶
type GeneratedEnvs struct {
EnvVars map[string]string `json:"envVars"`
MountFiles map[string]string `json:"mountFiles"`
}
func GenerateEnv ¶
func GenerateEnv() (*GeneratedEnvs, error)
type KLContext ¶
type KLContext struct {
ProjectId string
AccountId string
DeviceId string
Session string
KlFile string
DNS []string
}
func GetContextFile ¶
type KLFileType ¶
type KLFileType struct {
Version string `json:"version"`
Name string `json:"name"`
Mres []ResType `json:"mres"`
Configs []ResType `json:"configs"`
Secrets []ResType `json:"secrets"`
Env []EnvType `json:"env"`
// Ports []string `json:"ports"`
FileMount MountType `yaml:"fileMount"`
}
func GetKlFile ¶
func GetKlFile(filePath *string) (*KLFileType, error)
type Mres ¶
type Mres struct {
Name string
Source string
Resources []ResourceType
}
type MresMarketCategories ¶
type MresMarketCategories struct {
Categories []mCategory
}
type MresMarketItem ¶
type Project ¶
type Region ¶
type ResEnvType ¶
type ResType ¶
type ResType struct {
Name string `json:"name"`
Env []ResEnvType `json:"env"`
}
type ResourceType ¶
Click to show internal directories.
Click to hide internal directories.