modules

package
v1.3.1-0...-fcba985 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRepo

func CreateRepo(cmdCtx *cobra.Command, args []string)

CreateRepo creates a repo connected to users pat

func DeleteRepo

func DeleteRepo(cmdCtx *cobra.Command, args []string)

DeleteRepo delete a repo connected to users pat

Types

type Repo

type Repo struct {
	Name        string `json:"name"`
	Private     string `jsob:"private"`
	Description string `json:"description"`
}

type User

type User struct {
	Login                   string   `json:"login"`
	Id                      int      `json:"id"`
	NodeId                  string   `json:"node_id"`
	AvatarUrl               string   `json:"avatar_url"`
	GravatarId              string   `json:"gravatar_id"`
	Url                     string   `json:"url"`
	HtmlUrl                 string   `json:"html_url"`
	FollowersUrl            string   `json:"followers_url"`
	FollowingUrl            string   `json:"following_url"`
	GistsUrl                string   `json:"gists_url"`
	StarredUrl              string   `json:"starred_url"`
	SubscriptionUrl         string   `json:"subscriptions_url"`
	OrganizationUrl         string   `json:"organizations_url"`
	ReposUrl                string   `json:"repos_url"`
	EventUrl                string   `json:"events_url"`
	RecievedEventsUrl       string   `json:"received_events_url"`
	UserType                string   `json:"type"`
	SiteAdmin               bool     `json:"site_admin"`
	Name                    string   `json:"name"`
	Company                 string   `json:"company"`
	Blog                    string   `json:"blog"`
	Location                string   `json:"location"`
	Email                   string   `json:"email"`
	Hireable                bool     `json:"hireable"`
	Bio                     string   `json:"bio"`
	TwitterUsername         string   `json:"twitter_username"`
	PublicRepos             int64    `json:"public_repos"`
	PublicGist              int64    `json:"public_gists"`
	Followers               int64    `json:"followers"`
	Following               int64    `json:"following"`
	CreatedAt               string   `json:"created_at"`
	UpdatedAt               string   `json:"updated_at"`
	PrivateGist             int64    `json:"private_gists"`
	TotalPrivateRepos       int64    `json:"total_private_repos"`
	OwnedPrivateRepos       int64    `json:"owned_private_repos"`
	DiskUsage               int64    `json:"disk_usage"`
	Collaborators           int64    `json:"collaborators"`
	TwoFactorAuthentication string   `json:"two_factor_authentication"`
	Plan                    UserPlan `json:"plan"`
}

type UserPlan

type UserPlan struct {
	Name          string `json:"name"`
	Space         int64  `json:"space"`
	PrivateRepo   int64  `json:"private_repo"`
	Collaborators int64  `json:"collaborator"`
}

Jump to

Keyboard shortcuts

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