graphql

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collaborator added in v0.2.0

type Collaborator struct {
	Name      string `json:"name,omitempty"`
	Login     string `json:"login,omitempty"`
	AvatarURL string `json:"avatar_url,omitempty"`
}

type Collaborators added in v0.2.0

type Collaborators struct {
	TotalCount int            `json:"total_count,omitempty"`
	PageInfo   PageInfo       `json:"page_info,omitempty"`
	Nodes      []Collaborator `json:"nodes,omitempty"`
}

type Edge added in v0.2.0

type Edge struct {
	Node Node
}

type Enterprise added in v0.4.0

type Enterprise struct {
	OwnerInfo OwnerInfo `json:"ownerInfo,omitempty"`
}

type ExternalIdentities added in v0.4.0

type ExternalIdentities struct {
	Edges    []ExternalIdentityEdge `json:"edges,omitempty"`
	PageInfo PageInfo               `json:"pageInfo,omitempty"`
}

type ExternalIdentityEdge added in v0.4.0

type ExternalIdentityEdge struct {
	Node ExternalIdentityNode `json:"node,omitempty"`
}

type ExternalIdentityNode added in v0.4.0

type ExternalIdentityNode struct {
	SamlIdentity SamlIdentity `json:"samlIdentity,omitempty"`
	User         Member       `json:"user,omitempty"`
}

type LanguageEdge added in v0.2.0

type LanguageEdge struct {
	Size int
	Node LanguageNode
}

type LanguageNode added in v0.2.0

type LanguageNode struct {
	Name  string
	Color string
}

type Languages added in v0.2.0

type Languages struct {
	Edges []LanguageEdge `json:"edges,omitempty"`
}

type Member added in v0.4.0

type Member struct {
	ID           string           `json:"id,omitempty"`
	Login        string           `json:"login,omitempty"`
	Name         string           `json:"name,omitempty"`
	Email        string           `json:"email,omitempty"`
	Organization OrganizationName `graphql:"organization(login: $organization)" json:"organization,omitempty"`
}

type Node added in v0.2.0

type Node struct {
	Repository Repository `graphql:"... on Repository"`
}

type Organization

type Organization struct {
	Repositories Repositories `graphql:"repositories(first: 100, after: $repoCursor)" json:"repositories,omitempty"`
}

type OrganizationName added in v0.4.0

type OrganizationName struct {
	Name string `json:"name,omitempty"`
}

type Owner

type Owner struct {
	Login string `json:"login,omitempty"`
}

type OwnerInfo added in v0.4.0

type OwnerInfo struct {
	SamlIdentityProvider SamlIdentityProvider `json:"samlIdentityProvider,omitempty"`
}

type PageInfo

type PageInfo struct {
	HasNextPage bool            `json:"has_next_page,omitempty"`
	EndCursor   githubv4.String `json:"end_cursor,omitempty"`
}

type Repositories

type Repositories struct {
	TotalCount int          `json:"total_count,omitempty"`
	PageInfo   PageInfo     `json:"page_info,omitempty"`
	Nodes      []Repository `json:"nodes,omitempty"`
}

type Repository

type Repository struct {
	ID               string               `json:"id,omitempty"`
	Name             string               `json:"name,omitempty"`
	Description      string               `json:"description,omitempty"`
	URL              string               `json:"url,omitempty"`
	SSHURL           string               `json:"ssh_url,omitempty"`
	Owner            Owner                `json:"owner,omitempty"`
	IsPrivate        bool                 `json:"is_private,omitempty"`
	CreatedAt        time.Time            `json:"created_at,omitempty"`
	UpdatedAt        time.Time            `json:"updated_at,omitempty"`
	PushedAt         time.Time            `json:"pushed_at,omitempty"`
	RepositoryTopics RepositoryTopics     `graphql:"repositoryTopics(first: 25)" json:"repository_topics,omitempty"`
	Collaborators    Collaborators        `graphql:"collaborators(first: 15, affiliation: DIRECT)" json:"collaborators,omitempty"`
	Languages        Languages            `graphql:"languages(first: 10, orderBy: {field: SIZE, direction: DESC})" json:"languages,omitempty"`
	ForkCount        int                  `json:"fork_count,omitempty"`
	Stargazers       StargazersConnection `graphql:"stargazers(first: 0)" json:"stargazers,omitempty"`
	Watchers         UserConnection       `graphql:"watchers(first: 0)" json:"watchers,omitempty"`
}

type RepositorySearch added in v0.2.0

type RepositorySearch struct {
	RepositoryCount int
	PageInfo        PageInfo
	Edges           []Edge
}

type RepositoryTopic added in v0.1.2

type RepositoryTopic struct {
	Topic        Topic  `json:"topic,omitempty"`
	ResourcePath string `json:"resource_path,omitempty"`
}

type RepositoryTopics added in v0.1.2

type RepositoryTopics struct {
	Nodes []RepositoryTopic `json:"nodes,omitempty"`
}

type SamlIdentity added in v0.4.0

type SamlIdentity struct {
	NameId   string `json:"nameId,omitempty"`
	Username string `json:"username,omitempty"`
}

type SamlIdentityProvider added in v0.4.0

type SamlIdentityProvider struct {
	SsoURL             string             `json:"ssoUrl,omitempty"`
	ExternalIdentities ExternalIdentities `graphql:"externalIdentities(first: 100, after: $identityCursor)" json:"externalIdentities,omitempty"`
}

type StargazersConnection added in v0.3.1

type StargazersConnection struct {
	TotalCount int `json:"total_count,omitempty"`
}

type Topic added in v0.1.2

type Topic struct {
	Name string `json:"name,omitempty"`
}

type UserConnection added in v0.3.1

type UserConnection struct {
	TotalCount int `json:"total_count,omitempty"`
}

Jump to

Keyboard shortcuts

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