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

package io

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


Package Files


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



Package io imports 6 packages (graph) and is imported by 1 packages. Updated 2020-07-03. Refresh now. Tools for package owners.