Documentation
¶
Index ¶
- Variables
- func Fatal(doing string, err error)
- func Sayf(message string, args ...interface{})
- type CheckCommand
- type CheckRequest
- type GitLab
- type GitlabClient
- func (g *GitlabClient) CreateRelease(name string, tag string, description *string) (*gitlab.Release, error)
- func (g *GitlabClient) CreateReleaseLink(tag string, name string, url string) (*gitlab.ReleaseLink, error)
- func (g *GitlabClient) CreateTag(tag_name string, ref string) (*gitlab.Tag, error)
- func (g *GitlabClient) DeleteReleaseLink(tag string, link *gitlab.ReleaseLink) error
- func (g *GitlabClient) DownloadProjectFile(fileURL, destPath string) error
- func (g *GitlabClient) GetRelease(tag_name string) (*gitlab.Release, error)
- func (g *GitlabClient) GetReleaseLinks(tag string) ([]*gitlab.ReleaseLink, error)
- func (g *GitlabClient) GetTag(tag_name string) (*gitlab.Tag, error)
- func (g *GitlabClient) ListReleases() ([]*gitlab.Release, error)
- func (g *GitlabClient) ListTags() ([]*gitlab.Tag, error)
- func (g *GitlabClient) ListTagsUntil(tag_name string) ([]*gitlab.Tag, error)
- func (g *GitlabClient) UpdateRelease(name string, tag string, description *string) (*gitlab.Release, error)
- func (g *GitlabClient) UploadProjectFile(filepath string) (*gitlab.ProjectFile, 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 ¶
View Source
var (
NotFound = errors.New("object not found")
)
Functions ¶
Types ¶
type CheckCommand ¶
type CheckCommand struct {
// contains filtered or unexported fields
}
func NewCheckCommand ¶
func NewCheckCommand(gitlab GitLab) *CheckCommand
func (*CheckCommand) Run ¶
func (c *CheckCommand) Run(request CheckRequest) ([]Version, error)
type CheckRequest ¶
func NewCheckRequest ¶
func NewCheckRequest() CheckRequest
type GitLab ¶
type GitLab interface { ListTags() ([]*gitlab.Tag, error) ListTagsUntil(tag_name string) ([]*gitlab.Tag, error) ListReleases() ([]*gitlab.Release, error) GetRelease(tag_name string) (*gitlab.Release, error) GetTag(tag_name string) (*gitlab.Tag, error) CreateTag(tag_name string, ref string) (*gitlab.Tag, error) CreateRelease(name string, tag string, description *string) (*gitlab.Release, error) UpdateRelease(name string, tag string, description *string) (*gitlab.Release, error) UploadProjectFile(file string) (*gitlab.ProjectFile, error) DownloadProjectFile(url, file string) error GetReleaseLinks(tag string) ([]*gitlab.ReleaseLink, error) CreateReleaseLink(tag string, name string, url string) (*gitlab.ReleaseLink, error) DeleteReleaseLink(tag string, links *gitlab.ReleaseLink) error }
type GitlabClient ¶
type GitlabClient struct {
// contains filtered or unexported fields
}
func NewGitLabClient ¶
func NewGitLabClient(source Source) (*GitlabClient, error)
func (*GitlabClient) CreateRelease ¶
func (*GitlabClient) CreateReleaseLink ¶
func (g *GitlabClient) CreateReleaseLink(tag string, name string, url string) (*gitlab.ReleaseLink, error)
func (*GitlabClient) DeleteReleaseLink ¶
func (g *GitlabClient) DeleteReleaseLink(tag string, link *gitlab.ReleaseLink) error
func (*GitlabClient) DownloadProjectFile ¶
func (g *GitlabClient) DownloadProjectFile(fileURL, destPath string) error
func (*GitlabClient) GetRelease ¶
func (g *GitlabClient) GetRelease(tag_name string) (*gitlab.Release, error)
func (*GitlabClient) GetReleaseLinks ¶
func (g *GitlabClient) GetReleaseLinks(tag string) ([]*gitlab.ReleaseLink, error)
func (*GitlabClient) ListReleases ¶
func (g *GitlabClient) ListReleases() ([]*gitlab.Release, error)
func (*GitlabClient) ListTagsUntil ¶
func (g *GitlabClient) ListTagsUntil(tag_name string) ([]*gitlab.Tag, error)
func (*GitlabClient) UpdateRelease ¶
func (*GitlabClient) UploadProjectFile ¶
func (g *GitlabClient) UploadProjectFile(filepath string) (*gitlab.ProjectFile, error)
type InRequest ¶
type InRequest struct { Source Source `json:"source"` Version *Version `json:"version"` Params InParams `json:"params"` }
func NewInRequest ¶
func NewInRequest() InRequest
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(gitlab GitLab, writer io.Writer) *OutCommand
func (*OutCommand) Run ¶
func (c *OutCommand) Run(sourceDir string, request OutRequest) (OutResponse, error)
type OutRequest ¶
func NewOutRequest ¶
func NewOutRequest() 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.