ns

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: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NullstoneProfileEnvVar  = "NULLSTONE_PROFILE"
	DefaultNullstoneProfile = "default"
)

Variables

This section is empty.

Functions

func GetWorkspaceConfig added in v0.3.0

func GetWorkspaceConfig(ctx context.Context, config api.Config, target types.WorkspaceTarget) (*types.RunConfig, error)

func LoadProfile added in v0.6.0

func LoadProfile() (*config.Profile, api.Config, error)

func NameserversToProtov5 added in v0.4.1

func NameserversToProtov5(s types.Nameservers) tftypes.Value

func NewTfeConfig

func NewTfeConfig(apiConfig api.Config) *tfe.Config

func TftypeFromCtyType

func TftypeFromCtyType(in cty.Type) (tftypes.Type, error)

TFtypeFromCtyType is lifted from github.com/hashicorp/terraform-plugin-sdk/internal/plugin/convert It's very odd that this isn't exported because it was very valuable to parsing outputs

Types

type Output

type Output struct {
	Type  *cty.Type       `json:"type"`
	Value json.RawMessage `json:"value"`
}

type Outputs

type Outputs map[string]Output

func (Outputs) ToProtov5

func (o Outputs) ToProtov5() (tftypes.Value, error)

type StateFile

type StateFile struct {
	Version          int     `json:"version"`
	TerraformVersion string  `json:"terraform_version"`
	Serial           int64   `json:"serial"`
	Lineage          string  `json:"lineage"`
	Outputs          Outputs `json:"outputs"`
}

func GetStateFile added in v0.3.0

func GetStateFile(tfeClient *tfe.Client, orgName string, workspaceName string) (*StateFile, error)

Jump to

Keyboard shortcuts

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