spongedl

package
v3.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SpongeApiBaseUrl = "https://dl-api.spongepowered.org/v2/groups/org.spongepowered/artifacts/"

Functions

This section is empty.

Types

type OperationFactory

type OperationFactory struct {
	pufferpanel.OperationFactory
}
var Factory OperationFactory

func (OperationFactory) Create

func (of OperationFactory) Create(op pufferpanel.CreateOperation) (pufferpanel.Operation, error)

func (OperationFactory) Key

func (of OperationFactory) Key() string

type SpongeApiV2Asset

type SpongeApiV2Asset struct {
	Classifier  string
	DownloadUrl string
	Extension   string
}

type SpongeApiV2Latest

type SpongeApiV2Latest struct {
	Assets []SpongeApiV2Asset `json:"assets"`
	Tags   map[string]string
}

type SpongeApiV2Versions

type SpongeApiV2Versions struct {
	Artifacts map[string]interface{} `json:"artifacts"`
}

type SpongeDl

type SpongeDl struct {
	Recommended      bool
	SpongeType       string
	SpongeVersion    string //version of sponge to download
	MinecraftVersion string //version of minecraft to download
}

func (SpongeDl) Run

func (op SpongeDl) Run(env pufferpanel.Environment) pufferpanel.OperationResult

Jump to

Keyboard shortcuts

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