common

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BucketPrefixS3 = "s3://"
)
View Source
const (
	ServiceSpecFile = "mono.yml"
)

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) bool

func IsServiceDir

func IsServiceDir(path string) bool

func KeyFromArtifact

func KeyFromArtifact(artifact *Artifact) string

Types

type Artifact

type Artifact struct {
	ServicePath string
	Version     int
	Checksum    string
	Extension   string
}

func ArtifactFromKey

func ArtifactFromKey(key string) (*Artifact, error)

type BlobStorage

type BlobStorage interface {
	Get(key string) ([]byte, error)
	Put(key string, data []byte) error
	GetLatestKey(prefix string) (*string, error)
}

func NewBlobStorage

func NewBlobStorage(bucket string) (BlobStorage, error)

Jump to

Keyboard shortcuts

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