commit

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package commit contains logic for providing commit data to Packer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path      string `mapstructure:"path"`
	CommitIsh string `mapstructure:"commit_ish"`
}

func (*Config) FlatMapstructure

func (*Config) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec }

FlatMapstructure returns a new FlatConfig. FlatConfig is an auto-generated flat version of Config. Where the contents a fields with a `mapstructure:,squash` tag are bubbled up.

type Datasource

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

func (*Datasource) ConfigSpec

func (d *Datasource) ConfigSpec() hcldec.ObjectSpec

func (*Datasource) Configure

func (d *Datasource) Configure(raws ...interface{}) error

func (*Datasource) Execute

func (d *Datasource) Execute() (cty.Value, error)

func (*Datasource) OutputSpec

func (d *Datasource) OutputSpec() hcldec.ObjectSpec

type DatasourceOutput

type DatasourceOutput struct {
	Hash         string   `mapstructure:"hash"`
	Branches     []string `mapstructure:"branches"`
	Author       string   `mapstructure:"author"`
	Committer    string   `mapstructure:"committer"`
	Timestamp    string   `mapstructure:"timestamp"`
	PGPSignature string   `mapstructure:"pgp_signature"`
	Message      string   `mapstructure:"message"`
	TreeHash     string   `mapstructure:"tree_hash"`
	ParentHashes []string `mapstructure:"parent_hashes"`
}

func (*DatasourceOutput) FlatMapstructure

func (*DatasourceOutput) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec }

FlatMapstructure returns a new FlatDatasourceOutput. FlatDatasourceOutput is an auto-generated flat version of DatasourceOutput. Where the contents a fields with a `mapstructure:,squash` tag are bubbled up.

type FlatConfig

type FlatConfig struct {
	Path      *string `mapstructure:"path" cty:"path" hcl:"path"`
	CommitIsh *string `mapstructure:"commit_ish" cty:"commit_ish" hcl:"commit_ish"`
}

FlatConfig is an auto-generated flat version of Config. Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.

func (*FlatConfig) HCL2Spec

func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec

HCL2Spec returns the hcl spec of a Config. This spec is used by HCL to read the fields of Config. The decoded values from this spec will then be applied to a FlatConfig.

type FlatDatasourceOutput

type FlatDatasourceOutput struct {
	Hash         *string  `mapstructure:"hash" cty:"hash" hcl:"hash"`
	Branches     []string `mapstructure:"branches" cty:"branches" hcl:"branches"`
	Author       *string  `mapstructure:"author" cty:"author" hcl:"author"`
	Committer    *string  `mapstructure:"committer" cty:"committer" hcl:"committer"`
	Timestamp    *string  `mapstructure:"timestamp" cty:"timestamp" hcl:"timestamp"`
	PGPSignature *string  `mapstructure:"pgp_signature" cty:"pgp_signature" hcl:"pgp_signature"`
	Message      *string  `mapstructure:"message" cty:"message" hcl:"message"`
	TreeHash     *string  `mapstructure:"tree_hash" cty:"tree_hash" hcl:"tree_hash"`
	ParentHashes []string `mapstructure:"parent_hashes" cty:"parent_hashes" hcl:"parent_hashes"`
}

FlatDatasourceOutput is an auto-generated flat version of DatasourceOutput. Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.

func (*FlatDatasourceOutput) HCL2Spec

func (*FlatDatasourceOutput) HCL2Spec() map[string]hcldec.Spec

HCL2Spec returns the hcl spec of a DatasourceOutput. This spec is used by HCL to read the fields of DatasourceOutput. The decoded values from this spec will then be applied to a FlatDatasourceOutput.

Jump to

Keyboard shortcuts

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