-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpkg.go
More file actions
66 lines (58 loc) · 1.85 KB
/
Copy pathpkg.go
File metadata and controls
66 lines (58 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Package hensu is machine-local config: format-agnostic get/set/dump
// over key-value, YAML, or JSON files.
//
// This root package is a stable public facade. Implementation lives under
// internal/store; the CLI entrypoint is cmd/hensu.
//
// CLI: github.com/my-rv/hensu/cmd/hensu
package hensu
import "github.com/my-rv/hensu/internal/store"
// Version identifies the module/CLI. Override at link time:
//
// -ldflags "-X github.com/my-rv/hensu.Version=1.2.3"
var Version = "0.1.1"
type (
Format = store.Format
Map = store.Map
Entry = store.Entry
Reveal = store.Reveal
Document = store.Document
Store = store.Store
StoreOption = store.StoreOption
FileSystem = store.FileSystem
OSFileSystem = store.OSFileSystem
MemFileSystem = store.MemFileSystem
FormatCodec = store.FormatCodec
CodecRegistry = store.CodecRegistry
ErrNotDefined = store.ErrNotDefined
InvalidArgument = store.InvalidArgument
ParseError = store.ParseError
)
const (
FormatDotenv = store.FormatDotenv
FormatShexport = store.FormatShexport
FormatYAML = store.FormatYAML
FormatJSON = store.FormatJSON
RevealPeek = store.RevealPeek
RevealMask = store.RevealMask
RevealTrust = store.RevealTrust
ShortValueMax = store.ShortValueMax
)
var (
ErrEmptyKey = store.ErrEmptyKey
ErrExpectedKeys = store.ErrExpectedKeys
)
var (
NewStore = store.NewStore
WithFileSystem = store.WithFileSystem
WithRegistry = store.WithRegistry
DefaultPath = store.DefaultPath
NewMemFileSystem = store.NewMemFileSystem
ParseDocument = store.ParseDocument
SerializeDocument = store.SerializeDocument
CanonicalKey = store.CanonicalKey
PathSegments = store.PathSegments
KeyFromPath = store.KeyFromPath
NormalizeMap = store.NormalizeMap
Lookup = store.Lookup
)