mgl

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerInfos

type DockerInfos struct {
	Registry string
	Image    string
	Usr      string
	Pwd      string
	// contains filtered or unexported fields
}

DockerInfos holds information regarding docker

type GitInfos

type GitInfos struct {
	Rev            string
	TagAtRev       string
	LatestTag      string
	RevAtLatestTag string
	// contains filtered or unexported fields
}

GitInfos holds information regarding git

type MageLibrary

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

MageLibrary provides Mage independent functions to build its own targets

func NewMageLibrary

func NewMageLibrary(workdir string) *MageLibrary

NewMageLibrary constructs new MageLibrary instance

func (*MageLibrary) ChangeLog

func (c *MageLibrary) ChangeLog(filename string, artifactURL, gitURL string) error

ChangeLog generates a ChangeLog based on git history

func (*MageLibrary) DockerDetails

func (c *MageLibrary) DockerDetails(registry, image, user string) *DockerInfos

DockerDetails aggregates the information regarding docker

func (*MageLibrary) Format

func (c *MageLibrary) Format() error

Format formats code via gofmt

func (*MageLibrary) GitDetails

func (c *MageLibrary) GitDetails() (*GitInfos, error)

GitDetails aggregates the information regarding git

func (*MageLibrary) InstallDeps

func (c *MageLibrary) InstallDeps() error

InstallDeps installs the additional dependencies: goimports & golint

func (*MageLibrary) Lint

func (c *MageLibrary) Lint() error

Lint runs golint linter

func (*MageLibrary) PackageDetails

func (c *MageLibrary) PackageDetails() (*PackageInfos, error)

PackageDetails aggregates the package information regarding the go project

func (*MageLibrary) Version

func (c *MageLibrary) Version() string

Version extracts version from git tag

func (*MageLibrary) Vet

func (c *MageLibrary) Vet() error

Vet runs go vet linter

func (*MageLibrary) Workdir added in v0.4.0

func (c *MageLibrary) Workdir() string

Workdir returns workdir used

func (*MageLibrary) ZipFiles

func (c *MageLibrary) ZipFiles(filename string, files []string) error

ZipFiles compresses one or many files into a single zip archive file. The original code was published under MIT licence under https://golangcode.com/create-zip-files-in-go/

type PackageInfos

type PackageInfos struct {
	Names []string
	// contains filtered or unexported fields
}

PackageInfos holds information regarding the go project

Jump to

Keyboard shortcuts

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