models

package
v0.0.0-...-cb90f35 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultPermissions

type DefaultPermissions struct {
	Contents GithubPermissionType `json:"contents"`
	Metadata GithubPermissionType `json:"metadata"`
}

type GithubAppConfiguration

type GithubAppConfiguration struct {
	Id            int         `json:"id"`
	NodeId        string      `json:"node_id"`
	Owner         GithubOwner `json:"owner"`
	Name          string      `json:"name"`
	Description   string      `json:"description"`
	ExternalUrl   string      `json:"external_url"`
	HtmlUrl       string      `json:"html_url"`
	CreatedAt     time.Time   `json:"created_at"`
	UpdatedAt     time.Time   `json:"updated_at"`
	ClientId      string      `json:"client_id"`
	ClientSecret  string      `json:"client_secret"`
	WebhookSecret string      `json:"webhook_secret"`
	PEM           string      `json:"pem"`
}

GithubAppConfiguration is the app configuration from github

type GithubEventType

type GithubEventType string
const (
	Push GithubEventType = "push"
)

type GithubInstallationTokenModel

type GithubInstallationTokenModel struct {
	Token string `json:"token"`
}

type GithubLicense

type GithubLicense struct {
	Key    string `json:"key"`
	Name   string `json:"name"`
	SpdxId string `json:"spdx_id"`
	Url    string `json:"url"`
	NodeId string `json:"node_id"`
}

type GithubManifest

type GithubManifest struct {
	Name               string             `json:"name"`
	Url                string             `json:"url"`
	HookAttributes     HookAttributes     `json:"hook_attributes"`
	RedirectUrl        string             `json:"redirect_url"`
	Public             bool               `json:"public"`
	DefaultPermissions DefaultPermissions `json:"default_permissions"`
	DefaultEvents      []GithubEventType  `json:"default_events"`
}

type GithubOrganization

type GithubOrganization struct {
	Login                                string     `json:"login"`
	Id                                   int        `json:"id"`
	NodeID                               string     `json:"node_id"`
	Url                                  string     `json:"url"`
	ReposUrl                             string     `json:"repos_url"`
	EventsUrl                            string     `json:"events_url"`
	HooksUrl                             string     `json:"hooks_url"`
	IssuesUrl                            string     `json:"issues_url"`
	MembersUrl                           string     `json:"members_url"`
	PublicMembersUrl                     string     `json:"public_members_url"`
	AvatarUrl                            string     `json:"avatar_url"`
	Description                          string     `json:"description"`
	Name                                 string     `json:"name"`
	Company                              string     `json:"company"`
	Blog                                 string     `json:"blog"`
	Location                             string     `json:"location"`
	Email                                string     `json:"email"`
	IsVerified                           bool       `json:"is_verified"`
	HasOrganizationProjects              bool       `json:"has_organization_projects"`
	HasRepositoryProjects                bool       `json:"has_repository_projects"`
	PublicRepos                          int        `json:"public_repos"`
	PublicGists                          int        `json:"public_gists"`
	Followers                            int        `json:"followers"`
	Following                            int        `json:"following"`
	HTMLUrl                              string     `json:"html_url"`
	CreatedAt                            time.Time  `json:"created_at"`
	Type                                 string     `json:"type"`
	TotalPrivateRepos                    int        `json:"total_private_repos"`
	OwnedPrivateRepos                    int        `json:"owned_private_repos"`
	PrivateGists                         int        `json:"private_gists"`
	DiskUsage                            int        `json:"disk_usage"`
	Collaborators                        int        `json:"collaborators"`
	BillingEmail                         string     `json:"billing_email"`
	Plan                                 GithubPlan `json:"plan"`
	DefaultRepositoryPermission          string     `json:"default_repository_permission"`
	MembersCanCreateRepositories         bool       `json:"members_can_create_repositories"`
	TwoFactorRequirementEnabled          bool       `json:"two_factor_requirement_enabled"`
	MembersAllowedRepositoryCreationType string     `json:"members_allowed_repository_creation_type"`
	MembersCanCreatePublicRepositories   bool       `json:"members_can_create_public_repositories"`
	MembersCanCreatePrivateRepositories  bool       `json:"members_can_create_private_repositories"`
	MembersCanCreateInternalRepositories bool       `json:"members_can_create_internal_repositories"`
}

type GithubOwner

type GithubOwner 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"`
}

type GithubPermissionType

type GithubPermissionType string
const (
	NoAccess GithubPermissionType = "no access"
	Read     GithubPermissionType = "read-only"
	Write    GithubPermissionType = "write"
)

noinspection GoUnusedConst

type GithubPermissions

