jx: github.com/jenkins-x/jx/pkg/vault/fake Index | Files

package fake

import "github.com/jenkins-x/jx/pkg/vault/fake"

Index

Package Files

client.go

type FakeVaultClient Uses

type FakeVaultClient struct {
    Data map[string]map[string]interface{}
}

FakeVaultClient is an in memory implementation of vault, useful for testing

func NewFakeVaultClient Uses

func NewFakeVaultClient() FakeVaultClient

NewFakeVaultClient creates a new FakeVaultClient

func (FakeVaultClient) Config Uses

func (f FakeVaultClient) Config() (vaultURL url.URL, vaultToken string, err error)

Config shows the vault config

func (FakeVaultClient) List Uses

func (f FakeVaultClient) List(path string) ([]string, error)

List the secrets in vault

func (FakeVaultClient) Read Uses

func (f FakeVaultClient) Read(secretName string) (map[string]interface{}, error)

Read a secret from vault

func (FakeVaultClient) ReadObject Uses

func (f FakeVaultClient) ReadObject(secretName string, secret interface{}) error

ReadObject a secret from vault

func (FakeVaultClient) ReadYaml Uses

func (f FakeVaultClient) ReadYaml(secretName string) (string, error)

ReadYaml a secret from vault

func (FakeVaultClient) ReplaceURIs Uses

func (f FakeVaultClient) ReplaceURIs(text string) (string, error)

ReplaceURIs corrects the URIs

func (FakeVaultClient) Write Uses

func (f FakeVaultClient) Write(secretName string, data map[string]interface{}) (map[string]interface{}, error)

Write a secret to vault

func (FakeVaultClient) WriteObject Uses

func (f FakeVaultClient) WriteObject(secretName string, secret interface{}) (map[string]interface{}, error)

WriteObject a secret to vault

func (FakeVaultClient) WriteYaml Uses

func (f FakeVaultClient) WriteYaml(secretName string, y string) (map[string]interface{}, error)

WriteYaml a secret to vault

Package fake imports 7 packages (graph). Updated 2019-07-20. Refresh now. Tools for package owners.