parseutils

package
v0.0.0-...-857ab11 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChecksumEntry

type ChecksumEntry struct {
	Name     string
	Version  string
	Os       string
	Arch     string
	Checksum [32]byte
}

ChecksumEntry represents a checksum for a HashiCorp product's zip file.

type ChecksumList

type ChecksumList []ChecksumEntry

ChecksumList represents a list of ChecksumEntry.

func ParseChecksumList

func ParseChecksumList(rawChecksumList string) ChecksumList

ParseChecksumList parses a checksum file to a ChecksumList.

type LinkEntry

type LinkEntry struct {
	Name string
	URL  string
}

LinkEntry represents a link with label.

type LinkList []LinkEntry

LinkList represents a list of LinkEntry.

func ParseLinkList(baseURL *url.URL, node *html.Node) LinkList

ParseLinkList parses html to a list of links.

func (LinkList) ProductVersionList

func (l LinkList) ProductVersionList() ProductVersionList

ProductVersionList parses LinkList to ProductVersionList

func (LinkList) ProductZipList

func (l LinkList) ProductZipList() ProductZipList

ProductZipList parses a LinkList to a ProductZipList.

type ProductVersionEntry

type ProductVersionEntry struct {
	Name    string
	Version string
	URL     string
}

ProductVersionEntry represents a link of specific version of a HashiCorp product.

type ProductVersionList

type ProductVersionList []ProductVersionEntry

ProductVersionList represents a list of ProductVersionEntry.

type ProductZipEntry

type ProductZipEntry struct {
	Name    string
	Version string
	Os      string
	Arch    string
	URL     string
}

ProductZipEntry represents a link to a HashiCorp product's zip.

type ProductZipList

type ProductZipList []ProductZipEntry

ProductZipList represents a list of ProductZipEntry.

Jump to

Keyboard shortcuts

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