tfstate

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DsnippetQueryTmplate = `` /* 145-byte string literal not displayed */
View Source
const ResourceNameQueryTmplate = `` /* 144-byte string literal not displayed */
View Source
const ServiceQueryTmplate = `` /* 171-byte string literal not displayed */

query templates for gojq

Variables

This section is empty.

Functions

This section is empty.

Types

type DSnippetQueryParams

type DSnippetQueryParams struct {
	ResourceName string
}

type ResourceNameQueryParams

type ResourceNameQueryParams struct {
	ResourceType    string
	NestedBlockName string
	IDName          string
	ID              string
}

type ServiceQueryParams

type ServiceQueryParams struct {
	ServiceId       string
	NestedBlockName string
	Name            string
	AttributeName   string
}

type SetActivateTemplateParams added in v0.4.2

type SetActivateTemplateParams struct {
	ServiceId string
}

type SetActivateWAFTemplateParams added in v0.4.2

type SetActivateWAFTemplateParams struct {
	WafId string
}

type SetForceDestroyParams added in v0.4.0

type SetForceDestroyParams struct {
	ServiceId    string
	ResourceType string
}

type SetIndexKeyParams

type SetIndexKeyParams struct {
	ServiceId    string
	ResourceType string
	ResourceName string
	Name         string
}

type SetPackageFilenameParams added in v0.4.0

type SetPackageFilenameParams struct {
	ServiceId       string
	PackageFilename string
}

type TFState

type TFState struct {
	Value interface{}
}

func Load

func Load(workingDir string) (state *TFState, err error)

func (*TFState) AddTemplate

func (s *TFState) AddTemplate(tmpl string) (*TFStateWithTemplate, error)

func (TFState) Bytes

func (s TFState) Bytes() []byte

func (*TFState) Query

func (s *TFState) Query(query string) (*TFState, error)

func (*TFState) SetActivateAttribute added in v0.4.2

func (s *TFState) SetActivateAttribute(param SetActivateTemplateParams) (*TFState, error)

func (*TFState) SetActivateWAFAttribute added in v0.4.2

func (s *TFState) SetActivateWAFAttribute(param SetActivateWAFTemplateParams) (*TFState, error)

func (*TFState) SetForceDestroy added in v0.2.1

func (s *TFState) SetForceDestroy(param SetForceDestroyParams) (*TFState, error)

func (*TFState) SetIndexKey

func (s *TFState) SetIndexKey(param SetIndexKeyParams) (*TFState, error)

func (*TFState) SetManageAttributes

func (s *TFState) SetManageAttributes(serviceId string) (*TFState, error)

func (*TFState) SetPackageFilename added in v0.4.0

func (s *TFState) SetPackageFilename(param SetPackageFilenameParams) (*TFState, error)

func (*TFState) SetSensitiveAttributes

func (s *TFState) SetSensitiveAttributes(serviceId string, blockTypes map[string]struct{}) (*TFState, error)

func (TFState) String

func (s TFState) String() string

type TFStateWithTemplate

type TFStateWithTemplate struct {
	*template.Template
	*TFState
}

func (*TFStateWithTemplate) DSnippetQuery

func (s *TFStateWithTemplate) DSnippetQuery(params DSnippetQueryParams) (*TFState, error)

func (*TFStateWithTemplate) ResourceNameQuery

func (s *TFStateWithTemplate) ResourceNameQuery(params ResourceNameQueryParams) (*TFState, error)

func (*TFStateWithTemplate) ServiceQuery

func (s *TFStateWithTemplate) ServiceQuery(params ServiceQueryParams) (*TFState, error)

Jump to

Keyboard shortcuts

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