env

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProviderFactory

func ProviderFactory(options plugin_v1.ProviderOptions) (plugin_v1.Provider, error)

ProviderFactory constructs a EnvironmentProvider. No configuration or credentials are required.

Types

type EnvironmentProvider

type EnvironmentProvider struct {
	Name string
}

EnvironmentProvider provides data values from the process environment.

func (*EnvironmentProvider) GetName

func (p *EnvironmentProvider) GetName() string

GetName returns the name of the provider

func (*EnvironmentProvider) GetValue

func (p *EnvironmentProvider) GetValue(id string) (result []byte, err error)

GetValue obtains a value by ID. Any environment is a recognized ID.

Jump to

Keyboard shortcuts

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