task

package
v0.0.0-...-73b3c03 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTask

func AddTask(id string, store []string, t *Task) error

func ClearTask

func ClearTask(id string, store []string, t *Task) error

func GetToken

func GetToken(id string, store []string) (*oauth2.Token, error)

func SetToken

func SetToken(id string, store []string, t *oauth2.Token) error

Types

type Task

type Task struct {
	Name             string
	PullRequestEvent *github.PullRequestEvent
	PushEvent        *github.PushEvent
	Owner            string
	Repo             string
	Pr               int
	Token            *oauth2.Token
	Config           *oauth2.Config
}

func GetTask

func GetTask(id string, store []string) (*Task, error)

func (*Task) Refresh

func (t *Task) Refresh(id string, store []string) error

Jump to

Keyboard shortcuts

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