MCPcopy
hub / github.com/getsops/sops / EmitExample

Method EmitExample

stores/dotenv/store.go:122–128  ·  view source on GitHub ↗

EmitExample returns the bytes corresponding to an example Flat Tree runtime object

()

Source from the content-addressed store, hash-verified

120
121// EmitExample returns the bytes corresponding to an example Flat Tree runtime object
122func (store *Store) EmitExample() []byte {
123 bytes, err := store.EmitPlainFile(stores.ExampleFlatTree.Branches)
124 if err != nil {
125 panic(err)
126 }
127 return bytes
128}
129
130// Deprecated: use stores.IsComplexValue() instead!
131func IsComplexValue(v interface{}) bool {

Callers

nothing calls this directly

Implementers 5

Storestores/dotenv/store.go
Storestores/ini/store.go
Storestores/yaml/store.go
Storestores/json/store.go
BinaryStorestores/json/store.go

Calls 1

EmitPlainFileMethod · 0.95

Tested by

no test coverage detected