jx: github.com/jenkins-x/jx/pkg/io Index | Files | Directories

package io

import "github.com/jenkins-x/jx/pkg/io"

Index

Package Files

config_store.go

type ConfigStore Uses

type ConfigStore interface {
    // Write saves some secret data to the store
    Write(name string, bytes []byte) error

    // Read reads some secret data from the store
    Read(name string) ([]byte, error)

    // WriteObject writes a named object to the store
    WriteObject(name string, object interface{}) error

    // ReadObject reads an object from the store
    ReadObject(name string, object interface{}) error
}

ConfigStore provides an interface for storing configs

func NewFileStore Uses

func NewFileStore() ConfigStore

NewFileStore creates a ConfigStore that stores its data to the filesystem

func NewVaultStore Uses

func NewVaultStore(client vault.Client, path string) ConfigStore

NewVaultStore creates a new store which stores its data in Vault

Directories

PathSynopsis
secrets

Package io imports 6 packages (graph) and is imported by 4 packages. Updated 2019-10-10. Refresh now. Tools for package owners.