Help us shape the future of Go! Take the 2026 Go Developer Survey

mal

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ManifestFileName = "mal.yaml"
)

Functions

func Commands

func Commands(con *repl.Console) []*cobra.Command

func GithubMalPackageParser added in v0.0.3

func GithubMalPackageParser(repoURL string, pkgName string, version string, clientConfig MalHTTPConfig) error

GithubMalPackageParser - Uses github.com instead of api.github.com to download packages

func InstallFromDir

func InstallFromDir(extLocalPath string, promptToOverwrite bool, con *repl.Console)

func ListMalManifest added in v0.0.3

func ListMalManifest(con *repl.Console)

func MalCmd added in v0.0.3

func MalCmd(cmd *cobra.Command, con *repl.Console) error

func MalInstallCmd

func MalInstallCmd(cmd *cobra.Command, con *repl.Console) error

ExtensionsInstallCmd - Install an extension

func MalLoadCmd

func MalLoadCmd(ctx *cobra.Command, con *repl.Console) error

func RefreshMalCmd added in v0.0.3

func RefreshMalCmd(cmd *cobra.Command, con *repl.Console) error

func RemoveMal

func RemoveMal(name string, con *repl.Console) error

func RemoveMalCmd

func RemoveMalCmd(cmd *cobra.Command, con *repl.Console) error

Types

type GithubAsset added in v0.0.3

type GithubAsset struct {
	ID                 int    `json:"id"`
	Name               string `json:"name"`
	URL                string `json:"url"`
	Size               int    `json:"size"`
	BrowserDownloadURL string `json:"browser_download_url"`
}

type GithubRelease added in v0.0.3

type GithubRelease struct {
	ID          int           `json:"id"`
	Name        string        `json:"name"`
	URL         string        `json:"url"`
	HTMLURL     string        `json:"html_url"`
	TagName     string        `json:"tag_name"`
	Body        string        `json:"body"`
	Prerelease  bool          `json:"prerelease"`
	TarballURL  string        `json:"tarball_url"`
	ZipballURL  string        `json:"zipball_url"`
	CreatedAt   string        `json:"created_at"`
	PublishedAt string        `json:"published_at"`
	Assets      []GithubAsset `json:"assets"`
}

type LoadedMal

type LoadedMal struct {
	Manifest *plugin.MalManiFest
	CMDs     []*cobra.Command
	Plugin   plugin.Plugin
}

func LoadMal

func LoadMal(con *repl.Console, rootCmd *cobra.Command, filename string) (*LoadedMal, error)

func LoadMalWithManifest added in v0.0.3

func LoadMalWithManifest(con *repl.Console, rootCmd *cobra.Command, manifest *plugin.MalManiFest) (*LoadedMal, error)

type MalHTTPConfig added in v0.0.3

type MalHTTPConfig struct {
	MalConfig            *assets.MalConfig
	IgnoreCache          bool
	ProxyURL             *url.URL
	Timeout              time.Duration
	DisableTLSValidation bool
}

MalHTTPConfig - Configuration for armory HTTP client

type MalsJson added in v0.0.3

type MalsJson struct {
	Mals []assets.MalConfig `json:"mals" yaml:"mals"`
}

Jump to

Keyboard shortcuts

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