versions

package
v0.0.0-...-d984d7a Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(paths []string, pattern string) ([]string, error)

func MatchUnanchored

func MatchUnanchored(paths []string, pattern string) ([]string, error)

func PrefixHint

func PrefixHint(regex string) string

Types

type Extraction

type Extraction struct {
	// path to s3 object in bucket
	Path string

	// parsed semantic version
	Version semver.Version

	// the raw version match
	VersionNumber string
}

func Extract

func Extract(path string, pattern string) (Extraction, bool)

type Extractions

type Extractions []Extraction

func GetBucketFileVersions

func GetBucketFileVersions(client s3resource.S3Client, source s3resource.Source) Extractions

func (Extractions) Len

func (e Extractions) Len() int

func (Extractions) Less

func (e Extractions) Less(i int, j int) bool

func (Extractions) Swap

func (e Extractions) Swap(i int, j int)

Jump to

Keyboard shortcuts

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