Documentation ¶
Index ¶
- type Adapter
- type Default
- func (e *Default) Create(project string, projectType string, data []byte) error
- func (e *Default) CreateKey(project string, projectType string, key string, data []byte) error
- func (e *Default) Delete(project string, projectType string) (err error)
- func (e *Default) DeleteKey(project string, projectType string, key string) error
- func (e *Default) Get(project string, projectType string) ([]byte, error)
- func (e *Default) GetKey(project string, projectType string, key string) ([]byte, error)
- func (e *Default) Update(project string, projectType string, data []byte) error
- func (e *Default) UpdateKey(project string, projectType string, key string, data []byte) error
- type Env
- func (e *Env) Create(project string, projectType string, data []byte) error
- func (e *Env) CreateKey(project string, projectType string, key string, data []byte) error
- func (e *Env) Delete(project string, projectType string) (err error)
- func (e *Env) DeleteKey(project string, projectType string, key string) error
- func (e *Env) Get(project string, projectType string) ([]byte, error)
- func (e *Env) GetKey(project string, projectType string, key string) ([]byte, error)
- func (e *Env) Update(project string, projectType string, data []byte) error
- func (e *Env) UpdateKey(project string, projectType string, key string, data []byte) error
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{}
Click to show internal directories.
Click to hide internal directories.