hook

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2015 License: MIT Imports: 4 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) Decode added in v0.0.2

func (r *BitbucketRecord) Decode(req *http.Request) error

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) Decode added in v0.0.2

func (r *DockerRecord) Decode(req *http.Request) error

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) Decode added in v0.0.2

func (r *GithubRecord) Decode(req *http.Request) error

func (*GithubRecord) GetName

func (r *GithubRecord) GetName() string

func (*GithubRecord) GetURL

func (r *GithubRecord) GetURL() string

type GitlabRecord added in v0.0.2

type GitlabRecord struct {
	Repository struct {
		Name string `json:"name"`
		URL  string `json:"git_ssh_url"`
	} `json:"repository"`
}

func (*GitlabRecord) Decode added in v0.0.2

func (r *GitlabRecord) Decode(req *http.Request) error

func (*GitlabRecord) GetName added in v0.0.2

func (r *GitlabRecord) GetName() string

func (*GitlabRecord) GetURL added in v0.0.2

func (r *GitlabRecord) GetURL() string

type Record

type Record interface {
	GetURL() string
	GetName() string
	Decode(r *http.Request) error
}

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