Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
type Attribute struct { ID uint `sql:"AUTO_INCREMENT" gorm:"primary_key" json:"-"` ResourceID sql.NullInt64 `gorm:"index" json:"-"` Key string `gorm:"index" json:"key"` Value string `json:"value"` }
Attribute is a Terraform attribute in a Resource
type Module ¶
type Module struct { ID uint `sql:"AUTO_INCREMENT" gorm:"primary_key" json:"-"` StateID sql.NullInt64 `gorm:"index" json:"-"` Path string `json:"path"` Resources []Resource `json:"resources"` }
Module is a Terraform module in a State
type Resource ¶
type Resource struct { ID uint `sql:"AUTO_INCREMENT" gorm:"primary_key" json:"-"` ModuleID sql.NullInt64 `gorm:"index" json:"-"` Type string `gorm:"index" json:"type"` Name string `gorm:"index" json:"name"` Attributes []Attribute `json:"attributes"` }
Resource is a Terraform resource in a Module
type ResourceDiff ¶
type ResourceDiff struct { OnlyInOld map[string]string `json:"only_in_old"` OnlyInNew map[string]string `json:"only_in_new"` UnifiedDiff string `json:"unified_diff"` }
ResourceDiff represents a diff between two versions of a Resource
type SearchResult ¶
type SearchResult struct { Path string `gorm:"column:path" json:"path"` VersionID string `gorm:"column:version_id" json:"version_id"` TFVersion string `gorm:"column:tf_version" json:"tf_version"` Serial int64 `gorm:"column:serial" json:"serial"` ModulePath string `gorm:"column:module_path" json:"module_path"` ResourceType string `gorm:"column:type" json:"resource_type"` ResourceName string `gorm:"column:name" json:"resource_name"` AttributeKey string `gorm:"column:key" json:"attribute_key"` AttributeValue string `gorm:"column:value" json:"attribute_value"` }
SearchResult returns a single search result
type State ¶
type State struct { gorm.Model `json:"-"` Path string `gorm:"index" json:"path"` Version Version `json:"version"` VersionID sql.NullInt64 `gorm:"index" json:"-"` TFVersion string `json:"terraform_version"` Serial int64 `json:"serial"` Lineage string `json:"lineage"` Modules []Module `json:"modules"` }
State is a Terraform State
type StateCompare ¶
type StateCompare struct { Stats struct { From StateInfo `json:"from"` To StateInfo `json:"to"` } `json:"stats"` Differences struct { OnlyInOld map[string]string `json:"only_in_old"` OnlyInNew map[string]string `json:"only_in_new"` InBoth []string `json:"in_both"` ResourceDiff map[string]ResourceDiff `json:"resource_diff"` } `json:"differences"` }
StateCompare represents a diff between two versions of a State
type StateInfo ¶
type StateInfo struct { Path string `json:"path"` VersionID string `json:"version_id"` ResourceCount int `json:"resource_count"` TFVersion string `json:"terraform_version"` Serial int64 `json:"serial"` }
StateInfo stores general information and stats for a State
type StateStat ¶
type StateStat struct { Path string `json:"path"` TFVersion string `json:"terraform_version"` Serial int64 `json:"serial"` VersionID string `json:"version_id"` LastModified time.Time `json:"last_modified"` ResourceCount int `json:"resource_count"` }
StateStat stores State stats NOTE: do we want to merge this with StateInfo?
Click to show internal directories.
Click to hide internal directories.