Documentation ¶
Index ¶
- type BytesSource
- type CompoundValue
- type Credential
- type Data
- type DefaultVaultClient
- type PipelinePath
- type SharedPath
- type SimpleValue
- type Sink
- type Source
- type Syncer
- type TeamPath
- type VaultClient
- type VaultSink
- func (vs *VaultSink) Clear() error
- func (vs *VaultSink) PipelinePath(pp PipelinePath) string
- func (vs *VaultSink) SharedPath(sp SharedPath) string
- func (vs *VaultSink) TeamPath(tp TeamPath) string
- func (vs *VaultSink) WriteCompound(path string, val CompoundValue) error
- func (vs *VaultSink) WriteSimple(path string, val SimpleValue) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BytesSource ¶
type BytesSource struct {
Bytes []byte
}
yaml shared:
name1: simple_secret name2: {complex: multi, field: secret}
main/secret1: value main/pipeline/secret2: {foo: bar, baz: qux} main/pipeline/secret2: {foo: bar, baz: {deeper: nesting}}
func (BytesSource) Read ¶
func (bs BytesSource) Read() (Data, error)
type CompoundValue ¶
type CompoundValue map[string]interface{}
type Credential ¶
type Credential struct { Location interface{} Value interface{} }
type Data ¶
type Data = []Credential
a sample of what a secret store contains:
[]Credential{ { Location: TeamPath{team:"main", secret:"secret1"}, Value: SimpleValue("value"), }, { Location: PipelinePath{team:"main",pipeline:"pipeline",secret:"secret2"}, Value: CompoundValue{"foo":"bar","baz":"qux"}, } }
type DefaultVaultClient ¶
func (DefaultVaultClient) Delete ¶
func (dvc DefaultVaultClient) Delete(path string) error
type PipelinePath ¶
type SharedPath ¶
type SharedPath struct {
}type SimpleValue ¶
type SimpleValue string
type Sink ¶
type Sink interface { WriteSimple(string, SimpleValue) error WriteCompound(string, CompoundValue) error Clear() error // TODO determining path templates is a slightly different // responsibility than writing secrets. split out a different interface. PipelinePath(PipelinePath) string TeamPath(TeamPath) string }
type Syncer ¶
func FileSyncer ¶
type VaultClient ¶
type VaultSink ¶
type VaultSink struct {
Client VaultClient
}
func (*VaultSink) PipelinePath ¶
func (vs *VaultSink) PipelinePath(pp PipelinePath) string
TODO these templates depend on the patterns concourse is expecting
func (*VaultSink) SharedPath ¶
func (vs *VaultSink) SharedPath(sp SharedPath) string
func (*VaultSink) WriteCompound ¶
func (vs *VaultSink) WriteCompound(path string, val CompoundValue) error
func (*VaultSink) WriteSimple ¶
func (vs *VaultSink) WriteSimple(path string, val SimpleValue) error
Click to show internal directories.
Click to hide internal directories.