github

package
v0.0.0-...-0193369 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReposNames []string

Functions

func CreateBranchsWithProgress

func CreateBranchsWithProgress(branch string, from string, xapOnly bool, client *github.Client) (progressChan chan RepoStatus, resChan chan map[string]interface{})

func DeleteBranchWithProgress

func DeleteBranchWithProgress(branch string, client *github.Client) (progressChan chan RepoStatus, resChan chan map[string]interface{})

func GetEvents

func GetEvents(owner, repo string, lastEventId *string, client *github.Client) (firstEventId *string, eventsMap map[string]*BranchOwnershipEvent, deletedMap map[string]bool, err error)

func GetEventsForRepos

func GetEventsForRepos(client *github.Client) (created chan map[string]map[string]*BranchOwnershipEvent)

func ListAllRefsAsMap

func ListAllRefsAsMap(client *github.Client) chan map[string]map[string]string

func ListRefs

func ListRefs(client *github.Client, owner string, repo string) ([]*github.Reference, error)

Types

type BranchOnRepositories

type BranchOnRepositories struct {
	Name     string          `json:"name"`
	Statuses map[string]bool `json:"statuses"`
}

type BranchOwnershipEvent

type BranchOwnershipEvent struct {
	Owner, Repo string
	Login       string
	CreatedAt   time.Time
	Branch      string
	Type        string
	Id          string
}

type EventData

type EventData struct {
	Ref        string `json:"ref"`
	RefType    string `json:"ref_type"`
	PusherType string `json:"pusher_type"`
}

{"ref":"yaelna_120","ref_type":"branch","pusher_type":"user"}

type RefList

type RefList struct {
}

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func (Repo) String

func (repo Repo) String() string

type RepoStatus

type RepoStatus struct {
	Name    string `json:"name"`
	Success bool   `json:"success"`
}

type SortByDateBranchOwnershipEvents

type SortByDateBranchOwnershipEvents []*BranchOwnershipEvent

func (SortByDateBranchOwnershipEvents) Len

func (SortByDateBranchOwnershipEvents) Less

func (SortByDateBranchOwnershipEvents) Swap

func (s SortByDateBranchOwnershipEvents) Swap(i, j int)

type UIBranch

type UIBranch struct {
	Name  string       `json:"name"`
	Repos []RepoStatus `json:"repos"`
}

Jump to

Keyboard shortcuts

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