Documentation ¶
Index ¶
- func IsConflictError(err error) bool
- func IsNotFoundErr(err error) bool
- type Asset
- type Channel
- type Client
- func (c *Client) GetReleaseByVersion(ctx context.Context, v version.Version) (*Release, error)
- func (c *Client) PublishRelease(ctx context.Context, v version.Version) (*Release, error)
- func (c *Client) URL(path string, params ...any) string
- func (c *Client) UploadRelease(ctx context.Context, v version.Version, r io.Reader) (*Release, error)
- type ErrorResponse
- type Release
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsConflictError ¶
func IsNotFoundErr ¶
Types ¶
type Client ¶
type Client struct { BaseURL string HTTPClient *http.Client // contains filtered or unexported fields }
func (*Client) GetReleaseByVersion ¶
func (*Client) PublishRelease ¶
type ErrorResponse ¶
type ErrorResponse struct { Code int Message string `json:"error"` Messages []string `json:"errors"` }
func (ErrorResponse) Error ¶
func (e ErrorResponse) Error() string
type Release ¶
type Release struct { ID uint64 `json:"id"` Channel Channel `json:"channel"` Version version.Version `json:"version"` GitCommit string `json:"git_commit"` GitBranch string `json:"git_branch"` GitTag string `json:"git_tag"` GitPreviousTag string `json:"git_previous_tag"` GitDirty bool `json:"git_dirty"` Status string `json:"status"` InsertedAt time.Time `json:"inserted_at"` UpdatedAt time.Time `json:"updated_at"` PublishedAt time.Time `json:"published_at"` Assets []Asset `json:"assets"` }
Click to show internal directories.
Click to hide internal directories.