Documentation
¶
Index ¶
- Constants
- func ContainsFold(s, substr string) bool
- func IsValidEnvKey(key string) bool
- func ParseDotenv(data []byte) (Dotenv, []DotenvIssue)
- func RenderDotenv(values map[string]string) []byte
- func ValidateIdentifier(name, field string) error
- type Config
- type Dotenv
- type DotenvIssue
- type EnvIndex
- type Index
- type IssueSeverity
- type KeyInfo
- type KeyMetadata
- type ProjectIndex
Constants ¶
View Source
const ConfigVersion = 1
View Source
const IndexVersion = 1
Variables ¶
This section is empty.
Functions ¶
func ContainsFold ¶
func IsValidEnvKey ¶
func ParseDotenv ¶
func ParseDotenv(data []byte) (Dotenv, []DotenvIssue)
func RenderDotenv ¶
func ValidateIdentifier ¶
Types ¶
type Config ¶
type Config struct {
Version int `json:"version"`
Name string `json:"name"`
Recipients []string `json:"recipients"`
CreatedAt time.Time `json:"createdAt"`
}
Config holds vault-level settings.
type DotenvIssue ¶
type DotenvIssue struct {
Line int
Severity IssueSeverity
Message string
}
type EnvIndex ¶
type EnvIndex struct {
Keys map[string]*KeyMetadata `json:"keys"`
}
type Index ¶
type Index struct {
Version int `json:"version"`
Projects map[string]*ProjectIndex `json:"projects"`
}
func (Index) ListProjects ¶
type IssueSeverity ¶
type IssueSeverity string
const ( IssueError IssueSeverity = "error" IssueWarning IssueSeverity = "warning" )
type KeyMetadata ¶
type ProjectIndex ¶
Click to show internal directories.
Click to hide internal directories.