Documentation ¶
Index ¶
- Constants
- func ArrayMap[T, U any](data []T, f func(T) U) []U
- func CleanUpRepositoryUrl(url string) string
- func FormatTimestamp(input string) string
- func FormatUptime(uptime int32) string
- func GenerateIdFromName(name string) string
- func GetEnvVarsFromShell() map[string]string
- func GetFrpcApiDomain(serverId, frpsDomain string) string
- func GetFrpcApiUrl(protocol, serverId, frpsDomain string) string
- func GetFrpcHeadscaleUrl(protocol, serverId, frpsDomain string) string
- func GetFrpcRegistryDomain(serverId, frpsDomain string) string
- func GetFrpcRegistryUrl(protocol, serverId, frpsDomain string) string
- func GetFrpcServerDomain(serverId, frpsDomain string) string
- func GetHomeDir(activeProfile config.Profile, workspaceId string, projectName string, ...) (string, error)
- func GetProjectDir(activeProfile config.Profile, workspaceId string, projectName string, ...) (string, error)
- func GetRemoteOS(remote string) (*os.OperatingSystem, error)
- func GetRepositorySlugFromUrl(url string, specifyGitProviders bool) string
- func GetSshPrivateKeyPath(privateKeyPath string) (string, *string, error)
- func GetValidatedName(input string) (string, error)
- func GetValidatedUrl(input string) (string, error)
- func Hash(value string) string
- func MergeEnvVars(envVars ...map[string]string) map[string]string
- func Pointer[T any](d T) *T
- func ReadCompressedFile(filePath string) (io.Reader, error)
- func ReadJSONLog(ctx context.Context, logReader io.Reader, follow bool, c chan interface{}, ...)
- func ReadLog(ctx context.Context, logReader io.Reader, follow bool, c chan []byte, ...)
- type DebugLogWriter
- type InfoLogWriter
- type TraceLogWriter
Constants ¶
View Source
const ( WORKSPACE_GROUP = "workspace" SERVER_GROUP = "server" PROFILE_GROUP = "profile" )
Variables ¶
This section is empty.
Functions ¶
func CleanUpRepositoryUrl ¶ added in v0.24.0
func FormatTimestamp ¶ added in v0.26.0
func FormatUptime ¶ added in v0.11.0
func GenerateIdFromName ¶
func GetEnvVarsFromShell ¶ added in v0.28.0
func GetFrpcApiDomain ¶ added in v0.11.0
func GetFrpcApiUrl ¶ added in v0.11.0
func GetFrpcHeadscaleUrl ¶ added in v0.19.0
func GetFrpcRegistryDomain ¶ added in v0.17.0
func GetFrpcRegistryUrl ¶ added in v0.17.0
func GetFrpcServerDomain ¶ added in v0.11.0
func GetHomeDir ¶ added in v0.13.0
func GetProjectDir ¶ added in v0.13.0
func GetRemoteOS ¶ added in v0.3.0
func GetRemoteOS(remote string) (*os.OperatingSystem, error)
func GetRepositorySlugFromUrl ¶ added in v0.15.0
func GetSshPrivateKeyPath ¶
GetSshPrivateKeyPath returns the path to the private key and the password if it's encrypted
func GetValidatedName ¶ added in v0.24.0
func GetValidatedUrl ¶
func MergeEnvVars ¶ added in v0.26.1
MergeEnvVars merges multiple environment variables maps into one and resolves environment variables that are referenced in the values. If an environment variable is not found, a warning is logged. The order of the maps is important. Latter maps will override the values of the previous ones.
func Pointer ¶ added in v0.24.0
func Pointer[T any](d T) *T
Use generics to create a pointer to a value
func ReadCompressedFile ¶ added in v0.47.0
func ReadJSONLog ¶ added in v0.20.0
Types ¶
type DebugLogWriter ¶
type DebugLogWriter struct{}
type InfoLogWriter ¶
type InfoLogWriter struct{}
type TraceLogWriter ¶ added in v0.28.0
type TraceLogWriter struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.