s3storage

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(bucketName string, tracer tracing.Tracer) (*Service, error)

func (*Service) ArtifactExists

func (f *Service) ArtifactExists(ctx context.Context, service, artifactID string) (bool, error)

func (*Service) ArtifactPaths

func (f *Service) ArtifactPaths(ctx context.Context, service string, environment string, branch string, artifactID string) (specPath string, resourcesPath string, close func(context.Context), err error)

func (*Service) ArtifactSpecification

func (f *Service) ArtifactSpecification(ctx context.Context, service string, artifactID string) (artifact.Spec, error)

func (*Service) ArtifactSpecifications

func (f *Service) ArtifactSpecifications(ctx context.Context, service string, n int) ([]artifact.Spec, error)

func (*Service) CreateArtifact

func (s *Service) CreateArtifact(artifactSpec artifact.Spec, md5 string) (string, error)

func (*Service) InitializeBucket

func (s *Service) InitializeBucket() error

func (*Service) LatestArtifactPaths

func (f *Service) LatestArtifactPaths(ctx context.Context, service string, environment string, branch string) (specPath string, resourcesPath string, close func(context.Context), err error)

func (*Service) LatestArtifactSpecification

func (f *Service) LatestArtifactSpecification(ctx context.Context, service string, branch string) (artifact.Spec, error)

Jump to

Keyboard shortcuts

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