build

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package build contains the models of build.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveFile added in v0.2.0

type ArchiveFile struct {
	Base   string
	Suffix string
}

ArchiveFile represents a file which has an executable file and extra files.

func (*ArchiveFile) Name added in v0.2.0

func (f *ArchiveFile) Name() string

Name returns the basename and the suffix.

type Artifact added in v1.1.0

type Artifact struct {
	Platform       Platform
	ExecutableFile ExecutableFile
	ArchiveFile    ArchiveFile
	DigestFile     DigestFile
}

Artifact represents a set of an executable, archive and digest file.

type DigestFile added in v0.2.0

type DigestFile struct {
	Base   string
	Suffix string
}

DigestFile represents a file which has a digest of an archive file.

func (*DigestFile) Name added in v0.2.0

func (f *DigestFile) Name() string

Name returns the basename and the suffix.

type ExecutableFile added in v0.2.0

type ExecutableFile struct {
	Base     string
	Platform Platform
}

ExecutableFile represents a file that is an outcome of go build.

func (*ExecutableFile) Name added in v0.2.0

func (f *ExecutableFile) Name() string

Name returns the basename and the suffix for the platform.

func (*ExecutableFile) Suffix added in v0.2.0

func (f *ExecutableFile) Suffix() string

Suffix returns the platform dependent suffix.

type GOARCH

type GOARCH string

type GOOS

type GOOS string

type Platform

type Platform struct {
	GOOS   GOOS
	GOARCH GOARCH
}

Platform represents a platform to run an executable.

func (Platform) String added in v0.2.0

func (p Platform) String() string

Jump to

Keyboard shortcuts

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