apiclient

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const CLIENT_VERSION_HEADER = "X-Client-Version"

Variables

This section is empty.

Functions

func ErrHealthCheckFailed added in v0.20.0

func ErrHealthCheckFailed(healthUrl string) error

func GetAgentApiClient added in v0.17.0

func GetAgentApiClient(apiUrl, apiKey, clientId string, telemetryEnabled bool) (*apiclient.APIClient, error)

func GetApiClient added in v0.17.0

func GetApiClient(profile *config.Profile) (*apiclient.APIClient, error)

func GetFirstWorkspaceProjectName added in v0.17.0

func GetFirstWorkspaceProjectName(workspaceId string, projectName string, profile *config.Profile) (string, error)

func GetProviderList added in v0.17.0

func GetProviderList() ([]apiclient.Provider, error)

func GetTargetList added in v0.17.0

func GetTargetList() ([]apiclient.ProviderTarget, error)

func GetWebSocketUrl added in v0.4.0

func GetWebSocketUrl(apiUrl string) (string, error)

func GetWebsocketConn added in v0.17.0

func GetWebsocketConn(path string, profile *config.Profile, query *string) (*websocket.Conn, *http.Response, error)

func GetWorkspace added in v0.17.0

func GetWorkspace(workspaceNameOrId string) (*apiclient.WorkspaceDTO, error)

func HandleErrorResponse

func HandleErrorResponse(res *http.Response, requestErr error) error

func IsHealthCheckFailed added in v0.20.0

func IsHealthCheckFailed(err error) bool

func ReadWorkspaceLogs added in v0.20.0

func ReadWorkspaceLogs(activeProfile config.Profile, workspaceId string, projectNames []string, stopLogs *bool)

Types

type ApiErrorResponse

type ApiErrorResponse struct {
	Error string `json:"error"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL