terraform

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDashboardHCL

func GenerateDashboardHCL(resourceLabel string, shiftWidth int, input []byte) (string, error)

Types

type DashboardWidgetFacet

type DashboardWidgetFacet struct {
	ShowOtherSeries bool `json:"showOtherSeries"`
}

type DashboardWidgetLegend

type DashboardWidgetLegend struct {
	Enabled bool `json:"enabled"`
}

type DashboardWidgetNRQLQuery

type DashboardWidgetNRQLQuery struct {
	AccountID int    `json:"accountId"`
	Query     string `json:"query"`
}

type DashboardWidgetRawConfiguration

type DashboardWidgetRawConfiguration struct {
	DataFormatters    []string                   `json:"dataFormatters"`
	NRQLQueries       []DashboardWidgetNRQLQuery `json:"nrqlQueries"`
	LinkedEntityGUIDs []string                   `json:"linkedEntityGuids"`
	Text              string                     `json:"text"`
	Facet             DashboardWidgetFacet       `json:"facet"`
	Legend            DashboardWidgetLegend      `json:"legend"`
	YAxisLeft         DashboardWidgetYAxisLeft   `json:"yAxisLeft"`
}

type DashboardWidgetYAxisLeft

type DashboardWidgetYAxisLeft struct {
	Zero bool `json:"zero"`
}

type HCLGen

type HCLGen struct {
	strings.Builder
	// contains filtered or unexported fields
}

func NewHCLGen

func NewHCLGen(shiftWidth int) *HCLGen

func (*HCLGen) WriteBlock

func (h *HCLGen) WriteBlock(name string, labels []string, f func())

func (*HCLGen) WriteIntAttribute

func (h *HCLGen) WriteIntAttribute(label string, value int)

func (*HCLGen) WriteIntAttributeIfNotZero

func (h *HCLGen) WriteIntAttributeIfNotZero(label string, value int)

func (*HCLGen) WriteMultilineStringAttribute

func (h *HCLGen) WriteMultilineStringAttribute(label string, value string)

func (*HCLGen) WriteMultilineStringAttributeIfNotEmpty

func (h *HCLGen) WriteMultilineStringAttributeIfNotEmpty(label string, value string)

func (*HCLGen) WriteStringAttribute

func (h *HCLGen) WriteStringAttribute(label string, value string)

func (*HCLGen) WriteStringAttributeIfNotEmpty

func (h *HCLGen) WriteStringAttributeIfNotEmpty(label string, value string)

func (*HCLGen) WriteStringSliceAttribute

func (h *HCLGen) WriteStringSliceAttribute(label string, value []string)

func (*HCLGen) WriteStringSliceAttributeIfNotEmpty

func (h *HCLGen) WriteStringSliceAttributeIfNotEmpty(label string, value []string)

Jump to

Keyboard shortcuts

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