blob

package
v0.114.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

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

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, folder string) 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, folder string) 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