Documentation ¶
Index ¶
- type DockerInfos
- type GitInfos
- type MageLibrary
- func (c *MageLibrary) ChangeLog(filename string, artifactURL, gitURL string) error
- func (c *MageLibrary) DockerDetails(registry, image, user string) *DockerInfos
- func (c *MageLibrary) Format() error
- func (c *MageLibrary) GitDetails() (*GitInfos, error)
- func (c *MageLibrary) InstallDeps() error
- func (c *MageLibrary) Lint() error
- func (c *MageLibrary) PackageDetails() (*PackageInfos, error)
- func (c *MageLibrary) Version() string
- func (c *MageLibrary) Vet() error
- func (c *MageLibrary) Workdir() string
- func (c *MageLibrary) ZipFiles(filename string, files []string) error
- type PackageInfos
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) 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) 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) 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