Documentation ¶
Index ¶
- Constants
- func MapToTfValue(m map[string]string) tftypes.Value
- func Mock(version string, getNsConfig func() api.Config, getTfeConfig func() *tfe.Config, ...) tfprotov5.ProviderServer
- func New(version string) tfprotov5.ProviderServer
- func SliceToTfSet(s []string) tftypes.Value
- func TfSetValueToStringSlice(tfVal tftypes.Value) []string
- func TfValueToMap(tfVal tftypes.Value) map[string]string
- type EnvVar
- type EnvVars
- type ErrViaConnectionNotFound
- type PlanConfig
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
func SliceToTfSet ¶ added in v0.6.24
func TfSetValueToStringSlice ¶ added in v0.6.24
Types ¶
type EnvVars ¶ added in v0.6.24
func NewEnvVars ¶ added in v0.6.24
func (EnvVars) Interpolate ¶ added in v0.6.24
func (m EnvVars) Interpolate()
func (EnvVars) SecretKeys ¶ added in v0.6.24
func (EnvVars) SecretRefs ¶ added in v0.6.24
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:
- Load `.nullstone/active-workspace.yml`
- If not found, load `.nullstone.json`
- Fall back to environment variables for each attribute
func (PlanConfig) WorkspaceTarget ¶ added in v0.5.0
func (c PlanConfig) WorkspaceTarget() types.WorkspaceTarget
Source Files ¶
- config_utils.go
- data_app_connection.go
- data_app_env.go
- data_connection.go
- data_domain.go
- data_env.go
- data_env_variables.go
- data_secret_keys.go
- data_subdomain.go
- data_workspace.go
- env_vars.go
- follow_via.go
- id.go
- plan_config.go
- provider.go
- resource_autogen_subdomain.go
- resource_autogen_subdomain_delegation.go
Click to show internal directories.
Click to hide internal directories.