mgp

package
Version: v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 13 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 {
	// contains filtered or unexported fields
}

MageProject provides Mage dependent high level targets to reuse as is

func NewMageProject added in v0.6.0

func NewMageProject(workdir, projectName, packageName string, options ...MageProjectOption) *MageProject

NewMageProject constructs new MageLibrary instance

func (*MageProject) Build

func (p *MageProject) Build() error

Build builds binary in build dir

func (*MageProject) BuildWithDocker added in v0.5.0

func (p *MageProject) BuildWithDocker() error

BuildWithDocker builds binary in build dir using a Dockerfile.build file

func (*MageProject) ChangeLog added in v0.5.4

func (p *MageProject) ChangeLog() error

ChangeLog generates a ChangeLog based on git history

func (*MageProject) Clean

func (p *MageProject) Clean() error

Clean removes the build directory

func (*MageProject) CleanAll added in v0.5.0

func (p *MageProject) CleanAll() error

CleanAll removes the build directory and the docker image used for build

func (*MageProject) Deploy added in v0.5.10

func (p *MageProject) Deploy() error

Deploy deploys cross platform binaries to artifacts registry

func (*MageProject) DockerBuildImage added in v0.5.0

func (p *MageProject) DockerBuildImage() error

DockerBuildImage builds Docker image

func (*MageProject) DockerPushImage added in v0.5.0

func (p *MageProject) DockerPushImage() error

DockerPushImage pushes Docker image to a repository

func (*MageProject) MageLibrary

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

func (p *MageProject) PrintInfo() string

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

type MageProjectOption added in v0.6.0

type MageProjectOption func(*MageProject)

MageProjectOption defines an operation which set an option

func WithArtifactURL added in v0.6.0

func WithArtifactURL(val string) MageProjectOption

WithArtifactURL TODO

func WithBuildDir added in v0.6.0

func WithBuildDir(val string) MageProjectOption

WithBuildDir TODO

func WithCompileFlags added in v0.6.0

func WithCompileFlags(val string) MageProjectOption

WithCompileFlags TODO

func WithDockerAppPath added in v0.6.0

func WithDockerAppPath(val string) MageProjectOption

WithDockerAppPath TODO

func WithDockerImage added in v0.6.0

func WithDockerImage(val string) MageProjectOption

WithDockerImage TODO

func WithDockerRegistry added in v0.6.0

func WithDockerRegistry(val string) MageProjectOption

WithDockerRegistry TODO

func WithGitURL added in v0.6.0

func WithGitURL(val string) MageProjectOption

WithGitURL TODO

func WithGroupName added in v0.6.0

func WithGroupName(val string) MageProjectOption

WithGroupName TODO

func WithTestFlags added in v1.0.1

func WithTestFlags(val string) MageProjectOption

WithTestFlags TODO

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL