services

package
v0.0.0-...-5e07a01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterSemverTags

func FilterSemverTags(tags []string) []string

func IsSemVer

func IsSemVer(version string) bool

Types

type DrySemverClient

type DrySemverClient struct {
	Username   string
	Password   string
	Repository string
}

func (*DrySemverClient) ListTags

func (drySv *DrySemverClient) ListTags(owner string, repo string) ([]string, error)

type GithubClient

type GithubClient struct {
	// contains filtered or unexported fields
}

func (*GithubClient) ListTags

func (ghClient *GithubClient) ListTags(owner string, repo string) ([]string, error)

type SemverClient

type SemverClient interface {
	ListTags(owner string, repo string) ([]string, error)
}

type SemverSvc

type SemverSvc struct {
	// contains filtered or unexported fields
}

func NewSemverSvc

func NewSemverSvc(platform, token string) (svc SemverSvc)

func (*SemverSvc) FetchHighestSemver

func (svSvc *SemverSvc) FetchHighestSemver(owner, repo string) (string, error)

func (*SemverSvc) FetchSemverTags

func (svSvc *SemverSvc) FetchSemverTags(owner, repo string) (tagList []string, err error)

func (*SemverSvc) GetHighestSemver

func (svSvc *SemverSvc) GetHighestSemver(semverList []string) (string, error)

type SemverSvcI

type SemverSvcI interface {
	FetchSemverTags() ([]string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL