state

package
v0.0.0-...-074a105 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Dirname = ".hfc"

Dirname is the name of the state directory next to the configuration file.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

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

State represents the state directory for a project.

func Get

func Get(configPath string) (State, error)

Get returns the state associated with the configuration at the provided path, creating the state directory if necessary.

func (State) BinaryPath

func (s State) BinaryPath(name string) (string, error)

BinaryPath returns the relative file path to the named Go binary in the state directory.

func (State) LatestLambdaPackagePath

func (s State) LatestLambdaPackagePath() string

LatestLambdaPackagePath returns the absolute path to the file containing the S3 key of the latest Lambda deployment package.

func (State) Path

func (s State) Path(parts ...string) string

Path returns the absolute file path formed by joining the provided path elements to the state directory path.

Jump to

Keyboard shortcuts

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