Documentation
¶
Overview ¶
Package url abstracts local and remote file URLs.
Index ¶
- type URL
- func (u *URL) Absolute() string
- func (u *URL) Base() string
- func (u *URL) Clone() *URL
- func (u *URL) Dir() string
- func (u *URL) HasGlob() bool
- func (u *URL) IsBucket() bool
- func (u *URL) IsPrefix() bool
- func (u *URL) IsRemote() bool
- func (u *URL) Join(s string) *URL
- func (u *URL) MarshalJSON() ([]byte, error)
- func (u *URL) Match(key string) bool
- func (u *URL) Relative() string
- func (u *URL) SetRelative(base string)
- func (u *URL) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URL ¶
type URL struct {
Type urlType
Scheme string
Bucket string
Path string
Delimiter string
Prefix string
// contains filtered or unexported fields
}
URL is the canonical representation of an object, either on local or remote storage.
func (*URL) IsPrefix ¶
IsPrefix reports whether the remote object is an S3 prefix, and does not look like an object.
func (*URL) MarshalJSON ¶
func (*URL) SetRelative ¶
Click to show internal directories.
Click to hide internal directories.