mgp

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MageProject

type MageProject struct {
	ProjectName string
	GroupName   string
	BuildDir    string
	PackageName string
	LdFlags     string
	DckRegistry string
	DckImage    string
	ArtifactURL string
	GitURL      string
	// contains filtered or unexported fields
}

MageProject provides Mage dependent high level targets to reuse as is

func InitMageProject

func InitMageProject(workdir string, proj *MageProject) *MageProject

InitMageProject initializes MageProject

func (*MageProject) Build

func (p *MageProject) Build() error

Build builds binary in build dir

func (*MageProject) Clean

func (p *MageProject) Clean() error

Clean removes the build directory

func (*MageProject) DockerBuild added in v0.3.0

func (p *MageProject) DockerBuild() error

DockerBuild builds Docker image

func (*MageProject) DockerPush added in v0.3.0

func (p *MageProject) DockerPush() error

DockerPush pushes Docker image to artifacts repository

func (*MageProject) MageLibrary added in v0.3.1

func (p *MageProject) MageLibrary() *mgl.MageLibrary

MageLibrary gets Mage library used by this project

func (*MageProject) Package

func (p *MageProject) Package() error

Package packages cross platform binaries in build dir

func (*MageProject) PrintInfo added in v0.4.0

func (p *MageProject) PrintInfo()

PrintInfo prints information used internally

func (*MageProject) Test

func (p *MageProject) Test() error

Test runs tests with go test

func (*MageProject) Validate

func (p *MageProject) Validate() error

Validate runs go format and linters

Jump to

Keyboard shortcuts

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