service

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptUserAndPassword

func PromptUserAndPassword(hostName string) (string, string)

Types

type Client

type Client interface {
	GetPullRequests(ctx context.Context, owner, repo string) ([]PullRequest, error)
	GetIssues(ctx context.Context, owner, repo string) ([]Issue, error)
	GetRepository(ctx context.Context, owner, repo string) (Repository, error)
	GetRepositoryURL(owner, repo string) (string, error)
	GetIssuesURL(owner, repo string) (string, error)
	GetIssueURL(owner, repo string, no int) (string, error)
	GetPullRequestsURL(owner, repo string) (string, error)
	GetPullRequestURL(owner, repo string, no int) (string, error)
	GetProjectsURL(owner, repo string) (string, error)
	GetProjectURL(owner, repo string, no int) (string, error)
	GetMilestonesURL(owner, repo string) (string, error)
	GetMilestoneURL(owner, repo string, no int) (string, error)
	GetWikisURL(owner, repo string) (string, error)
	GetCommitsURL(owner, repo string) (string, error)
	CreateRepository(ctx context.Context, repo string) (Repository, error)
	CreatePullRequest(ctx context.Context, repo string, opt *NewPullRequest) (PullRequest, error)
	CreateRelease(ctx context.Context, owner, repo string, newRelease *NewRelease) (Release, error)
	CreateToken(ctx context.Context) (string, error)
}

type Issue

type Issue interface {
	GetNumber() int
	GetTitle() string
	GetHTMLURL() string
}

type NewPullRequest added in v0.0.2

type NewPullRequest struct {
	Title      string
	Body       string
	BaseBranch string
	HeadBranch string
	BaseOwner  string
	HeadOwner  string
}

type NewRelease added in v0.0.2

type NewRelease struct {
	ID      int
	TagName string
	Name    string
	Body    string
	HTMLURL string
}

func (*NewRelease) GetBody added in v0.0.2

func (nr *NewRelease) GetBody() string

func (*NewRelease) GetHTMLURL added in v0.0.2

func (nr *NewRelease) GetHTMLURL() string

func (*NewRelease) GetID added in v0.0.2

func (nr *NewRelease) GetID() int

func (*NewRelease) GetName added in v0.0.2

func (nr *NewRelease) GetName() string

func (*NewRelease) GetTagName added in v0.0.2

func (nr *NewRelease) GetTagName() string

type PullRequest

type PullRequest interface {
	GetNumber() int
	GetTitle() string
	GetHTMLURL() string
}

type Release added in v0.0.2

type Release interface {
	GetID() int
	GetTagName() string
	GetName() string
	GetBody() string
	GetHTMLURL() string
}

type Repository

type Repository interface {
	GetHTMLURL() string
	GetGitURL() string
	GetCloneURL() string
}

Jump to

Keyboard shortcuts

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