config

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoProfilesFound = errors.New("no profiles found. Run `daytona serve` to create a default profile or `daytona profile add` to connect to a remote server")
View Source
var SshHomeDir string

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, gpgKey string) error

func ExportGPGKey added in v0.40.0

func ExportGPGKey(keyID, projectHostname 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 GetDocsLinkForCommitSigning added in v0.40.0

func GetDocsLinkForCommitSigning(providerId string) string

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 ReadSshConfig added in v0.48.0

func ReadSshConfig(configPath string) (string, error)

func RemoveWorkspaceSshEntries

func RemoveWorkspaceSshEntries(profileId, workspaceId, projectName string) error

func TelemetryEnabled added in v0.23.0

func TelemetryEnabled() bool

func UnlinkSshFiles added in v0.7.0

func UnlinkSshFiles() error

func UpdateWorkspaceSshEntry added in v0.48.0

func UpdateWorkspaceSshEntry(profileId, workspaceId, projectName, updatedContent string) 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