contracts

package
v0.0.0-...-13999a6 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleBadges

func PossibleBadges(path string) []common.Badge

PossibleBadges returns the possible badges detected for a path

Types

type BowerBadgeContract

type BowerBadgeContract struct {
	Path string
}

BowerBadgeContract checks for npm badges

func NewBowerBadgeContract

func NewBowerBadgeContract(path string) *BowerBadgeContract

NewBowerBadgeContract returns contract for checking various badges related to npm

func (*BowerBadgeContract) Badges

func (contract *BowerBadgeContract) Badges() ([]common.Badge, error)

Badges yields array of badges that satisfy the contract

type CircleBadgeContract

type CircleBadgeContract struct {
	Path string
}

CircleBadgeContract checks for circle ci badges

func NewCircleBadgeContract

func NewCircleBadgeContract(path string) *CircleBadgeContract

NewCircleBadgeContract returns contract for checking various badges related to circle ci

func (CircleBadgeContract) Badges

func (contract CircleBadgeContract) Badges() ([]common.Badge, error)

Badges returns the badges for circle ci

type CodeclimateBadgeContract

type CodeclimateBadgeContract struct {
	Path string
}

CodeclimateBadgeContract checks for Codeclimate badges

func NewCodeclimateBadgeContract

func NewCodeclimateBadgeContract(path string) *CodeclimateBadgeContract

NewCodeclimateBadgeContract returns contract for checking various badges related to Codeclimate

func (CodeclimateBadgeContract) Badges

func (contract CodeclimateBadgeContract) Badges() ([]common.Badge, error)

Badges returns the badges for Codeclimate

type CodecovBadgeContract

type CodecovBadgeContract struct {
	Path string
}

CodecovBadgeContract checks for Codecov badges

func NewCodecovBadgeContract

func NewCodecovBadgeContract(path string) *CodecovBadgeContract

NewCodecovBadgeContract returns contract for checking various badges related to Codecov

func (CodecovBadgeContract) Badges

func (contract CodecovBadgeContract) Badges() ([]common.Badge, error)

Badges returns the badges for Codecov

type CoverallsBadgeContract

type CoverallsBadgeContract struct {
	Path string
}

CoverallsBadgeContract checks for Coveralls badges

func NewCoverallsBadgeContract

func NewCoverallsBadgeContract(path string) *CoverallsBadgeContract

NewCoverallsBadgeContract returns contract for checking various badges related to Coveralls

func (CoverallsBadgeContract) Badges

func (contract CoverallsBadgeContract) Badges() ([]common.Badge, error)

Badges returns the badges for Coveralls

type GithubBadgeContract

type GithubBadgeContract struct {
	Path string
	Name string
}

GithubBadgeContract checks for github badges

func NewGithubBadgeContract

func NewGithubBadgeContract(path string) *GithubBadgeContract

NewGithubBadgeContract returns contract for checking various badges releated to github

func (GithubBadgeContract) Badges

func (contract GithubBadgeContract) Badges() ([]common.Badge, error)

Badges returns the badges for github

type GitterBadgeContract

type GitterBadgeContract struct {
	Path string
}

GitterBadgeContract checks for gitter badges

func NewGitterBadgeContract

func NewGitterBadgeContract(path string) *GitterBadgeContract

NewGitterBadgeContract returns contract for checking various badges related to gitter

func (GitterBadgeContract) Badges

func (contract GitterBadgeContract) Badges() ([]common.Badge, error)

Badges returns the badges for gitter

type NpmBadgeContract

type NpmBadgeContract struct {
	Path string
}

NpmBadgeContract checks for npm badges

func NewNpmBadgeContract

func NewNpmBadgeContract(path string) *NpmBadgeContract

NewNpmBadgeContract returns contract for checking various badges related to npm

func (*NpmBadgeContract) Badges

func (contract *NpmBadgeContract) Badges() ([]common.Badge, error)

Badges yields array of badges that satisfy the contract

type SemaphoreBadgeContract

type SemaphoreBadgeContract struct {
	Path string
}

SemaphoreBadgeContract checks for Semaphore badges

func NewSemaphoreBadgeContract

func NewSemaphoreBadgeContract(path string) *SemaphoreBadgeContract

NewSemaphoreBadgeContract returns contract for checking various badges related to Semaphore

func (SemaphoreBadgeContract) Badges

func (contract SemaphoreBadgeContract) Badges() ([]common.Badge, error)

Badges returns the badges for Semaphore

type TravisBadgeContract

type TravisBadgeContract struct {
	Path string
}

TravisBadgeContract checks for travis badges

func NewTravisBadgeContract

func NewTravisBadgeContract(path string) *TravisBadgeContract

NewTravisBadgeContract returns contract for checking various badges related to travis

func (TravisBadgeContract) Badges

func (contract TravisBadgeContract) Badges() ([]common.Badge, error)

Badges returns the badges for travis

Jump to

Keyboard shortcuts

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