structs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HubUser

type HubUser 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"`
	SubscriptionsURL        string      `json:"subscriptions_url"`
	OrganizationsURL        string      `json:"organizations_url"`
	ReposURL                string      `json:"repos_url"`
	EventsURL               string      `json:"events_url"`
	ReceivedEventsURL       string      `json:"received_events_url"`
	Type                    string      `json:"type"`
	SiteAdmin               bool        `json:"site_admin"`
	Name                    string      `json:"name"`
	Company                 string      `json:"company"`
	Blog                    string      `json:"blog"`
	Location                interface{} `json:"location"`
	Email                   interface{} `json:"email"`
	Hireable                interface{} `json:"hireable"`
	Bio                     interface{} `json:"bio"`
	PublicRepos             int         `json:"public_repos"`
	PublicGists             int         `json:"public_gists"`
	Followers               int         `json:"followers"`
	Following               int         `json:"following"`
	CreatedAt               time.Time   `json:"created_at"`
	UpdatedAt               time.Time   `json:"updated_at"`
	PrivateGists            int         `json:"private_gists"`
	TotalPrivateRepos       int         `json:"total_private_repos"`
	OwnedPrivateRepos       int         `json:"owned_private_repos"`
	DiskUsage               int         `json:"disk_usage"`
	Collaborators           int         `json:"collaborators"`
	TwoFactorAuthentication bool        `json:"two_factor_authentication"`
	Plan                    struct {
		Name          string `json:"name"`
		Space         int    `json:"space"`
		Collaborators int    `json:"collaborators"`
		PrivateRepos  int    `json:"private_repos"`
	} `json:"plan"`
}

HubUser is the ghu

func (HubUser) GetID

func (h HubUser) GetID() string

GetID for HubUser

type LabUser

type LabUser struct {
	ID              int       `json:"id"`
	Name            string    `json:"name"`
	Username        string    `json:"username"`
	State           string    `json:"state"`
	AvatarURL       string    `json:"avatar_url"`
	WebURL          string    `json:"web_url"`
	CreatedAt       time.Time `json:"created_at"`
	Bio             string    `json:"bio"`
	Location        string    `json:"location"`
	PublicEmail     string    `json:"public_email"`
	Skype           string    `json:"skype"`
	Linkedin        string    `json:"linkedin"`
	Twitter         string    `json:"twitter"`
	WebsiteURL      string    `json:"website_url"`
	Organization    string    `json:"organization"`
	LastSignInAt    time.Time `json:"last_sign_in_at"`
	ConfirmedAt     time.Time `json:"confirmed_at"`
	LastActivityOn  string    `json:"last_activity_on"`
	Email           string    `json:"email"`
	ThemeID         int       `json:"theme_id"`
	ColorSchemeID   int       `json:"color_scheme_id"`
	ProjectsLimit   int       `json:"projects_limit"`
	CurrentSignInAt time.Time `json:"current_sign_in_at"`
	Identities      []struct {
		Provider  string `json:"provider"`
		ExternUID string `json:"extern_uid"`
	} `json:"identities"`
	CanCreateGroup   bool `json:"can_create_group"`
	CanCreateProject bool `json:"can_create_project"`
	TwoFactorEnabled bool `json:"two_factor_enabled"`
	External         bool `json:"external"`
	PrivateProfile   bool `json:"private_profile"`
}

LabUser is the glu

func (LabUser) GetID

func (l LabUser) GetID() string

GetID for LabUser

type MakeRequest

type MakeRequest struct{}

MakeRequest is a type with no struct to encapsulate the request commands in a unified place

func (*MakeRequest) ToGithub

func (t *MakeRequest) ToGithub(url, token string) (*http.Response, error)

ToGithub runs a request to github

func (*MakeRequest) ToGitlab

func (t *MakeRequest) ToGitlab(url string) (*http.Response, error)

ToGitlab runa a request to gitlab

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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