lock

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lockfile

type Lockfile struct {
	Providers []ProviderBlock `hcl:"provider,block"`
}

func ReadLocksFromFile

func ReadLocksFromFile(filename string) (*Lockfile, error)

func (*Lockfile) GetProviderByAddress

func (l *Lockfile) GetProviderByAddress(addr *ProviderAddress) *ProviderBlock

type ProviderAddress

type ProviderAddress struct {
	Type      string
	Namespace string
	Hostname  string
}

ProviderAddress encapsulates a single provider type. In the future this will be extended to include additional fields including Namespace and SourceHost

func (*ProviderAddress) String

func (p *ProviderAddress) String() string

type ProviderBlock

type ProviderBlock struct {
	Address     string   `hcl:"address,label"`
	Version     string   `hcl:"version,attr"`
	Constraints string   `hcl:"constraints,optional"`
	Hashes      []string `hcl:"hashes,optional"`
}

Jump to

Keyboard shortcuts

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