Documentation ¶
Index ¶
- type Artifact
- type Target
- func (et Target) DebugString() string
- func (et Target) IsExternal() bool
- func (et Target) IsLocalExternal() bool
- func (et Target) IsLocalInternal() bool
- func (et Target) IsRemote() bool
- func (et Target) ProjectCanonical() string
- func (et Target) String() string
- func (et Target) StringCanonical() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
Artifact is an earthly artifact identifier.
func ParseArtifact ¶
ParseArtifact parses a string representation of a Artifact.
func (Artifact) StringCanonical ¶
StringCanonical returns a string representation of the Artifact.
type Target ¶
type Target struct { GitURL string // e.g. "github.com/earthly/earthly/examples/go" Tag string // e.g. "main" // Local representation. LocalPath string `json:"localPath"` // Target name. Target string `json:"target"` }
Target is an earthly target identifier.
func JoinTargets ¶ added in v0.3.0
JoinTargets returns the result of interpreting target2 as relative to target1.
func ParseTarget ¶
ParseTarget parses a string into a Target.
func (Target) DebugString ¶ added in v0.4.0
DebugString returns a string that can be printed out for debugging purposes
func (Target) IsExternal ¶
IsExternal returns whether the target is external to the current project.
func (Target) IsLocalExternal ¶
IsLocalExternal returns whether the target is a local, but external target.
func (Target) IsLocalInternal ¶
IsLocalInternal returns whether the target is a local.
func (Target) ProjectCanonical ¶
ProjectCanonical returns a string representation of the project of the target, in canonical form.
func (Target) StringCanonical ¶
StringCanonical returns a string representation of the Target, in canonical form.