Documentation ¶
Index ¶
- type Provisioner
- func (e *Provisioner) Accessed() map[string]string
- func (e *Provisioner) GenerateSubProvisioner(resName string, resUid project.ResourceUid) provisioners.Provisioner
- func (e *Provisioner) LookupOutput(keys ...string) (interface{}, error)
- func (e *Provisioner) Match(resUid project.ResourceUid) bool
- func (e *Provisioner) Provision(ctx context.Context, input *provisioners.Input) (*provisioners.ProvisionOutput, error)
- func (e *Provisioner) Uri() string
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 (e *Provisioner) Provision(ctx context.Context, input *provisioners.Input) (*provisioners.ProvisionOutput, error)
func (*Provisioner) Uri ¶
func (e *Provisioner) Uri() string
Click to show internal directories.
Click to hide internal directories.