1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/internal/client/client.go
Carlos Alexandro Becker 8877c72abc
chore: better commit msgs for brew and scoop pipes (#605)
* style: moving commit msg to the pipe instead of the client

refs #604

* fix: better commit msg for scoop and brew
2018-03-10 14:13:00 -03:00

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)
}