repositories

package
v0.0.0-...-24d9d29 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: BSD-2-Clause Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCredentialsClient

func NewCredentialsClient(ctx context.Context, target, ca, cert, key string) (types.CredentialsClient, error)

Types

type BoltDB

type BoltDB struct {
	// contains filtered or unexported fields
}

func OpenBoltDB

func OpenBoltDB(file string, mode os.FileMode, opts *bbolt.Options) (out BoltDB, err error)

func (BoltDB) Delete

func (db BoltDB) Delete(ctx context.Context, id string) (err error)

func (BoltDB) Get

func (db BoltDB) Get(ctx context.Context, id string) (output types.Credential, err error)

func (BoltDB) GetAllMetadata

func (db BoltDB) GetAllMetadata(ctx context.Context, sourceHost string, errch chan<- error) (output <-chan types.Metadata)

func (BoltDB) Put

func (db BoltDB) Put(ctx context.Context, c types.Credential) (err error)

type RedisConn

type RedisConn struct {
	// contains filtered or unexported fields
}

func NewRedisConn

func NewRedisConn(networkType, address string, connCount uint, options ...radix.PoolOpt) (c RedisConn, err error)

func (RedisConn) Delete

func (conn RedisConn) Delete(ctx context.Context, id string) (err error)

func (RedisConn) Get

func (conn RedisConn) Get(ctx context.Context, id string) (output types.Credential, err error)

func (RedisConn) GetAllMetadata

func (conn RedisConn) GetAllMetadata(ctx context.Context, sourceHost string, errch chan<- error) (output <-chan types.Metadata)

func (RedisConn) Put

func (conn RedisConn) Put(ctx context.Context, c types.Credential) (err error)

Jump to

Keyboard shortcuts

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