types

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change struct {
	Resource Resource `json:"resource"`
	Action   string   `json:"action"`
}

type Changes

type Changes struct {
	Add       int    `json:"add"`
	Change    int    `json:"change"`
	Remove    int    `json:"remove"`
	Operation string `json:"operation"`
}

type DesiredTFState

type DesiredTFState []Resource

type DiagnosticDetail

type DiagnosticDetail struct {
	Severity string `json:"severity"`
	Summary  string `json:"summary"`
	Address  string `json:"address"`
	Detail   string `json:"detail"`
}

type Errored

type Errored struct {
	ErroredOut   bool   `json:"errored_out"`
	ErrorSummary string `json:"error_context,omitempty"`
}

type Hook

type Hook struct {
	Resource Resource `json:"resource,omitempty"`
	Action   string   `json:"action"`
}

type Resource

type Resource struct {
	Addr         string  `json:"addr"`
	Resource     string  `json:"resource"`
	ResourceType string  `json:"resource_type"`
	ResourceName string  `json:"resource_name"`
	Provider     string  `json:"implied_provider"`
	Errored      Errored `json:"errored,omitempty"`
}

type TFLogLine

type TFLogLine struct {
	Level      string           `json:"@level"`
	Message    string           `json:"@message"`
	Timestamp  string           `json:"@timestamp"`
	Type       TerraformEvent   `json:"type"`
	Hook       Hook             `json:"hook,omitempty"`
	Change     Change           `json:"change,omitempty"`
	Changes    Changes          `json:"changes,omitempty"`
	Diagnostic DiagnosticDetail `json:"diagnostic"`
}

func ToProvisionerType

func ToProvisionerType(pbTFLog *pb.TerraformLog) *TFLogLine

func (*TFLogLine) ToPBType

func (t *TFLogLine) ToPBType() *pb.TerraformLog

type TerraformEvent

type TerraformEvent string
const (
	PlannedChange TerraformEvent = "planned_change"
	ChangeSummary TerraformEvent = "change_summary"
	ApplyStart    TerraformEvent = "apply_start"
	ApplyProgress TerraformEvent = "apply_progress"
	ApplyErrored  TerraformEvent = "apply_errored"
	ApplyComplete TerraformEvent = "apply_complete"
	Diagnostic    TerraformEvent = "diagnostic"
)

Jump to

Keyboard shortcuts

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