inputgraph

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatError added in v0.7.23

func FormatError(err error) string

FormatError looks for a wrapped instance of Error in the error list. If one is found, it will prefix the error message with source file information associated with the error.

func ParseProjectCommand added in v0.7.23

func ParseProjectCommand(ctx context.Context, target domain.Target, console conslogging.ConsoleLogger) (string, string, error)

Types

type Error added in v0.7.23

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

Error represents an auto-skip error that can include the source file name and associated line number.

func (*Error) Error added in v0.7.23

func (e *Error) Error() string

type HashOpt added in v0.7.21

type HashOpt struct {
	Target         domain.Target
	Console        conslogging.ConsoleLogger
	CI             bool
	BuiltinArgs    variables.DefaultArgs
	OverridingVars *variables.Scope
}

HashOpt contains all of the options available to the hasher.

type Stats added in v0.8.0

type Stats struct {
	TargetsHashed   int
	TargetCacheHits int
	TargetsVisited  int
	StartTime       time.Time
	Duration        time.Duration
}

Stats contains some statistics about the hashing process.

func HashTarget

func HashTarget(ctx context.Context, opt HashOpt) ([]byte, Stats, error)

HashTarget produces a hash from an Earthly target.

Jump to

Keyboard shortcuts

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