Documentation
¶
Index ¶
- type Client
- func (c *Client) AddArtifact(ctx context.Context, rel *artifact.Release, file *artifact.File) error
- func (c *Client) Commit(ctx context.Context, repo *git.Repository, tag string, file *artifact.File) error
- func (c *Client) CreateRelease(ctx context.Context, rel *artifact.Release) error
- func (c *Client) Info(ctx context.Context) (*Info, error)
- func (c *Client) Releases(ctx context.Context) ([]*github.RepositoryRelease, error)
- func (c *Client) Tags(ctx context.Context) (Tags, error)
- type Info
- type Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a github client
func (*Client) AddArtifact ¶
AddArtifact adds a file on to a release
func (*Client) Commit ¶
func (c *Client) Commit(ctx context.Context, repo *git.Repository, tag string, file *artifact.File) error
Commit commits a file to the repo
func (*Client) CreateRelease ¶
CreateRelease creates a new release on github
type Tags ¶
type Tags []*github.RepositoryTag
Tags is the list of tags on the repo, used for computing the difference with releases
func (Tags) Difference ¶
func (tags Tags) Difference(releases []*github.RepositoryRelease) Tags
Difference computes the difference between the repository tags, and releases. It returns the tags that do not have matching releases.
func (Tags) NoPrerelease ¶
NoPrerelease filters out any tags that are prereleases
func (Tags) ValidSemver ¶
ValidSemver filters out any tags that don't have valid semvers
Click to show internal directories.
Click to hide internal directories.