Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Changes ¶
type JSonPlanSummary ¶
JSonPlanSummary is a summary based on the actual terraform plan
func (*JSonPlanSummary) ChangedResources ¶
func (j *JSonPlanSummary) ChangedResources() string
func (*JSonPlanSummary) Changes ¶
func (j *JSonPlanSummary) Changes() Changes
func (*JSonPlanSummary) Children ¶
func (j *JSonPlanSummary) Children() []PlanSummary
func (*JSonPlanSummary) Name ¶
func (j *JSonPlanSummary) Name() string
func (*JSonPlanSummary) UpToDate ¶
func (j *JSonPlanSummary) UpToDate() bool
type PlanDir ¶
type PlanDir struct {
// contains filtered or unexported fields
}
func (*PlanDir) ChangedResources ¶
func (*PlanDir) Children ¶
func (p *PlanDir) Children() []PlanSummary
type PlanSummary ¶
type PlanSummary interface { // Name is the name of the grouping (environment, plane, whatever) Name() string // Changes calculates the number of additions, changes, and deletions Changes() Changes UpToDate() bool Children() []PlanSummary ChangedResources() string }
func ReadPlan ¶
func ReadPlan(file string) (PlanSummary, error)
type SummaryData ¶
type SummaryData struct { Name string `json:"name"` Changes Changes `json:"changes"` Children []PlanSummary `json:"children,omitempty" ` ChangedResources string `json:"changed-resources,omitempty"` }
Click to show internal directories.
Click to hide internal directories.