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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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