service

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 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)
	CreateToken(ctx context.Context) (string, error)
}

type Issue

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

type PullRequest

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

type Repository

type Repository interface {
	GetHTMLURL() string
}

Jump to

Keyboard shortcuts

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