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: 0

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