1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00
goreleaser/client/client.go

25 lines
616 B
Go
Raw Normal View History

2017-04-14 16:07:27 -03:00
// Package client contains the client implementations for several providers.
package client
2017-03-26 14:46:25 -03:00
import (
"bytes"
"os"
"github.com/goreleaser/goreleaser/context"
)
// Info of the repository
type Info struct {
Description string
Homepage string
URL string
}
// Client interface
type Client interface {
GetInfo(ctx *context.Context) (info Info, err error)
2017-04-19 16:59:26 -03:00
CreateRelease(ctx *context.Context, body string) (releaseID int, err error)
2017-03-26 14:46:25 -03:00
CreateFile(ctx *context.Context, content bytes.Buffer, path string) (err error)
Upload(ctx *context.Context, releaseID int, name string, file *os.File) (err error)
}