Documentation
¶
Index ¶
- type Client
- func (c *Client) Fetch() ([]models.Version, error)
- func (c *Client) Filter(versions []models.Version, filters ...filter.FilterFunc) (models.VersionSlice, error)
- func (c *Client) FormatRelease(version models.Version) string
- func (c *Client) Increment(sourceVersions []models.Version, stream models.VersionPattern, ...) (models.Version, error)
- func (c *Client) Push(ctx context.Context, version models.Version, target string) error
- func (c *Client) Validate(version, validatorType string) (bool, error)
- type Config
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 exposes the semver-manager operations to Go applications.
func (*Client) Fetch ¶
Fetch reads repository tags, removes the configured prefix, and parses SemVer tags.
func (*Client) Filter ¶
func (c *Client) Filter(versions []models.Version, filters ...filter.FilterFunc) (models.VersionSlice, error)
Filter applies the supplied filters to versions.
func (*Client) FormatRelease ¶
FormatRelease prefixes a semantic version for use as a repository tag name.
func (*Client) Increment ¶
func (c *Client) Increment(sourceVersions []models.Version, stream models.VersionPattern, level models.Increment) (models.Version, error)
Increment calculates the next version in the requested stream.