url

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package url defines URL types and has helper methods to parse a string into URLs.

Index

Constants

View Source
const (
	// S3WildCharacters is valid wildcard characters for a S3Url
	S3WildCharacters string = "?*"
)

Variables

This section is empty.

Functions

func HasWild

func HasWild(s string) bool

HasWild checks if a string contains any S3 wildcard chars

Types

type S3Url

type S3Url struct {
	Bucket string
	Key    string
}

S3Url represents an S3 object (or bucket)

func ParseS3Url

func ParseS3Url(object string) (*S3Url, error)

ParseS3Url parses a string into an S3Url

func (S3Url) Clone

func (s S3Url) Clone() S3Url

Clone creates a new s3url with the values from the receiver

func (S3Url) Format

func (s S3Url) Format() string

Format formats the S3Url to the format "<bucket>[/<key>]"

func (S3Url) String

func (s S3Url) String() string

Jump to

Keyboard shortcuts

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