artifact

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	URL         string     `cbor:"u"`
	Password    string     `cbor:"p"`
	Filename    string     `cbor:"f"`
	Extractable bool       `cbor:"-"`
	Header      url.Values `cbor:"-"`
}

An Artifact represents an uploaded file.

func ParseFromCLI

func ParseFromCLI(cli string) (Artifact, error)

ParseFromCLI parses artifact from cli.

func ParseFromLink(param string) (Artifact, error)

ParseFromLink parses artifact from link's param.

func (Artifact) CLI

func (a Artifact) CLI() string

CLI returns the download artifact command.

func (a Artifact) Link(host url.URL) string

Link returns the download artifact URL used by webfinn. host is the URL of the webfinn instance.

Jump to

Keyboard shortcuts

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