kv

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientTLS

type ClientTLS struct {
	CA                 string
	Cert               string
	Key                string
	InsecureSkipVerify bool
}

ClientTLS holds TLS specific configurations as client CA, Cert and Key can be either path or file contents

func (*ClientTLS) CreateTLSConfig

func (clientTLS *ClientTLS) CreateTLSConfig() (*tls.Config, error)

CreateTLSConfig creates a TLS config from ClientTLS structures

type Provider

type Provider struct {
	provider.AbstractProvider `mapstructure:",squash" export:"true"`
	Endpoint                  string
	Prefix                    string
	TLS                       *ClientTLS
	Username                  string
	Password                  string
	// contains filtered or unexported fields
}

Provider holds common configurations of key-value providers.

func (*Provider) CreateStore

func (p *Provider) CreateStore(bucket string) (store.Store, error)

CreateStore creates the K/V store

func (*Provider) Package

func (p *Provider) Package(req *provider.Request) (*provider.Package, error)

Package return a package

func (*Provider) SetKVClient

func (p *Provider) SetKVClient(kvClient store.Store)

SetKVClient kvClient setter

func (*Provider) SetStoreType

func (p *Provider) SetStoreType(storeType store.Backend)

SetStoreType storeType setter, inherit from libkv

func (*Provider) Universes

func (p *Provider) Universes()

Universes return all available universes

func (*Provider) Version

func (p *Provider) Version() (*store.KVPair, error)

Version returns the version of the universe

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL