Documentation
¶
Index ¶
- Constants
- type Record
- func (record Record) CompareTileName(o Record) int
- func (record Record) CompareVersion(o Record) int
- func (record Record) IsDevBuild() bool
- func (record Record) IsEquivalent(other Record, logger *log.Logger) bool
- func (record Record) Name() string
- func (record Record) SetTileDirectory(tileSourceDirectory string) (Record, error)
- func (record Record) WriteFile(tileSourceDirectory string) error
Constants ¶
View Source
const RecordsDirectory = "bake_records"
RecordsDirectory should be a sibling to Kilnfile or base.yml
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct { // SourceRevision is the commit checked out when the build was run SourceRevision string `yaml:"source_revision" json:"source_revision"` // Version is the tile version used for product template field `product_version` Version string `yaml:"version" json:"version"` // KilnVersion is the Kiln CLI version KilnVersion string `yaml:"kiln_version,omitempty" json:"kiln_version,omitempty"` // TileName might record the tile name used in baking because sometimes multiple tiles can be generated from the same tile source directory // An example of this is the two Tanzu Application Service tiles with different topologies listed on TanzuNetwork. TileName string `yaml:"tile_name,omitempty" json:"tile_name,omitempty"` // FileChecksum may be the SHA256 checksum of the baked tile. FileChecksum string `yaml:"file_checksum,omitempty" json:"file_checksum,omitempty"` // TileDirectory may be the directory containing tile source. TileDirectory string `yaml:"tile_directory,omitempty" json:"tile_directory,omitempty"` }
Record is created by the function
func NewRecord ¶
NewRecord parses build information from an OpsManger Product Template (aka metadata/metadata.yml)
func NewRecordFromFile ¶
NewRecordFromFile parses the product template and pulls the kiln metadata out. The SHA256 sum is also calculated for the file.
func (Record) CompareTileName ¶
func (Record) CompareVersion ¶
func (Record) IsDevBuild ¶
func (Record) IsEquivalent ¶
func (Record) SetTileDirectory ¶
Click to show internal directories.
Click to hide internal directories.