artifact

package
v0.6.20 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingPath = errors.New("missing path")

Functions

This section is empty.

Types

type Artifact

type Artifact interface {
	Named
	Versioned

	Artifact()
}

An interface for different Godot-related files andfolder structures which 'gdenv' needs to interact with.

type Local

type Local[T Artifact] struct {
	Artifact T
	Path     string
}

A wrapper around an 'Artifact' which is locally-available on the file system.

func (Local[T]) Exists

func (l Local[T]) Exists() bool

Returns whether the downloaded file exists on the local file system.

type Named added in v0.6.0

type Named interface {
	Name() string
}

An interface for any artifacts which have a specific name.

type Platformed

type Platformed interface {
	Platform() platform.Platform
}

An interface for any artifacts which are tied to a specific operating system and CPU architecture.

type Remote

type Remote[T Artifact] struct {
	Artifact T
	URL      *url.URL
}

A wrapper around an 'Artifact' which is hosted on the internet.

type Versioned

type Versioned interface {
	Version() version.Version
}

An interface for any artifacts which are tied to a specific version of Godot.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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