build

package
v3.19.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OptionSign bool = false
)

Functions

func GetGCloudInstanceMetadata

func GetGCloudInstanceMetadata(name string) (string, error)

func GetGCloudProjectMetadata

func GetGCloudProjectMetadata(name string) (string, error)

func GetReleaseTargets

func GetReleaseTargets(goOS build.OS, goArch build.Arch) []build.Target

func GithubCreateRelease

func GithubCreateRelease(ctx context.Context, account *GithubAccount, tag string, pre bool) (int64, error)

func GithubGetFileSHA

func GithubGetFileSHA(ctx context.Context, account *GithubAccount, path string) (string, error)

func GithubUploadAsset

func GithubUploadAsset(ctx context.Context, account *GithubAccount, id int64, file string) error

func GithubUploadFile

func GithubUploadFile(ctx context.Context, account *GithubAccount, path string, file string) error

Types

type FileMetadata

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

func GenerateFileMetadata

func GenerateFileMetadata(file string) (*FileMetadata, error)

func (*FileMetadata) Checksum

func (meta *FileMetadata) Checksum() string

type FileMetadataWriter

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

func NewFileMetadataWriter

func NewFileMetadataWriter(file string) (*FileMetadataWriter, error)

func (*FileMetadataWriter) Append

func (w *FileMetadataWriter) Append(metadata *FileMetadata)

func (*FileMetadataWriter) Close

func (w *FileMetadataWriter) Close() error

type GithubAccount

type GithubAccount struct {
	Name  string
	Email string
	Org   string
	Repo  string
	Token string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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