Documentation
¶
Index ¶
- Constants
- func ErrHealthCheckFailed(healthUrl string) error
- func GetAgentApiClient(apiUrl, apiKey, clientId string, telemetryEnabled bool) (*apiclient.APIClient, error)
- func GetApiClient(profile *config.Profile) (*apiclient.APIClient, error)
- func GetRunnerApiClient(apiUrl, apiKey, clientId string, telemetryEnabled bool) (*apiclient.APIClient, error)
- func GetTarget(targetNameOrId string) (*apiclient.TargetDTO, int, error)
- func GetWorkspace(workspaceNameOrId string) (*apiclient.WorkspaceDTO, int, error)
- func HandleErrorResponse(res *http.Response, requestErr error) error
- func IsHealthCheckFailed(err error) bool
- type ApiErrorResponse
Constants ¶
View Source
const CLIENT_VERSION_HEADER = "X-Client-Version"
Variables ¶
This section is empty.
Functions ¶
func ErrHealthCheckFailed ¶ added in v0.20.0
func GetAgentApiClient ¶ added in v0.17.0
func GetApiClient ¶ added in v0.17.0
func GetRunnerApiClient ¶ added in v0.52.0
func GetWorkspace ¶ added in v0.17.0
func GetWorkspace(workspaceNameOrId string) (*apiclient.WorkspaceDTO, int, error)
func IsHealthCheckFailed ¶ added in v0.20.0
Types ¶
type ApiErrorResponse ¶
type ApiErrorResponse struct {
Error string `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.