hook

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitbucketRecord

type BitbucketRecord struct {
	Repository struct {
		Slug  string `json:"slug"`
		Owner string `json:"owner"`
	} `json:"repository"`
}

func (BitbucketRecord) GetName

func (r BitbucketRecord) GetName() string

func (BitbucketRecord) GetURL

func (r BitbucketRecord) GetURL() string

type DockerRecord

type DockerRecord struct {
	Repository struct {
		Name string `json:"repo_name"`
		URL  string `json:"repo_url"`
	} `json:"repository"`
}

func (DockerRecord) GetName

func (r DockerRecord) GetName() string

func (DockerRecord) GetURL

func (r DockerRecord) GetURL() string

type GithubRecord

type GithubRecord struct {
	Repository struct {
		Name string `json:"name"`
		URL  string `json:"git_url"`
	} `json:"repository"`
}

func (GithubRecord) GetName

func (r GithubRecord) GetName() string

func (GithubRecord) GetURL

func (r GithubRecord) GetURL() string

type Record

type Record interface {
	GetURL() string
	GetName() string
}

func RecordFactory

func RecordFactory(hookname string) (Record, error)

Jump to

Keyboard shortcuts

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