adapter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RegPass is regexp for matching success build
	RegPass = regexp.MustCompile(`passed|passing`)
	// RegFail is regexp for matching failed build
	RegFail = regexp.MustCompile(`failed|failing`)
)
View Source
var ErrorInput = BadgeInput{
	Subject: "error",
	Status:  "api error",
	Color:   "red",
}

ErrorInput is default input when error occurred

View Source
var GITHUB_TOKEN = os.Getenv("GITHUB_TOKEN")

GITHUB_TOKEN is our github api token cause v4 need it

View Source
var GITHUB_TOPICS = []string{"stars", "forks", "watchers", "release", "tag", "issues", "open-issues", "license", "open-pull-requests"}

GITHUB_TOPICS is github api support topic

View Source
var NPM_VALID_TOPICS = []string{"version", "downloads", "license", "dw", "dm", "dy"}

NPM_VALID_TOPICS is valid topic docker api support

View Source
var VALID_TOPICS = []string{"stars", "pulls"}

VALID_TOPICS is valid topic docker api support

Functions

This section is empty.

Types

type ApiFunc

type ApiFunc func(args ...string) BadgeInput

ApiFunc is function type api provider should implement

type BadgeInput

type BadgeInput badge.Input

BadgeInput is input type for badge generator

func AppveyorApi

func AppveyorApi(args ...string) BadgeInput

AppveyorApi is appveyor api provider

func BundlephobiaApi

func BundlephobiaApi(args ...string) BadgeInput

BundlephobiaApi is bundlephobia api provider

func ChromeWebStoreApi

func ChromeWebStoreApi(args ...string) BadgeInput

ChromeWebStoreApi is chrome web store api provider

func CircleciApi

func CircleciApi(args ...string) BadgeInput

CircleciApi is circleci api provider

func CodecovApi

func CodecovApi(args ...string) BadgeInput

CodecovApi is codecov api provider

func CratesApi

func CratesApi(args ...string) BadgeInput

CratesApi is crates api provider

func DockerApi

func DockerApi(args ...string) BadgeInput

DockerApi is docker hub api provider

func GemApi

func GemApi(args ...string) BadgeInput

GemApi is gem api provider

func GithubApi

func GithubApi(args ...string) BadgeInput

GithubApi is github api provider

func HomebrewApi

func HomebrewApi(args ...string) BadgeInput

HomebrewApi is homebrew api provider

func NpmApi

func NpmApi(args ...string) BadgeInput

NpmApi is npm api provider

func OpencollectiveApi

func OpencollectiveApi(args ...string) BadgeInput

OpencollectiveApi is opencollective api provider

func PackagephobiaApi

func PackagephobiaApi(args ...string) BadgeInput

PackagephobiaApi is packagephobia api provider

func PypiApi

func PypiApi(args ...string) BadgeInput

PypiApi is pypi api provider

func TravisApi

func TravisApi(args ...string) BadgeInput

TravisApi is travis api provider

Jump to

Keyboard shortcuts

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