Documentation ¶
Index ¶
- func Fatal(doing string, err error)
- func Sayf(message string, args ...interface{})
- type CheckCommand
- type CheckRequest
- type GitHub
- type GitHubClient
- func (g *GitHubClient) CreateRelease(release github.RepositoryRelease) (*github.RepositoryRelease, error)
- func (g *GitHubClient) DeleteReleaseAsset(asset github.ReleaseAsset) error
- func (g *GitHubClient) DownloadReleaseAsset(asset github.ReleaseAsset) (io.ReadCloser, error)
- func (g *GitHubClient) GetRelease(id int) (*github.RepositoryRelease, error)
- func (g *GitHubClient) GetReleaseByTag(tag string) (*github.RepositoryRelease, error)
- func (g *GitHubClient) GetTarballLink(tag string) (*url.URL, error)
- func (g *GitHubClient) GetZipballLink(tag string) (*url.URL, error)
- func (g *GitHubClient) ListReleaseAssets(release github.RepositoryRelease) ([]*github.ReleaseAsset, error)
- func (g *GitHubClient) ListReleases() ([]*github.RepositoryRelease, error)
- func (g *GitHubClient) UpdateRelease(release github.RepositoryRelease) (*github.RepositoryRelease, error)
- func (g *GitHubClient) UploadReleaseAsset(release github.RepositoryRelease, name string, file *os.File) error
- type InCommand
- type InParams
- type InRequest
- type InResponse
- type MetadataPair
- type OutCommand
- type OutParams
- type OutRequest
- type OutResponse
- type Source
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckCommand ¶
type CheckCommand struct {
// contains filtered or unexported fields
}
func NewCheckCommand ¶
func NewCheckCommand(github GitHub) *CheckCommand
func (*CheckCommand) Run ¶
func (c *CheckCommand) Run(request CheckRequest) ([]Version, error)
type CheckRequest ¶
type GitHub ¶
type GitHub interface { ListReleases() ([]*github.RepositoryRelease, error) GetReleaseByTag(tag string) (*github.RepositoryRelease, error) GetRelease(id int) (*github.RepositoryRelease, error) CreateRelease(release github.RepositoryRelease) (*github.RepositoryRelease, error) UpdateRelease(release github.RepositoryRelease) (*github.RepositoryRelease, error) ListReleaseAssets(release github.RepositoryRelease) ([]*github.ReleaseAsset, error) UploadReleaseAsset(release github.RepositoryRelease, name string, file *os.File) error DeleteReleaseAsset(asset github.ReleaseAsset) error DownloadReleaseAsset(asset github.ReleaseAsset) (io.ReadCloser, error) GetTarballLink(tag string) (*url.URL, error) GetZipballLink(tag string) (*url.URL, error) }
type GitHubClient ¶
type GitHubClient struct {
// contains filtered or unexported fields
}
func NewGitHubClient ¶
func NewGitHubClient(source Source) (*GitHubClient, error)
func (*GitHubClient) CreateRelease ¶
func (g *GitHubClient) CreateRelease(release github.RepositoryRelease) (*github.RepositoryRelease, error)
func (*GitHubClient) DeleteReleaseAsset ¶
func (g *GitHubClient) DeleteReleaseAsset(asset github.ReleaseAsset) error
func (*GitHubClient) DownloadReleaseAsset ¶
func (g *GitHubClient) DownloadReleaseAsset(asset github.ReleaseAsset) (io.ReadCloser, error)
func (*GitHubClient) GetRelease ¶
func (g *GitHubClient) GetRelease(id int) (*github.RepositoryRelease, error)
func (*GitHubClient) GetReleaseByTag ¶
func (g *GitHubClient) GetReleaseByTag(tag string) (*github.RepositoryRelease, error)
func (*GitHubClient) GetTarballLink ¶
func (g *GitHubClient) GetTarballLink(tag string) (*url.URL, error)
func (*GitHubClient) GetZipballLink ¶
func (g *GitHubClient) GetZipballLink(tag string) (*url.URL, error)
func (*GitHubClient) ListReleaseAssets ¶
func (g *GitHubClient) ListReleaseAssets(release github.RepositoryRelease) ([]*github.ReleaseAsset, error)
func (*GitHubClient) ListReleases ¶
func (g *GitHubClient) ListReleases() ([]*github.RepositoryRelease, error)
func (*GitHubClient) UpdateRelease ¶
func (g *GitHubClient) UpdateRelease(release github.RepositoryRelease) (*github.RepositoryRelease, error)
func (*GitHubClient) UploadReleaseAsset ¶
func (g *GitHubClient) UploadReleaseAsset(release github.RepositoryRelease, name string, file *os.File) error
type InResponse ¶
type InResponse struct { Version Version `json:"version"` Metadata []MetadataPair `json:"metadata"` }
type MetadataPair ¶
type OutCommand ¶
type OutCommand struct {
// contains filtered or unexported fields
}
func NewOutCommand ¶
func NewOutCommand(github GitHub, writer io.Writer) *OutCommand
func (*OutCommand) Run ¶
func (c *OutCommand) Run(sourceDir string, request OutRequest) (OutResponse, error)
type OutRequest ¶
type OutResponse ¶
type OutResponse struct { Version Version `json:"version"` Metadata []MetadataPair `json:"metadata"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.