Documentation ¶
Index ¶
- Constants
- type CreateWorkspaceConfig
- type EnvValues
- type OutputResponse
- type OutputValues
- type Payload
- type RepoInfo
- type RuntimeDataInfo
- type SchematicsServiceAPI
- type SharedDataInfo
- type StatusInfo
- type StatusMsgInfo
- type TemplateData
- type TemplateDataInfo
- type TemplateRepo
- type Variablestore
- type WorkspaceConfig
- type WorkspaceStatus
- type Workspaces
Constants ¶
View Source
const ErrCodeAPICreation = "APICreationError"
ErrCodeAPICreation ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateWorkspaceConfig ¶
type CreateWorkspaceConfig struct { Name string `json:"name"` Type []string `json:"type"` Description string `json:"description"` Tags []string `json:"tags"` WorkspaceStatus StatusInfo `json:"workspace_status"` TemplateRepo RepoInfo `json:"template_repo"` TemplateRef string `json:"template_ref"` TemplateData []TemplateDataInfo `json:"template_data"` }
type OutputResponse ¶
type OutputResponse struct { Folder string `json:"folder"` TemplateID string `json:"id"` Type string `json:"type"` Output []map[string]OutputValues `json:"output_values"` }
type OutputValues ¶
type Payload ¶
type Payload struct { Name string `json:"name"` Type []string `json:"type"` Description string `json:"description"` Tags []string `json:"tags"` TemplateRef string `json:"template_ref"` TemplateRepo TemplateRepo `json:"template_repo"` WorkspaceStatus WorkspaceStatus `json:"workspace_status"` TemplateData []TemplateData `json:"template_data"` }
type RuntimeDataInfo ¶
type RuntimeDataInfo struct { EngineCmd string `json:"engine_cmd"` EngineName string `json:"engine_name"` TemplateID string `json:"id"` EngineVersion string `json:"engine_version"` LogStoreURL string `json:"log_store_url"` OutputValues map[string]string `json:"output_values"` StateStoreURL string `json:"state_store_url"` Resources [][]map[string]string `json:"resources"` }
type SchematicsServiceAPI ¶
type SchematicsServiceAPI interface {
Workspaces() Workspaces
}
SchematicsServiceAPI is the Aramda K8s client ...
type SharedDataInfo ¶
type SharedDataInfo struct {}
type StatusInfo ¶
type StatusMsgInfo ¶
type TemplateData ¶
type TemplateData struct { Folder string `json:"folder"` Type string `json:"type"` Variablestore []Variablestore `json:"variablestore"` }
type TemplateDataInfo ¶
type TemplateDataInfo struct { Env []EnvValues `json:"env_values"` Folder string `json:"folder"` TemplateID string `json:"id"` Type string `json:"type"` Locked bool `json:"locked"` UninstallScriptName string `json:"uninstall_script_name"` Values string `json:"values"` ValuesMetadata []map[string]string `json:"values_metadata"` ValuesURL string `json:"values_url"` Variablestore []Variablestore `json:"variablestore"` }
type TemplateRepo ¶
type TemplateRepo struct {
URL string `json:"url"`
}
type Variablestore ¶
type WorkspaceConfig ¶
type WorkspaceConfig struct { ID string `json:"id"` Name string `json:"name"` Type []string `json:"type"` Description string `json:"description"` ResourceGroup string `json:"resource_group"` Location string `json:"location"` Tags []string `json:"tags"` CreatedAt string `json:"created_at"` CreatedBy string `json:"created_by"` Status string `json:"status"` WorkspaceStatusMsg StatusMsgInfo `json:"workspace_status_msg"` WorkspaceStatus StatusInfo `json:"workspace_status"` TemplateRepo RepoInfo `json:"template_repo"` TemplateData []TemplateDataInfo `json:"template_data"` RuntimeData []RuntimeDataInfo `json:"runtime_data"` UpdatedAt string `json:"updated_at"` LastHealthCheckAt string `json:"last_health_check_at"` }
type WorkspaceStatus ¶
type WorkspaceStatus struct {
Frozen bool `json:"frozen"`
}
type Workspaces ¶
type Workspaces interface { GetWorkspaceByID(WorskpaceID string) (WorkspaceConfig, error) GetOutputValues(WorskpaceID string) ([]OutputResponse, error) GetStateStore(WorskpaceID, TemplateID string) (interface{}, error) CreateWorkspace(createReq Payload) (WorkspaceConfig, error) }
Click to show internal directories.
Click to hide internal directories.