mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
8877c72abc
* style: moving commit msg to the pipe instead of the client refs #604 * fix: better commit msg for scoop and brew
25 lines
670 B
Go
25 lines
670 B
Go
// Package client contains the client implementations for several providers.
|
|
package client
|
|
|
|
import (
|
|
"bytes"
|
|
"os"
|
|
|
|
"github.com/goreleaser/goreleaser/config"
|
|
"github.com/goreleaser/goreleaser/context"
|
|
)
|
|
|
|
// Info of the repository
|
|
type Info struct {
|
|
Description string
|
|
Homepage string
|
|
URL string
|
|
}
|
|
|
|
// Client interface
|
|
type Client interface {
|
|
CreateRelease(ctx *context.Context, body string) (releaseID int64, err error)
|
|
CreateFile(ctx *context.Context, commitAuthor config.CommitAuthor, repo config.Repo, content bytes.Buffer, path, message string) (err error)
|
|
Upload(ctx *context.Context, releaseID int64, name string, file *os.File) (err error)
|
|
}
|