providers

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExample

func NewExample(logger logging.Logger) (core.Provider, error)

NewExample creates new provider instance

Types

type Example

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

func (*Example) Delete

func (e *Example) Delete(kp core.KeyPath) error

Delete will delete entry

func (*Example) DeleteMapping

func (e *Example) DeleteMapping(kp core.KeyPath) error

DeleteMapping will delete the given path recessively

func (*Example) Get

func (e *Example) Get(p core.KeyPath) (*core.EnvEntry, error)

Get returns a single entry

func (*Example) GetMapping

func (e *Example) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

GetMapping returns a multiple entries

func (*Example) Name

func (e *Example) Name() string

Name return the provider name

func (*Example) Put

func (e *Example) Put(p core.KeyPath, val string) error

Put will create a new single entry

func (*Example) PutMapping

func (e *Example) PutMapping(p core.KeyPath, m map[string]string) error

PutMapping will create a multiple entries

Jump to

Keyboard shortcuts

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