env

package
v0.0.1-18 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 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.

func (*EnvironmentProvider) GetValues added in v1.7.1

func (p *EnvironmentProvider) GetValues(ids ...string) (map[string]plugin_v1.ProviderResponse, error)

GetValues takes in variable ids and returns their resolved values. This method is needed to the Provider interface

Jump to

Keyboard shortcuts

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