provider

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeployInfoVersionEnvVar   = "NULLSTONE_DEPLOY_VERSION"
	DeployInfoCommitShaEnvVar = "NULLSTONE_DEPLOY_COMMIT_SHA"
)

Variables

This section is empty.

Functions

func MapToTfValue added in v0.6.24

func MapToTfValue(m map[string]string) tftypes.Value

func Mock added in v0.6.0

func Mock(version string, getNsConfig func() api.Config, getTfeConfig func() *tfe.Config, alterPlanConfig func(config *PlanConfig)) tfprotov5.ProviderServer

func New

func New(version string) tfprotov5.ProviderServer

func SliceToTfSet added in v0.6.24

func SliceToTfSet(s []string) tftypes.Value

func TfSetValueToStringSlice added in v0.6.24

func TfSetValueToStringSlice(tfVal tftypes.Value) []string

func TfValueToMap added in v0.6.24

func TfValueToMap(tfVal tftypes.Value) map[string]string

Types

type EnvVar added in v0.6.24

type EnvVar struct {
	Value       string
	IsSensitive bool
	SecretRef   *string
}

type EnvVars added in v0.6.24

type EnvVars map[string]EnvVar

func NewEnvVars added in v0.6.24

func NewEnvVars(envVars map[string]string, secrets map[string]string) EnvVars

func (EnvVars) EnvVars added in v0.6.24

func (m EnvVars) EnvVars() map[string]string

func (EnvVars) Hash added in v0.6.24

func (m EnvVars) Hash() string

func (EnvVars) Interpolate added in v0.6.24

func (m EnvVars) Interpolate()

func (EnvVars) KeysHash added in v0.6.24

func (m EnvVars) KeysHash() string

func (EnvVars) SecretKeys added in v0.6.24

func (m EnvVars) SecretKeys() []string

func (EnvVars) SecretRefs added in v0.6.24

func (m EnvVars) SecretRefs() map[string]string

func (EnvVars) Secrets added in v0.6.24

func (m EnvVars) Secrets() map[string]string

type ErrViaConnectionNotFound added in v0.5.9

type ErrViaConnectionNotFound struct {
	Workspace types.WorkspaceTarget
	Via       string
}

func (*ErrViaConnectionNotFound) Error added in v0.5.10

func (e *ErrViaConnectionNotFound) Error() string

func (*ErrViaConnectionNotFound) Is added in v0.5.10

func (e *ErrViaConnectionNotFound) Is(target error) bool

Is implements error wrapping Is(error) bool interface

type PlanConfig added in v0.2.0

type PlanConfig workspaces.Manifest

func LoadPlanConfig added in v0.6.0

func LoadPlanConfig() (PlanConfig, error)

LoadPlanConfig loads nullstone context for the current workspace Originally, this was in a file named `.nullstone.json`, but moved to `.nullstone/active-workspace.yml` As a result, this function will attempt the following:

  1. Load `.nullstone/active-workspace.yml`
  2. If not found, load `.nullstone.json`
  3. Fall back to environment variables for each attribute

func (PlanConfig) WorkspaceTarget added in v0.5.0

func (c PlanConfig) WorkspaceTarget() types.WorkspaceTarget

Jump to

Keyboard shortcuts

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