blob

package
v0.128.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package blob provides a Pipe that push artifacts to blob supported by Go CDK

TODO: replace current s3 implementation with this one.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	BucketConn *blob.Bucket
}

Bucket is object which holds connection for Go Bucker Provider

func (Bucket) Connect

func (b Bucket) Connect(ctx *context.Context, bucketURL string) (*blob.Bucket, error)

Connect makes connection with provider

func (Bucket) Upload

func (b Bucket) Upload(ctx *context.Context, conf config.Blob) error

Upload takes connection initilized from newOpenBucket to upload goreleaser artifacts Takes goreleaser context(which includes artificats) and bucketURL for upload destination (gs://gorelease-bucket)

type OpenBucket

type OpenBucket interface {
	Connect(ctx *context.Context, bucketURL string) (*blob.Bucket, error)
	Upload(ctx *context.Context, conf config.Blob) error
}

OpenBucket is the interface that wraps the BucketConnect and UploadBucket method

type Pipe

type Pipe struct{}

Pipe for Artifactory

func (Pipe) Default

func (Pipe) Default(ctx *context.Context) error

Default sets the pipe defaults

func (Pipe) Publish

func (Pipe) Publish(ctx *context.Context) error

Publish to specified blob bucket url

func (Pipe) String

func (Pipe) String() string

String returns the description of the pipe

Jump to

Keyboard shortcuts

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