adapters

package
v0.0.0-...-8ca3ac7 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	Create(project string, projectType string, data []byte) error
	CreateKey(project string, projectType string, key string, data []byte) error

	Update(project string, projectType string, data []byte) error
	UpdateKey(project string, projectType string, key string, data []byte) error

	Get(project string, projectType string) ([]byte, error)
	GetKey(project string, projectType string, key string) ([]byte, error)

	Delete(project string, projectType string) error
	DeleteKey(project string, projectType string, key string) error
}

func NewDefaultAdapter

func NewDefaultAdapter() Adapter

func NewEnvAdapter

func NewEnvAdapter() Adapter

type Default

type Default struct{}

func (*Default) Create

func (e *Default) Create(project string, projectType string, data []byte) error

func (*Default) CreateKey

func (e *Default) CreateKey(project string, projectType string, key string, data []byte) error

func (*Default) Delete

func (e *Default) Delete(project string, projectType string) (err error)

func (*Default) DeleteKey

func (e *Default) DeleteKey(project string, projectType string, key string) error

func (*Default) Get

func (e *Default) Get(project string, projectType string) ([]byte, error)

func (*Default) GetKey

func (e *Default) GetKey(project string, projectType string, key string) ([]byte, error)

func (*Default) Update

func (e *Default) Update(project string, projectType string, data []byte) error

func (*Default) UpdateKey

func (e *Default) UpdateKey(project string, projectType string, key string, data []byte) error

type Env

type Env struct{}

func (*Env) Create

func (e *Env) Create(project string, projectType string, data []byte) error

func (*Env) CreateKey

func (e *Env) CreateKey(project string, projectType string, key string, data []byte) error

func (*Env) Delete

func (e *Env) Delete(project string, projectType string) (err error)

func (*Env) DeleteKey

func (e *Env) DeleteKey(project string, projectType string, key string) error

func (*Env) Get

func (e *Env) Get(project string, projectType string) ([]byte, error)

func (*Env) GetKey

func (e *Env) GetKey(project string, projectType string, key string) ([]byte, error)

func (*Env) Update

func (e *Env) Update(project string, projectType string, data []byte) error

func (*Env) UpdateKey

func (e *Env) UpdateKey(project string, projectType string, key string, data []byte) error

Jump to

Keyboard shortcuts

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