url

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder encapsulates the building of urls in a central place, with knowledge of the url structures and base host names.

func NewBuilder

func NewBuilder(apiURL string) *Builder

NewBuilder returns a new instance of url.Builder

func (Builder) BuildImageDownloadURL

func (builder Builder) BuildImageDownloadURL(imageID, variant string) string

BuildImageDownloadURL returns the website URL for a specific image dowload variant

func (Builder) BuildImageDownloadsURL added in v0.10.0

func (builder Builder) BuildImageDownloadsURL(imageID string) string

BuildImageBuildImageDownloadsURL returns the website URL for a collection of downloads for this image

func (Builder) BuildImageURL

func (builder Builder) BuildImageURL(imageID string) string

BuildImageURL returns the website URL for a specific image

Jump to

Keyboard shortcuts

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