model

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 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 Export

type Export struct {
	Name  string `json:"name" yaml:"name" toml:"name" xml:"name"`
	Value string `json:"value" yaml:"value" toml:"value" xml:"value"`
}

type Output

type Output struct {
	Key         string `json:"key" yaml:"key" toml:"key" xml:"key"`
	Value       string `json:"value" yaml:"value" toml:"value" xml:"value"`
	Description string `json:"description,omitempty" yaml:"description,omitempty" toml:"description,omitempty" xml:"description,omitempty"`
	ExportName  string `json:"export_name,omitempty" yaml:"export_name,omitempty" toml:"export_name,omitempty" xml:"export_name,omitempty"`
}

type Resource

type Resource struct {
	LogicalID   string `json:"logical_id" yaml:"logical_id" toml:"logical_id" xml:"logical_id"`
	PhysicalID  string `json:"physical_id" yaml:"physical_id" toml:"physical_id" xml:"physical_id"`
	Type        string `json:"type" yaml:"type" toml:"type" xml:"type"`
	Status      string `json:"status" yaml:"status" toml:"status" xml:"status"`
	LastUpdated string `json:"last_updated" yaml:"last_updated" toml:"last_updated" xml:"last_updated"`
}

type StackEvent added in v0.4.0

type StackEvent struct {
	Timestamp    string `json:"timestamp" yaml:"timestamp" toml:"timestamp" xml:"timestamp"`
	LogicalID    string `json:"logical_id" yaml:"logical_id" toml:"logical_id" xml:"logical_id"`
	Status       string `json:"status" yaml:"status" toml:"status" xml:"status"`
	StatusReason string `json:"status_reason,omitempty" yaml:"status_reason,omitempty" toml:"status_reason,omitempty" xml:"status_reason,omitempty"`
	ResourceType string `json:"resource_type" yaml:"resource_type" toml:"resource_type" xml:"resource_type"`
	PhysicalID   string `json:"physical_id,omitempty" yaml:"physical_id,omitempty" toml:"physical_id,omitempty" xml:"physical_id,omitempty"`
}

StackEvent holds a single CloudFormation stack event.

type StackEvents added in v0.4.0

type StackEvents struct {
	XMLName   xml.Name     `json:"-" yaml:"-" toml:"-" xml:"stack_events"`
	StackName string       `json:"stack_name" yaml:"stack_name" toml:"stack_name" xml:"stack_name"`
	Events    []StackEvent `json:"events" yaml:"events" toml:"events" xml:"event"`
}

StackEvents wraps a list of stack events for formatted output.

type StackInfo

type StackInfo struct {
	XMLName   xml.Name     `json:"-" yaml:"-" toml:"-" xml:"stack"`
	StackName string       `json:"stack_name" yaml:"stack_name" toml:"stack_name" xml:"stack_name"`
	StackID   string       `json:"stack_id" yaml:"stack_id" toml:"stack_id" xml:"stack_id"`
	Status    string       `json:"status" yaml:"status" toml:"status" xml:"status"`
	Resources []Resource   `json:"resources,omitempty" yaml:"resources,omitempty" toml:"resources,omitempty" xml:"resources>resource,omitempty"`
	Outputs   []Output     `json:"outputs,omitempty" yaml:"outputs,omitempty" toml:"outputs,omitempty" xml:"outputs>output,omitempty"`
	Exports   []Export     `json:"exports,omitempty" yaml:"exports,omitempty" toml:"exports,omitempty" xml:"exports>export,omitempty"`
	Events    []StackEvent `json:"events,omitempty" yaml:"events,omitempty" toml:"events,omitempty" xml:"events>event,omitempty"`
}

StackInfo holds all inspectable data for a CloudFormation stack.

type StackList

type StackList struct {
	XMLName xml.Name       `json:"-" yaml:"-" toml:"-" xml:"stacks"`
	Stacks  []StackSummary `json:"stacks" yaml:"stacks" toml:"stacks" xml:"stack"`
}

StackList wraps a list of stack summaries for formatted output.

type StackSummary

type StackSummary struct {
	StackName   string `json:"stack_name" yaml:"stack_name" toml:"stack_name" xml:"stack_name"`
	StackID     string `json:"stack_id" yaml:"stack_id" toml:"stack_id" xml:"stack_id"`
	Status      string `json:"status" yaml:"status" toml:"status" xml:"status"`
	CreatedAt   string `json:"created_at" yaml:"created_at" toml:"created_at" xml:"created_at"`
	UpdatedAt   string `json:"updated_at,omitempty" yaml:"updated_at,omitempty" toml:"updated_at,omitempty" xml:"updated_at,omitempty"`
	Description string `json:"description,omitempty" yaml:"description,omitempty" toml:"description,omitempty" xml:"description,omitempty"`
}

StackSummary is a brief overview of a stack, used by the ls command.

Jump to

Keyboard shortcuts

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