type GithubPermissions struct {
	Admin bool `json:"admin"`
	Push  bool `json:"push"`
	Pull  bool `json:"pull"`
}

type GithubPlan

type GithubPlan struct {
	Name         string `json:"name"`
	Space        int    `json:"space"`
	PrivateRepos int    `json:"private_repos"`
}

type GithubRepository

type GithubRepository struct {
	Id                 int               `json:"id"`
	NodeId             string            `json:"node_id"`
	Name               string            `json:"name"`
	FullName           string            `json:"full_name"`
	Owner              GithubOwner       `json:"owner"`
	Private            bool              `json:"private"`
	HTMLUrl            string            `json:"html_url"`
	Description        string            `json:"description"`
	Fork               bool              `json:"fork"`
	Url                string            `json:"url"`
	ArchiveUrl         string            `json:"archive_url"`
	AssigneesUrl       string            `json:"assignees_url"`
	BlobsUrl           string            `json:"blobs_url"`
	BranchesUrl        string            `json:"branches_url"`
	CollaboratorsUrl   string            `json:"collaborators_url"`
	CommentsUrl        string            `json:"comments_url"`
	CommitsUrl         string            `json:"commits_url"`
	CompareUrl         string            `json:"compare_url"`
	ContentsUrl        string            `json:"contents_url"`
	ContributorsUrl    string            `json:"contributors_url"`
	DeploymentsUrl     string            `json:"deployments_url"`
	DownloadsUrl       string            `json:"downloads_url"`
	EventsUrl          string            `json:"events_url"`
	ForksUrl           string            `json:"forks_url"`
	GitCommitsUrl      string            `json:"git_commits_url"`
	GitRefsUrl         string            `json:"git_refs_url"`
	GitTagsUrl         string            `json:"git_tags_url"`
	GitUrl             string            `json:"git_url"`
	IssueCommentUrl    string            `json:"issue_comment_url"`
	IssueEventsUrl     string            `json:"issue_events_url"`
	IssuesUrl          string            `json:"issues_url"`
	KeysUrl            string            `json:"keys_url"`
	LabelsUrl          string            `json:"labels_url"`
	LanguagesUrl       string            `json:"languages_url"`
	MergesUrl          string            `json:"merges_url"`
	MilestonesUrl      string            `json:"milestones_url"`
	NotificationsUrl   string            `json:"notifications_url"`
	PullsUrl           string            `json:"pulls_url"`
	ReleasesUrl        string            `json:"releases_url"`
	SSHUrl             string            `json:"ssh_url"`
	StargazersUrl      string            `json:"stargazers_url"`
	StatusesUrl        string            `json:"statuses_url"`
	SubscribersUrl     string            `json:"subscribers_url"`
	SubscriptionUrl    string            `json:"subscription_url"`
	TagsUrl            string            `json:"tags_url"`
	TeamsUrl           string            `json:"teams_url"`
	TreesUrl           string            `json:"trees_url"`
	CloneUrl           string            `json:"clone_url"`
	MirrorUrl          string            `json:"mirror_url"`
	HooksUrl           string            `json:"hooks_url"`
	SvnUrl             string            `json:"svn_url"`
	Homepage           string            `json:"homepage"`
	Language           interface{}       `json:"language"`
	ForksCount         int               `json:"forks_count"`
	StargazersCount    int               `json:"stargazers_count"`
	WatchersCount      int               `json:"watchers_count"`
	Size               int               `json:"size"`
	DefaultBranch      string            `json:"default_branch"`
	OpenIssuesCount    int               `json:"open_issues_count"`
	IsTemplate         bool              `json:"is_template"`
	Topics             []string          `json:"topics"`
	HasIssues          bool              `json:"has_issues"`
	HasProjects        bool              `json:"has_projects"`
	HasWiki            bool              `json:"has_wiki"`
	HasPages           bool              `json:"has_pages"`
	HasDownloads       bool              `json:"has_downloads"`
	Archived           bool              `json:"archived"`
	Disabled           bool              `json:"disabled"`
	Visibility         string            `json:"visibility"`
	PushedAt           time.Time         `json:"pushed_at"`
	CreatedAt          time.Time         `json:"created_at"`
	UpdatedAt          time.Time         `json:"updated_at"`
	Permissions        GithubPermissions `json:"permissions"`
	TemplateRepository interface{}       `json:"template_repository"`
	TempCloneToken     string            `json:"temp_clone_token"`
	SubscribersCount   int               `json:"subscribers_count"`
	NetworkCount       int               `json:"network_count"`
	License            GithubLicense     `json:"license"`
}

type HookAttributes

type HookAttributes struct {
	Url    string `json:"url"`
	Active bool   `json:"active"`
}

Jump to

Keyboard shortcuts

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