config

package
v0.26.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultIdeId = "vscode"

Variables

This section is empty.

Functions

func DeleteAutocompletionData added in v0.7.0

func DeleteAutocompletionData() error

func DeleteConfigDir added in v0.7.0

func DeleteConfigDir() error

func EnsureSshConfigEntryAdded

func EnsureSshConfigEntryAdded(profileId, workspaceName, projectName string) error

func GetBinaryUrls

func GetBinaryUrls() map[os.OperatingSystem]string

func GetClientId added in v0.23.0

func GetClientId() string

func GetConfigDir

func GetConfigDir() (string, error)

func GetDocsLinkFromGitProvider

func GetDocsLinkFromGitProvider(providerId string) string

func GetErrorLogsDir added in v0.26.0

func GetErrorLogsDir() (string, error)

func GetPrebuildScopesFromGitProviderId added in v0.26.0

func GetPrebuildScopesFromGitProviderId(providerId string) string

func GetProjectHostname

func GetProjectHostname(profileId, workspaceId, projectName string) string

func GetRequiredScopesFromGitProviderId added in v0.26.0

func GetRequiredScopesFromGitProviderId(providerId string) string

func GetWebhookEventHeaderKeyFromGitProvider added in v0.26.0

func GetWebhookEventHeaderKeyFromGitProvider(providerId string) string

func IsNotExist added in v0.11.0

func IsNotExist(err error) bool

func RemoveWorkspaceSshEntries

func RemoveWorkspaceSshEntries(profileId, workspaceId string) error

func TelemetryEnabled added in v0.23.0

func TelemetryEnabled() bool

func UnlinkSshFiles added in v0.7.0

func UnlinkSshFiles() error

Types

type Config

type Config struct {
	Id               string    `json:"id"`
	ActiveProfileId  string    `json:"activeProfile"`
	DefaultIdeId     string    `json:"defaultIde"`
	Profiles         []Profile `json:"profiles"`
	TelemetryEnabled bool      `json:"telemetryEnabled"`
}

func GetConfig

func GetConfig() (*Config, error)

func (*Config) AddProfile

func (c *Config) AddProfile(profile Profile) error

func (*Config) DisableTelemetry added in v0.23.0

func (c *Config) DisableTelemetry() error

func (*Config) EditProfile

func (c *Config) EditProfile(profile Profile) error

func (*Config) EnableTelemetry added in v0.23.0

func (c *Config) EnableTelemetry() error

func (*Config) GetActiveProfile

func (c *Config) GetActiveProfile() (Profile, error)

func (*Config) GetProfile

func (c *Config) GetProfile(profileId string) (Profile, error)

func (*Config) RemoveProfile

func (c *Config) RemoveProfile(profileId string) error

func (*Config) Save

func (c *Config) Save() error

type GitProvider

type GitProvider struct {
	Id   string
	Name string
}

func GetSupportedGitProviders added in v0.11.0

func GetSupportedGitProviders() []GitProvider

type Ide

type Ide struct {
	Id   string
	Name string
}

func GetIdeList

func GetIdeList() []Ide

type Profile

type Profile struct {
	Id   string    `json:"id"`
	Name string    `json:"name"`
	Api  ServerApi `json:"api"`
}

type ServerApi

type ServerApi struct {
	Url string `json:"url"`
	Key string `json:"key"`
}

Jump to

Keyboard shortcuts

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