provider

package
v0.6.23 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 22 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 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

Types

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