githubops

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 19 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

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

Variables

This section is empty.

Functions

func AuthToGithub

func AuthToGithub() string

func ForkRepos

func ForkRepos(g *github.Client, cfg *globals.Config)

func GetUser

func GetUser(g *github.Client)

func InitClient

func InitClient() error

func UploadGPGKey added in v1.3.1

func UploadGPGKey(g *github.Client, gid *string)

func UploadSSHKey added in v1.3.1

func UploadSSHKey(g *github.Client, sshKeyPath string)

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