mc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: Apache-2.0 Imports: 8 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 MageDir

type MageDir struct {
	Workdir string
	// contains filtered or unexported fields
}

MageDir holds the shareable information for Mage

func NewMageDir

func NewMageDir(workdir string) *MageDir

NewMageDir creates a Commons structure

func (*MageDir) DockerDetails

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

DockerDetails aggregates the information regarding docker

func (*MageDir) Format

func (c *MageDir) Format() error

Format formats code via gofmt

func (*MageDir) GitDetails

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

GitDetails aggregates the information regarding git

func (*MageDir) Lint

func (c *MageDir) Lint() error

Lint runs golint linter

func (*MageDir) ProjectDetails

func (c *MageDir) ProjectDetails() (*ProjectInfos, error)

ProjectDetails aggregates the information regarding the go project

func (*MageDir) Vet

func (c *MageDir) Vet() error

Vet runs go vet linter

type ProjectInfos

type ProjectInfos struct {
	Pkgs []string
	// contains filtered or unexported fields
}

ProjectInfos holds information regarding the go project

Jump to

Keyboard shortcuts

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