urlparser

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the Apache License, Version 2.0.

Copyright (c) Microsoft Corporation. Licensed under the Apache License, Version 2.0. Package urlparser provides interfaces and implementations for parsing information from a URL.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser interface {
	// ParseDigest parses the digest from the given URL.
	// If none found, implementations should return an error.
	ParseDigest(url string) (digest.Digest, error)
}

Parser describes an interface for parsing information from a URL.

func New

func New() Parser

New returns a new Parser.

Jump to

Keyboard shortcuts

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