env

package
v1.0.1003 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New - Create New ENV Provider

Types

type Provider

type Provider struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Provider) CurrentKey

func (c *Provider) CurrentKey() string

func (*Provider) CurrentVersion

func (c *Provider) CurrentVersion() string

func (*Provider) CurrentVersionInt

func (c *Provider) CurrentVersionInt() int

func (*Provider) Decrypt

func (c *Provider) Decrypt(keyVersion int, data []byte) (rawData []byte, err error)

func (*Provider) DecryptMany

func (c *Provider) DecryptMany(keyVersion int, data ...[]byte) (rawData [][]byte, err error)

func (*Provider) Encrypt

func (c *Provider) Encrypt(keyVersion int, data []byte) (cryptData []byte, err error)

Encrypt encrypted data

func (*Provider) EncryptMany

func (c *Provider) EncryptMany(keyVersion int, data ...[]byte) (cryptData [][]byte, err error)

func (*Provider) GetKeyVersion

func (c *Provider) GetKeyVersion(v int) string

func (*Provider) Init

func (c *Provider) Init() error

func (*Provider) KeyId

func (c *Provider) KeyId() string

func (*Provider) Keys

func (c *Provider) Keys() (res string)

func (*Provider) Len

func (c *Provider) Len() int

func (*Provider) Provider

func (c *Provider) Provider() string

func (*Provider) SwitchNextVersion

func (c *Provider) SwitchNextVersion(version int) error

func (*Provider) Type

func (c *Provider) Type() string

func (*Provider) Version

func (c *Provider) Version() int

Jump to

Keyboard shortcuts

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