github

package
v0.0.0-...-34d171d Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OrgMapping = map[string]map[string]string{
	"globaldevops": map[string]string{},
	"transformers": map[string]string{},
	"devops":       map[string]string{},
	"connectors":   map[string]string{},
	"playground2":  map[string]string{},
}

OrgMapping is a map of maps which holds mapping of gitea orgs to github

Functions

func CreateRepo

func CreateRepo(repoName, orgName string, c *Client) (*github.Repository, error)

CreateRepo creates repo on the github

func Sync

func Sync(cmd *cobra.Command, args []string, auth *setup.Auth) bool

Types

type Client

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

Client type holds our context and authenticated client

func GetClient

func GetClient(token string) *Client

GetClient performs oauth authentication

Jump to

Keyboard shortcuts

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