ghops

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const SCOPES = "repo, admin:public_key, admin:gpg_key"

Variables

This section is empty.

Functions

func AuthToGithub

func AuthToGithub() string

func ForkRepos

func ForkRepos(g *github.Client, repos map[string][]string) error

func InitClient

func InitClient(token string) (*github.Client, *string, error)

func UploadKeys added in v1.1.0

func UploadKeys(g *github.Client, sshKey, gid string) error

Types

type DeviceFlowAccessPost

type DeviceFlowAccessPost struct {
	ClientId   string `json:"client_id"`
	DeviceCode string `json:"device_code"`
	GrantType  string `json:"grant_type"`
}

type DeviceFlowAccessResponse

type DeviceFlowAccessResponse struct {
	AccessToken string `json:"access_token"`
	TokenType   string `json:"token_type"`
	Scope       string `json:"scope"`
}

type DeviceFlowFirstPost

type DeviceFlowFirstPost struct {
	ClientId string `json:"client_id"`
	Scope    string `json:"scope"`
}

type DeviceFlowFirstPostResponse

type DeviceFlowFirstPostResponse struct {
	DeviceCode      string `json:"device_code"`
	UserCode        string `json:"user_code"`
	VerificationUri string `json:"verification_uri"`
	ExpiresIn       int    `json:"expires_in"`
	Interval        int    `json:"interval"`
}

Jump to

Keyboard shortcuts

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