jsonoutput

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManagerFromFile

func NewManagerFromFile(path string) (*Manager, error)

func (*Manager) Error

func (m *Manager) Error() string

Error prints the error (if any)

func (*Manager) ShortSummaryString

func (m *Manager) ShortSummaryString() string

ShortSummaryString returns short one line summary of the changes

func (*Manager) TreeString

func (m *Manager) TreeString() string

TreeString returns a tree that looks like the `pulumi preview` console output

type Printer

type Printer interface {
	Print(Tree, bool, int) string
}

Printer is printer interface

type PulumiJSONChangeSummary

type PulumiJSONChangeSummary struct {
	Create  int `json:"create"`
	Delete  int `json:"delete"`
	Replace int `json:"replace"`
	Same    int `json:"same"`
	Update  int `json:"update"`
}

type PulumiJSONDiagnostics

type PulumiJSONDiagnostics struct {
	Urn      string `json:"urn,omitempty"`
	Message  string `json:"message"`
	Severity string `json:"severity"`
}

type PulumiJSONOutput

type PulumiJSONOutput struct {
	Steps         []PulumiJSONSteps       `json:"steps"`
	Diagnostics   []PulumiJSONDiagnostics `json:"diagnostics"`
	Duration      int64                   `json:"duration"`
	ChangeSummary PulumiJSONChangeSummary `json:"changeSummary"`
}

type PulumiJSONSteps

type PulumiJSONSteps struct {
	Op       string `json:"op"`
	Urn      string `json:"urn"`
	Provider string `json:"provider,omitempty"`

	DiffReasons []string `json:"diffReasons,omitempty"`
}

type Tree

type Tree interface {
	Add(text string) Tree
	AddTree(tree Tree)
	Items() []Tree
	Text(bool, int) string
	Print(bool) string
	SetCol1(string)
	SetCol2(string)
	SetCol3(string)
}

Tree is tree interface

func NewTree

func NewTree(text string) Tree

NewTree returns a new GoTree.Tree

Jump to

Keyboard shortcuts

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