v1alpha

package
v0.0.18-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Architecture

type Architecture int

Architecture represents a target system's architecture

const (

	// AMD64 represents the x80_64 architecture
	AMD64 Architecture
)

func ParseArchitecture

func ParseArchitecture(name string) (Architecture, error)

ParseArchitecture attempts to convert a string to a Architecture

func (Architecture) MarshalText

func (a Architecture) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (Architecture) String

func (a Architecture) String() string

String implements the Stringer interface.

func (*Architecture) UnmarshalText

func (a *Architecture) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method

func (Architecture) Variant

func (a Architecture) Variant() ArchitectureVariant

Variant returns the architecture's Variant

type ArchitectureVariant

type ArchitectureVariant int

ArchitectureVariant represents a variant in the target system's architecture

const (

	// NoVariant indicates that there is no variant in the architecture
	NoVariant ArchitectureVariant
)

func ParseArchitectureVariant

func ParseArchitectureVariant(name string) (ArchitectureVariant, error)

ParseArchitectureVariant attempts to convert a string to a ArchitectureVariant

func (ArchitectureVariant) MarshalText

func (v ArchitectureVariant) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (ArchitectureVariant) String

func (v ArchitectureVariant) String() string

String implements the Stringer interface.

func (*ArchitectureVariant) UnmarshalText

func (v *ArchitectureVariant) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method

type Architectures

type Architectures []Architecture

Architectures is a list of architectures

type EmbeddedFileContents

type EmbeddedFileContents []byte

EmbeddedFileContents represents the contents of an embedded file

func (EmbeddedFileContents) MarshalText

func (c EmbeddedFileContents) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (*EmbeddedFileContents) UnmarshalText

func (c *EmbeddedFileContents) UnmarshalText(text []byte) (err error)

UnmarshalText implements the text unmarshaller method

type EmbeddedFiles

type EmbeddedFiles map[string]EmbeddedFileContents

EmbeddedFiles is a lit of embedded files

type OperatingSystem

type OperatingSystem int

OperatingSystem specifies the operating system

const (

	// Linux represents the linux operating system
	Linux OperatingSystem
)

func ParseOperatingSystem

func ParseOperatingSystem(name string) (OperatingSystem, error)

ParseOperatingSystem attempts to convert a string to a Architecture

func (OperatingSystem) MarshalText

func (o OperatingSystem) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (OperatingSystem) String

func (o OperatingSystem) String() string

String implements the Stringer interface.

func (*OperatingSystem) UnmarshalText

func (o *OperatingSystem) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method

type Version

type Version struct {
	Major int    // Major is the package's major version
	Minor int    // Minor is the package's minor version
	Patch int    // Patch is the package's patch version
	Tag   string // Tag is the package version's tag
}

Version represents the version of a lime package

func ParseVersion

func ParseVersion(v string) (*Version, error)

ParseVersion parses a version

func (*Version) MarshalText

func (v *Version) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (*Version) String

func (v *Version) String() string

func (*Version) UnmarshalText

func (v *Version) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method

Jump to

Keyboard shortcuts

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