mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
73b74a3169
* feat: adding support to push artifacts to AWS S3,Azure Blob and Google Cloud Storage readme for blob publisher test: add unit test for blob using testify and mockery test: add unit test for publish method fix: openbucket instance initialization remove unwanted packages: go mod tidy test: add missing unit test for publish method * doc: add missing comment for func * fix: add accidental delete file * fix : add missing Snapcrafts project * fix: unit test for Azure blob * fmt: rewrite if-else-if-else chain to switch statement and fix golangci-lint reporeted issue * fmt: fix linter reporeted issues fmt: rewrite if-else-if-else chain to switch statement and fix golangci-lint reporeted issue fmt: linter fix * test: fix typo in test error string * feat: add support to provider folder inside bucket, resolves discussed comments
56 lines
1.7 KiB
Go
56 lines
1.7 KiB
Go
// Package defaults make the list of Defaulter implementations available
|
|
// so projects extending GoReleaser are able to use it, namely, GoDownloader.
|
|
package defaults
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/archive"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/artifactory"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/blob"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/brew"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/build"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/checksums"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/docker"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/env"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/nfpm"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/project"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/release"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/s3"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/scoop"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/sign"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/snapcraft"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/snapshot"
|
|
"github.com/goreleaser/goreleaser/pkg/context"
|
|
)
|
|
|
|
// Defaulter can be implemented by a Piper to set default values for its
|
|
// configuration.
|
|
type Defaulter interface {
|
|
fmt.Stringer
|
|
|
|
// Default sets the configuration defaults
|
|
Default(ctx *context.Context) error
|
|
}
|
|
|
|
// Defaulters is the list of defaulters
|
|
// nolint: gochecknoglobals
|
|
var Defaulters = []Defaulter{
|
|
env.Pipe{},
|
|
snapshot.Pipe{},
|
|
release.Pipe{},
|
|
project.Pipe{},
|
|
build.Pipe{},
|
|
archive.Pipe{},
|
|
nfpm.Pipe{},
|
|
snapcraft.Pipe{},
|
|
checksums.Pipe{},
|
|
sign.Pipe{},
|
|
docker.Pipe{},
|
|
artifactory.Pipe{},
|
|
s3.Pipe{},
|
|
blob.Pipe{},
|
|
brew.Pipe{},
|
|
scoop.Pipe{},
|
|
}
|