source

package
v0.6.19 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive = archive.TarXZ[Source]

type Checksums added in v0.6.0

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

An 'Artifact' representing a Godot source archive checksums file.

func NewChecksums added in v0.6.0

func NewChecksums(v version.Version) (Checksums, error)

Returns a new 'Checksums' struct after validating the Godot version.

func (Checksums) Artifact added in v0.6.0

func (c Checksums) Artifact()

Artifact "registers" 'Checksums' as a Godot release artifact.

func (Checksums) Hash added in v0.6.0

func (c Checksums) Hash() hash.Hash

Hash returns a new 'hash.Hash' for computing the file hash of an executable.

func (Checksums) Name added in v0.6.0

func (c Checksums) Name() string

func (Checksums) Supports added in v0.6.0

func (c Checksums) Supports(_ Archive)

Supports "registers" 'Checksums' as containing checksums for the specified artifact type.

func (Checksums) Version added in v0.6.0

func (c Checksums) Version() version.Version

type Source

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

An 'Artifact' representing Godot source code for a specific version.

func New

func New(v version.Version) Source

Creates a new 'Source' for the specified 'Version'.

func (Source) Archivable

func (s Source) Archivable()

Allows 'Source' to be used by 'Archive' implementation.

func (Source) Artifact added in v0.6.0

func (s Source) Artifact()

Artifact "registers" 'Source' as a Godot release artifact.

func (Source) Checksumable added in v0.6.0

func (s Source) Checksumable()

Checksumable "registers" 'Source' as a Godot release artifact with published file checksums.

func (Source) Name

func (s Source) Name() string

Returns the name of the Godot source directory for the specified 'Version'.

NOTE: Godot names its executables in the format 'godot-<VERSION>'.

func (Source) String

func (s Source) String() string

func (Source) Version

func (s Source) Version() version.Version

Jump to

Keyboard shortcuts

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