envprov

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provisioner

type Provisioner struct {
	// LookupFunc is an environment variable LookupFunc function, if nil this will be defaulted to os.LookupEnv
	LookupFunc func(key string) (string, bool)
	// contains filtered or unexported fields
}

The Provisioner is an environment provision which returns a suitable expression for accessing an environment variable within the compose project at deploy time. This provisioner also tracks what env vars are accessed so that they can be added to the .env file later.

func (*Provisioner) Accessed

func (e *Provisioner) Accessed() map[string]string

func (*Provisioner) GenerateSubProvisioner

func (e *Provisioner) GenerateSubProvisioner(resName string, resUid project.ResourceUid) provisioners.Provisioner

func (*Provisioner) LookupOutput

func (e *Provisioner) LookupOutput(keys ...string) (interface{}, error)

func (*Provisioner) Match

func (e *Provisioner) Match(resUid project.ResourceUid) bool

func (*Provisioner) Provision

func (*Provisioner) Uri

func (e *Provisioner) Uri() string

Jump to

Keyboard shortcuts

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