uri

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolSeparator = "://"
	LakeFSProtocol    = "lakefs"

	RefSeparator  = '@'
	PathSeparator = '/'
)

Variables

View Source
var (
	ErrMalformedURI = errors.New("malformed lakefs uri")
)

Functions

func Equals

func Equals(a, b *URI) bool

func IsValid

func IsValid(str string) bool

Types

type URI

type URI struct {
	Protocol   string
	Repository string
	Ref        string
	Path       string
}

func Must

func Must(u *URI, e error) *URI

func Parse

func Parse(str string) (*URI, error)

func (*URI) IsFullyQualified

func (u *URI) IsFullyQualified() bool

func (*URI) IsRef

func (u *URI) IsRef() bool

func (*URI) IsRepository

func (u *URI) IsRepository() bool

func (*URI) String

func (u *URI) String() string

Jump to

Keyboard shortcuts

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