Documentation ¶
Index ¶
- Constants
- Variables
- func FilterSemanticConstraint(c *semver.Constraints) func(interface{}) bool
- func FilterSemanticVersion(item interface{}) bool
- func FilterStableRelease(item interface{}) bool
- func ListReleases(client Client, opts ListReleaseOptions) rxgo.Observable
- func ReduceGreatestVersion(_ context.Context, acc interface{}, elem interface{}) (interface{}, error)
- type Client
- func NewClientFromDriver(driver, uri, token string) (Client, error)
- func NewGitHub(uri, token string) (Client, error)
- func NewGitHubClient(uri, token string, cl *http.Client) (Client, error)
- func NewGitLab(uri, token string) (Client, error)
- func NewGitLabClient(uri, token string, cl *http.Client) (Client, error)
- type ListOptions
- type ListReleaseOptions
- type Release
Constants ¶
View Source
const ( DriverGitHub = "github" DriverGitLab = "gitlab" )
Variables ¶
View Source
var ErrScmDriver = errors.New("scm driver error")
Functions ¶
func FilterSemanticConstraint ¶
func FilterSemanticConstraint(c *semver.Constraints) func(interface{}) bool
func FilterSemanticVersion ¶
func FilterSemanticVersion(item interface{}) bool
func FilterStableRelease ¶
func FilterStableRelease(item interface{}) bool
func ListReleases ¶
func ListReleases(client Client, opts ListReleaseOptions) rxgo.Observable
func ReduceGreatestVersion ¶ added in v0.3.0
Types ¶
type Client ¶
type Client interface { ListReleases(ctx context.Context, owner, name string, opt ListOptions) ([]Release, error) ListTags(ctx context.Context, owner, name string, opt ListOptions) ([]Release, error) }
func NewClientFromDriver ¶
type ListOptions ¶
type ListReleaseOptions ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.