common

package
v0.52.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWorkspaceConfigurationFlags

func AddWorkspaceConfigurationFlags(cmd *cobra.Command, flags WorkspaceConfigurationFlags, multiWorkspaceFlagException bool)

func AwaitProviderInstalled

func AwaitProviderInstalled(runnerId, providerName, version string) error

func AwaitTargetState

func AwaitTargetState(targetId string, expectedStateName apiclient.ModelsResourceStateName) error

func AwaitWorkspaceState

func AwaitWorkspaceState(workspaceId string, expectedStateName apiclient.ModelsResourceStateName) error

func CheckAnyWorkspaceConfigurationFlagSet

func CheckAnyWorkspaceConfigurationFlagSet(flags WorkspaceConfigurationFlags) bool

func CloseTelemetryService

func CloseTelemetryService() error

func DeleteWorkspace

func DeleteWorkspace(ctx context.Context, apiClient *apiclient.APIClient, workspaceId, workspaceName string, force bool) error

func GetAliases

func GetAliases(cmd string) []string

func GetGitProviderGpgKey

func GetGitProviderGpgKey(apiClient *apiclient.APIClient, ctx context.Context, providerConfigId *string) (*string, error)

func GetRunnerFlow

func GetRunnerFlow(apiClient *apiclient.APIClient, action string) (*runner.RunnerView, error)

func GetWorkspaceNameCompletions

func GetWorkspaceNameCompletions() ([]string, cobra.ShellCompDirective)

func MapKeyValue

func MapKeyValue(arr []string) (map[string]string, error)

func OpenIDE

func OpenIDE(ideId string, activeProfile config.Profile, workspaceId, repoName, workspaceProviderMetadata string, yesFlag bool, gpgKey *string) error

func ReadBuildLogs

func ReadBuildLogs(ctx context.Context, params ReadLogParams)

func ReadRunnerLogs

func ReadRunnerLogs(ctx context.Context, params ReadLogParams)

func ReadTargetLogs

func ReadTargetLogs(ctx context.Context, params ReadLogParams)

func ReadWorkspaceLogs

func ReadWorkspaceLogs(ctx context.Context, params ReadLogParams)

func TrackTelemetryEvent

func TrackTelemetryEvent(event telemetry.Event, clientId string) error

Types

type ReadLogParams

type ReadLogParams struct {
	Id                    string
	Label                 *string
	ServerUrl             string
	ApiKey                string
	SkipPrefixLengthSetup bool
	Index                 *int
	Follow                *bool
	From                  *time.Time
}

type WorkspaceConfigurationFlags

type WorkspaceConfigurationFlags struct {
	Builder           *views_util.BuildChoice
	CustomImage       *string
	CustomImageUser   *string
	Branches          *[]string
	DevcontainerPath  *string
	EnvVars           *[]string
	Manual            *bool
	GitProviderConfig *string
	Labels            *[]string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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