earthfile

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Earthfile

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

Earthfile represents a parsed Earthfile.

func ParseEarthfile

func ParseEarthfile(ctx context.Context, earthfile walker.FileSeeker) (Earthfile, error)

ParseEarthfile parses an Earthfile from the given FileSeeker.

func (Earthfile) FilterTargets

func (e Earthfile) FilterTargets(filter func(string) bool) []string

FilterTargets returns the names of the targets in the Earthfile that pass the given filter.

func (Earthfile) Targets

func (e Earthfile) Targets() []string

Targets returns the names of the targets in the Earthfile.

type EarthfileRef

type EarthfileRef struct {
	Path   string
	Target string
}

EarthfileRef represents a reference to an Earthfile and a target.

func ParseEarthfileRef

func ParseEarthfileRef(ref string) (EarthfileRef, error)

ParseEarthfileRef parses an Earthfile+Target pair.

Jump to

Keyboard shortcuts

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