reqcheck

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: BSD-2-Clause Imports: 13 Imported by: 0

README

reqcheck

Determine when a WebKit requirement has a new release

Build

Build the binary with the following command:

set GOOS=windows
set GOARCH=amd64
set CGO_ENABLED=0

go build -v -a -tags netgo -o release\windows\amd64\reqcheck.exe ./cmd/reqcheck

Docker

Build the Docker image with the following command:

docker build --file docker\Dockerfile.windows.1809 --tag webkitdev/reqcheck .

Run the Docker image with the following command:

docker run --rm `
    -v <path-to-requirements>:C:/WebKitRequirements `
    -w C:/WebKitRequirements `
    webkitdev/reqcheck vcpkg .

Documentation

Index

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

func ReduceGreatestVersion(_ context.Context, acc interface{}, elem interface{}) (interface{}, error)

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

func NewClientFromDriver(driver, uri, token string) (Client, error)

func NewGitHub

func NewGitHub(uri, token string) (Client, error)

func NewGitHubClient

func NewGitHubClient(uri, token string, cl *http.Client) (Client, error)

func NewGitLab

func NewGitLab(uri, token string) (Client, error)

func NewGitLabClient

func NewGitLabClient(uri, token string, cl *http.Client) (Client, error)

type ListOptions

type ListOptions struct {
	// For paginated result sets, page of results to retrieve.
	Page int
	// For paginated result sets, the number of results to include per page.
	PerPage int
}

type ListReleaseOptions

type ListReleaseOptions struct {
	Owner   string
	Repo    string
	Tags    bool
	LimitTo int
}

type Release

type Release struct {
	Tag    string
	SemVer *semver.Version
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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