Documentation ¶
Index ¶
- func GetAgentApiClient(apiUrl, apiKey string) (*apiclient.APIClient, error)
- func GetApiClient(profile *config.Profile) (*apiclient.APIClient, error)
- func GetFirstWorkspaceProjectName(workspaceId string, projectName string, profile *config.Profile) (string, error)
- func GetProviderList() ([]apiclient.Provider, error)
- func GetTargetList() ([]apiclient.ProviderTarget, error)
- func GetWebSocketUrl(apiUrl string) (string, error)
- func GetWebsocketConn(path string, profile *config.Profile, query *string) (*websocket.Conn, *http.Response, error)
- func GetWorkspace(workspaceNameOrId string) (*apiclient.WorkspaceDTO, error)
- func HandleErrorResponse(res *http.Response, requestErr error) error
- func ToServerConfig(config apiclient.ServerConfig) server.Config
- type ApiErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAgentApiClient ¶ added in v0.17.0
func GetApiClient ¶ added in v0.17.0
func GetFirstWorkspaceProjectName ¶ added in v0.17.0
func GetProviderList ¶ added in v0.17.0
func GetTargetList ¶ added in v0.17.0
func GetTargetList() ([]apiclient.ProviderTarget, error)
func GetWebSocketUrl ¶ added in v0.4.0
func GetWebsocketConn ¶ added in v0.17.0
func GetWorkspace ¶ added in v0.17.0
func GetWorkspace(workspaceNameOrId string) (*apiclient.WorkspaceDTO, error)
func ToServerConfig ¶ added in v0.17.0
func ToServerConfig(config apiclient.ServerConfig) server.Config
Types ¶
type ApiErrorResponse ¶
type ApiErrorResponse struct {
Error string `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.