Documentation
¶
Index ¶
- Constants
- func AllowDirenv() error
- func CheckDirenvHook() bool
- func CheckDirenvInstalled() bool
- func CheckGitignore() (bool, error)
- func CreateEnvironmentDir(slug string) error
- func CreateInitiatDir() error
- func EnsureGitignore() error
- func GenerateEnvrc() error
- func GenerateEnvrcToPath(envrcPath string) error
- func GetActiveEnvironment() (string, error)
- func GetActivePath() (string, error)
- func GetDirenvVersion() (string, error)
- func GetEnvironmentPath(slug string) (string, error)
- func GetEnvironmentSecrets(envSlug string) ([]types.Secret, error)
- func GetEnvironmentsPath() (string, error)
- func GetGitignoreStatus() (string, error)
- func GetInitiatPath() (string, error)
- func GetInstallInstructions() string
- func GetLastSyncTime(envSlug string) (time.Time, error)
- func GetSecretsPath(envSlug string) (string, error)
- func IsGitRepository() bool
- func IsInitCompleted() bool
- func LocalEnvironmentExists(slug string) bool
- func PromptForShellType() (string, error)
- func ReadSecrets(envSlug string) (string, error)
- func ReloadDirenv() error
- func SetActiveEnvironment(slug string) error
- func SyncAllEnvironments(orgSlug, projectSlug string) error
- func SyncEnvironment(envSlug, orgSlug, projectSlug string) error
- func UnsetActiveEnvironment() error
- func WriteDirenvHookToShellConfig(shellType string) error
- func WriteSecrets(envSlug string, content string) error
- type EnvironmentInfo
- type LocalEnvironment
- type State
Constants ¶
View Source
const ( InitiatDir = ".initiat" EnvironmentsDir = "environments" ActiveFile = "active" SecretsFile = "secrets.env" EnvrcFile = ".envrc" WindowsOS = "windows" GitignoreConfigured = "configured" )
View Source
const (
GitignorePerms = 0644
)
Variables ¶
This section is empty.
Functions ¶
func AllowDirenv ¶
func AllowDirenv() error
func CheckDirenvHook ¶
func CheckDirenvHook() bool
func CheckDirenvInstalled ¶
func CheckDirenvInstalled() bool
func CheckGitignore ¶
func CreateEnvironmentDir ¶
func CreateInitiatDir ¶
func CreateInitiatDir() error
func EnsureGitignore ¶
func EnsureGitignore() error
func GenerateEnvrc ¶
func GenerateEnvrc() error
func GenerateEnvrcToPath ¶ added in v0.6.1
func GetActiveEnvironment ¶
func GetActivePath ¶
func GetDirenvVersion ¶
func GetEnvironmentPath ¶
func GetEnvironmentsPath ¶
func GetGitignoreStatus ¶
func GetInitiatPath ¶
func GetInstallInstructions ¶
func GetInstallInstructions() string
func GetSecretsPath ¶
func IsGitRepository ¶
func IsGitRepository() bool
func IsInitCompleted ¶ added in v0.6.1
func IsInitCompleted() bool
func LocalEnvironmentExists ¶
func PromptForShellType ¶ added in v0.6.1
func ReadSecrets ¶
func ReloadDirenv ¶
func ReloadDirenv() error
func SetActiveEnvironment ¶
func SyncAllEnvironments ¶
func SyncEnvironment ¶
func UnsetActiveEnvironment ¶ added in v0.6.1
func UnsetActiveEnvironment() error
func WriteDirenvHookToShellConfig ¶ added in v0.6.1
func WriteSecrets ¶
Types ¶
type EnvironmentInfo ¶
type EnvironmentInfo struct {
Slug string
Name string
IsActive bool
Synced time.Time
HasSecrets bool
SecretsCount int
}
func ListLocalEnvironments ¶
func ListLocalEnvironments() ([]EnvironmentInfo, error)
type LocalEnvironment ¶
Click to show internal directories.
Click to hide internal directories.