blobutil

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureBlobRef

type AzureBlobRef struct {
	// StorageBase describes the storage endpoint for the blob (without "blob." prefix)
	// e.g. "core.windows.net"
	StorageBase string

	// Container is the container name for the blob
	Container string

	// Blob is the name for the blob (i.e. the rest of the URL after container name) and
	// may contain slashes (/). e.g. "a.txt", "a/b.txt"
	Blob string

	// Scheme contains http or https
	Scheme string
}

AzureBlobRef contains information parsed from an Azure Blob Storage URL.

func ParseBlobURL

func ParseBlobURL(blobURL string) (v AzureBlobRef, err error)

ParseBlobURL recognizes a given Azure Blob Storage URL and extracts the information of the blob such as storage API endpoint, container and blob name, or returns error if the URL is unrecognized.

Jump to

Keyboard shortcuts

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