vagrantcloud

package
v0.0.0-...-8090872 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBox

func GetBox(boxName, version string, p Provider) (io.ReadCloser, error)

func NewBoxReader

func NewBoxReader(reader io.Reader) (*tar.Reader, error)

Types

type BoxJson

type BoxJson struct {
	Description      string `json:"description"`
	ShortDescription string `json:"short_description"`
	Name             string `json:"name"`
	Versions         []struct {
		Version             string `json:"version"`
		Status              string `json:"status"`
		DescriptionHTML     string `json:"description_html"`
		DescriptionMarkdown string `json:"description_markdown"`
		Providers           []struct {
			Name         string `json:"name"`
			URL          string `json:"url"`
			Checksum     string `json:"checksum"`
			ChecksumType string `json:"checksum_type"`
		} `json:"providers"`
	} `json:"versions"`
}

type Provider

type Provider string
const (
	// Providers
	Parallels     Provider = "parallels"
	Hyperv        Provider = "hyperv"
	Libvirt       Provider = "libvirt"
	Virtualbox    Provider = "virtualbox"
	VmwareDesktop Provider = "vmware_desktop"
)

Jump to

Keyboard shortcuts

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