objstore

package
v0.0.0-...-a6745a7 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewS3Service

func NewS3Service(s3region string) *s3.S3

func S3DownloadArchive

func S3DownloadArchive(region, archiveKey, bucket string, fileHandle *os.File) error

S3DownloadArchive downloads the file at archiveKey from the bucket and writes it into the open fileHandle.

func S3ListArchiveForBuildset

func S3ListArchiveForBuildset(s3svc *s3.S3, buildset, os, arch, s3bucket string) (*string, error)

S3ListArchiveForBuildset returns the object key for a file that matches os and arch

in the event that os == "macos", an arch "universal" match will be returned in the event that multiple os and arch matches are made, the first one is returned

Types

type Buildset

type Buildset struct {
	Key           string
	Project       string
	Branch        string
	UnixTimestamp int64
	Tag           string
}

func S3ListLatestBuildsetForProject

func S3ListLatestBuildsetForProject(s3svc *s3.S3, project, branch, s3bucket string) (*Buildset, error)

S3ListLatesBuildsetForProject returns the latest buildset object path for a project and the unix epoch timestamp that corresponds to it

type Project

type Project struct {
	Name     string
	Branches []string
}

func S3ListProjects

func S3ListProjects(s3svc *s3.S3, s3bucket string) ([]Project, error)

S3ListProjects returns a list of project names and all corresponding branch names

Jump to

Keyboard shortcuts

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