mymg

package module
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 20 Imported by: 0

README

mymg

Overlay to mage that provides a setup defined framework to build and deploy Go projects

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auto added in v0.0.3

func Auto() error

func AutoStatus added in v0.1.11

func AutoStatus() error

func Build

func Build() error

A build step that requires additional params, or platform specific steps for example

func BuildCross

func BuildCross() error

func BumpVersion

func BumpVersion() error

func Clean

func Clean()

func Comment added in v0.0.16

func Comment()

func Convert added in v0.1.5

func Convert()

func Display added in v0.0.16

func Display()

func Format

func Format() error

Format your go code

func GenConf added in v0.1.0

func GenConf()

func Help

func Help()

func Install

func Install() error

func Lint

func Lint() error

Perform Lint checks on your project

func NoAuto added in v0.0.4

func NoAuto() error

func PPK

func PPK() error

Used with Ping on SCP, host must be available via ping check, requires ppk setup

func Release

func Release() error

func Targets

func Targets()

func Test

func Test() error

Run Tests on your project

func Vet

func Vet() error

Vet your code

Types

type Apps added in v0.1.0

type Apps struct {
	MD5Exe    string `json:"md5Exe" toml:"md5Exe"`
	SHA1Exe   string `json:"sha1Exe" toml:"sha1Exe"`
	SHA256Exe string `json:"sha256Exe" toml:"sha256Exe"`
	CurlExe   string `json:"curlExe" toml:"curlExe"`
	CatExe    string `json:"catExe" toml:"catExe"`
	GitExe    string `json:"gitExe" toml:"gitExe"`
	TarExe    string `json:"tarExe" toml:"tarExe"`
	ScpExe    string `json:"scpExe" toml:"scpExe"`
	SftpExe   string `json:"sftpExe" toml:"sftpExe"`
	UPXExe    string `json:"upxExe" toml:"upxExe"`
	WhichExe  string `json:"whichExe" toml:"whichExe"`
}

type Artifactories added in v0.1.0

type Artifactories struct {
	Instance []ArtifactoryData `json:"artifactory" toml:"artifactory"`
}

type ArtifactoryData added in v0.1.0

type ArtifactoryData struct {
	Host      string `json:"host" toml:"host"`
	Path      string `json:"path" toml:"path"`
	Creds     string `json:"creds" toml:"creds"`
	CredsPath string `json:"creds_path" toml:"creds_path"`
	Backup    bool   `json:"backup" toml:"backup"`
}

type BuildData added in v0.1.0

type BuildData struct {
	Tags       string `json:"tags" toml:"tags"`
	UseAltApps string `json:"useAltApps" toml:"useAltApps"`
}

type Config added in v0.1.0

type Config struct {
	Build       BuildData     `json:"build"`
	PostClean   PostClean     `json:"postclean"`
	Apps        Apps          `json:"apps"`
	SCP         SCPs          `json:"scp"`
	SFTP        SFTPs         `json:"sftp"`
	SCPCustom   SCPCustoms    `json:"scp-custom"`
	Artifactory Artifactories `json:"artifactory"`
	Project     Projects      `json:"projects"`
}

type GenConfig added in v0.1.0

type GenConfig struct {
	Build       BuildData         `json:"build" toml:"build" comment:"Build Options"`
	PostClean   PostClean         `json:"postclean" toml:"postclean" comment:"Directories to clean when complete"`
	Apps        Apps              `json:"apps" toml:"apps" comment:"Application paths"`
	SCP         []ScpData         `` /* 138-byte string literal not displayed */
	SFTP        []SftpData        `json:"sftp" toml:"sftp,omitempty" comment:"Array of SFTP Configurations"`
	SCPCustom   []ScpCustom       `json:"scp-custom" toml:"scp-custom,omitempty" comment:"Array of Custom SCP using script"`
	Artifactory []ArtifactoryData `` /* 129-byte string literal not displayed */
	Project     []Project         `json:"project" toml:"project" comment:"Array of projects to build\n- duplicate this section for each project to build"`
}

type PostClean added in v0.1.0

type PostClean struct {
	Dirs  []string `json:"dirs" toml:"dirs"`
	Files []string `json:"files" toml:"files"`
}

type Project added in v0.1.0

type Project struct {
	Enable            bool     `json:"-" toml:"-"`
	Name              string   `json:"name" toml:"name"`
	OSTargets         []string `json:"ostargets" toml:"ostargets"`
	OSEnvFlags        []string `json:"os_env_flags" toml:"os_env_flags"`
	OSDeployScripts   []string `json:"osdeployscripts" toml:"osdeployscripts"`
	Package           string   `json:"package" toml:"package"`
	VersionFile       string   `json:"version" toml:"version"`
	ReadmeFile        string   `json:"readme" toml:"readme"`
	ChangelogFile     string   `json:"changelog" toml:"changelog"`
	ChangelogFullFile string   `json:"changelogfull" toml:"changelogfull"`
	Files             []string `json:"files" toml:"files"`
	WindowsFiles      []string `json:"windowsfiles" toml:"windowsfiles"`
	LinuxFiles        []string `json:"linuxfiles" toml:"linuxfiles"`
	MacFiles          []string `json:"macfiles" toml:"macfiles"`
	OverrideVariables string   `` /* 145-byte string literal not displayed */
	OverrideVarFiles  []string `json:"override_var_files" toml:"override_var_files,omitempty" comment:"local files used to fill override variables in order"`
	YNPrompt          string   `json:"ynprompt" toml:"ynprompt,omitempty"`
}

type Projects added in v0.1.0

type Projects struct {
	Projects []Project `json:"project" toml:"project"`
}

type SCPCustoms added in v0.1.0

type SCPCustoms struct {
	Instance []ScpCustom `json:"scp-custom" toml:"scp-custom"`
}

type SCPs added in v0.1.0

type SCPs struct {
	Instance []ScpData `json:"scp" toml:"scp"`
}

type SFTPs added in v0.1.0

type SFTPs struct {
	Instance []SftpData `json:"sftp" toml:"sftp"`
}

type ScpCustom added in v0.1.0

type ScpCustom struct {
	Exec string `json:"exec" toml:"exec"`
}

type ScpData added in v0.1.0

type ScpData struct {
	Host     string `json:"host" toml:"host"`
	Path     string `json:"path" toml:"path"`
	SkipPing string `json:"skip_ping" toml:"skip_ping"`
	Backup   bool   `json:"backup" toml:"backup"`
}

func (*ScpData) UnmarshalJSON added in v0.1.5

func (s *ScpData) UnmarshalJSON(data []byte) error

type SftpData added in v0.1.0

type SftpData struct {
	Host     string `json:"host" toml:"host"`
	Path     string `json:"path" toml:"path"`
	SkipPing string `json:"skip_ping" toml:"skip_ping"`
	Backup   bool   `json:"backup" toml:"backup"`
}

Jump to

Keyboard shortcuts

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