Documentation
¶
Overview ¶
Package githubv4 provides GitHub API v4 adaptor
Index ¶
- Constants
- type LanguageFragment
- type ListReposResponse
- type ListReposViewerUser
- type ListReposViewerUserRepositoriesRepositoryConnection
- func (v *ListReposViewerUserRepositoriesRepositoryConnection) GetEdges() []ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdge
- func (v *ListReposViewerUserRepositoriesRepositoryConnection) GetPageInfo() ListReposViewerUserRepositoriesRepositoryConnectionPageInfo
- func (v *ListReposViewerUserRepositoriesRepositoryConnection) GetTotalCount() int
- type ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdge
- type ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetCreatedAt() time.Time
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetDescription() string
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetHomepageUrl() string
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsArchived() bool
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsFork() bool
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsPrivate() bool
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsTemplate() bool
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetName() string
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetOwner() RepositoryFragmentOwnerRepositoryOwner
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetParent() RepositoryFragmentParentRepository
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetPrimaryLanguage() RepositoryFragmentPrimaryLanguage
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetUpdatedAt() time.Time
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetUrl() string
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) MarshalJSON() ([]byte, error)
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) UnmarshalJSON(b []byte) error
- type ListReposViewerUserRepositoriesRepositoryConnectionPageInfo
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) GetEndCursor() string
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) GetHasNextPage() bool
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) MarshalJSON() ([]byte, error)
- func (v *ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) UnmarshalJSON(b []byte) error
- type OrderDirection
- type OwnerFragment
- type OwnerFragmentOrganization
- type OwnerFragmentUser
- type PageInfoFragment
- type ParentRepositoryFragment
- type ParentRepositoryFragmentOwnerOrganization
- func (v *ParentRepositoryFragmentOwnerOrganization) GetLogin() string
- func (v *ParentRepositoryFragmentOwnerOrganization) GetTypename() string
- func (v *ParentRepositoryFragmentOwnerOrganization) MarshalJSON() ([]byte, error)
- func (v *ParentRepositoryFragmentOwnerOrganization) UnmarshalJSON(b []byte) error
- type ParentRepositoryFragmentOwnerRepositoryOwner
- type ParentRepositoryFragmentOwnerUser
- type RepositoryAffiliation
- type RepositoryFragment
- func (v *RepositoryFragment) GetCreatedAt() time.Time
- func (v *RepositoryFragment) GetDescription() string
- func (v *RepositoryFragment) GetHomepageUrl() string
- func (v *RepositoryFragment) GetIsArchived() bool
- func (v *RepositoryFragment) GetIsFork() bool
- func (v *RepositoryFragment) GetIsPrivate() bool
- func (v *RepositoryFragment) GetIsTemplate() bool
- func (v *RepositoryFragment) GetName() string
- func (v *RepositoryFragment) GetOwner() RepositoryFragmentOwnerRepositoryOwner
- func (v *RepositoryFragment) GetParent() RepositoryFragmentParentRepository
- func (v *RepositoryFragment) GetPrimaryLanguage() RepositoryFragmentPrimaryLanguage
- func (v *RepositoryFragment) GetUpdatedAt() time.Time
- func (v *RepositoryFragment) GetUrl() string
- func (v *RepositoryFragment) MarshalJSON() ([]byte, error)
- func (v *RepositoryFragment) UnmarshalJSON(b []byte) error
- type RepositoryFragmentOwnerOrganization
- type RepositoryFragmentOwnerRepositoryOwner
- type RepositoryFragmentOwnerUser
- type RepositoryFragmentParentRepository
- func (v *RepositoryFragmentParentRepository) GetName() string
- func (v *RepositoryFragmentParentRepository) GetOwner() ParentRepositoryFragmentOwnerRepositoryOwner
- func (v *RepositoryFragmentParentRepository) MarshalJSON() ([]byte, error)
- func (v *RepositoryFragmentParentRepository) UnmarshalJSON(b []byte) error
- type RepositoryFragmentPrimaryLanguage
- type RepositoryOrder
- type RepositoryOrderField
- type RepositoryPrivacy
Constants ¶
const ListRepos_Operation = `` /* 1105-byte string literal not displayed */
The query or mutation executed by ListRepos.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LanguageFragment ¶
type LanguageFragment struct { // The name of the current language. Name string `json:"name"` }
LanguageFragment includes the GraphQL fields of Language requested by the fragment LanguageFragment. The GraphQL type's documentation follows.
Represents a given language found in repositories.
func (*LanguageFragment) GetName ¶
func (v *LanguageFragment) GetName() string
GetName returns LanguageFragment.Name, and is useful for accessing the field via an interface.
type ListReposResponse ¶
type ListReposResponse struct { // The currently authenticated user. Viewer ListReposViewerUser `json:"viewer"` }
ListReposResponse is returned by ListRepos on success.
func ListRepos ¶
func ListRepos( ctx_ context.Context, client_ graphql.Client, first int, after string, isFork *bool, privacy RepositoryPrivacy, affiliations []RepositoryAffiliation, orderBy RepositoryOrder, isArchived *bool, ) (*ListReposResponse, error)
func (*ListReposResponse) GetViewer ¶
func (v *ListReposResponse) GetViewer() ListReposViewerUser
GetViewer returns ListReposResponse.Viewer, and is useful for accessing the field via an interface.
type ListReposViewerUser ¶
type ListReposViewerUser struct { // A list of repositories that the user owns. Repositories ListReposViewerUserRepositoriesRepositoryConnection `json:"repositories"` }
ListReposViewerUser includes the requested fields of the GraphQL type User. The GraphQL type's documentation follows.
A user is an individual's account on GitHub that owns repositories and can make new content.
func (*ListReposViewerUser) GetRepositories ¶
func (v *ListReposViewerUser) GetRepositories() ListReposViewerUserRepositoriesRepositoryConnection
GetRepositories returns ListReposViewerUser.Repositories, and is useful for accessing the field via an interface.
type ListReposViewerUserRepositoriesRepositoryConnection ¶
type ListReposViewerUserRepositoriesRepositoryConnection struct { // A list of edges. Edges []ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdge `json:"edges"` // Identifies the total count of items in the connection. TotalCount int `json:"totalCount"` // Information to aid in pagination. PageInfo ListReposViewerUserRepositoriesRepositoryConnectionPageInfo `json:"pageInfo"` }
ListReposViewerUserRepositoriesRepositoryConnection includes the requested fields of the GraphQL type RepositoryConnection. The GraphQL type's documentation follows.
A list of repositories owned by the subject.
func (*ListReposViewerUserRepositoriesRepositoryConnection) GetEdges ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnection) GetEdges() []ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdge
GetEdges returns ListReposViewerUserRepositoriesRepositoryConnection.Edges, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnection) GetPageInfo ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnection) GetPageInfo() ListReposViewerUserRepositoriesRepositoryConnectionPageInfo
GetPageInfo returns ListReposViewerUserRepositoriesRepositoryConnection.PageInfo, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnection) GetTotalCount ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnection) GetTotalCount() int
GetTotalCount returns ListReposViewerUserRepositoriesRepositoryConnection.TotalCount, and is useful for accessing the field via an interface.
type ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdge ¶
type ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdge struct { // The item at the end of the edge. Node ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository `json:"node"` }
ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdge includes the requested fields of the GraphQL type RepositoryEdge. The GraphQL type's documentation follows.
An edge in a connection.
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdge) GetNode ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdge) GetNode() ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository
GetNode returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdge.Node, and is useful for accessing the field via an interface.
type ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository ¶
type ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository struct {
RepositoryFragment `json:"-"`
}
ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository includes the requested fields of the GraphQL type Repository. The GraphQL type's documentation follows.
A repository contains the content for a project.
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetCreatedAt ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetCreatedAt() time.Time
GetCreatedAt returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.CreatedAt, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetDescription ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetDescription() string
GetDescription returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.Description, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetHomepageUrl ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetHomepageUrl() string
GetHomepageUrl returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.HomepageUrl, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsArchived ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsArchived() bool
GetIsArchived returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.IsArchived, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsFork ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsFork() bool
GetIsFork returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.IsFork, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsPrivate ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsPrivate() bool
GetIsPrivate returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.IsPrivate, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsTemplate ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsTemplate() bool
GetIsTemplate returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.IsTemplate, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetName ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetName() string
GetName returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.Name, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetOwner ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetOwner() RepositoryFragmentOwnerRepositoryOwner
GetOwner returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.Owner, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetParent ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetParent() RepositoryFragmentParentRepository
GetParent returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.Parent, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetPrimaryLanguage ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetPrimaryLanguage() RepositoryFragmentPrimaryLanguage
GetPrimaryLanguage returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.PrimaryLanguage, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetUpdatedAt ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetUpdatedAt() time.Time
GetUpdatedAt returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.UpdatedAt, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetUrl ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetUrl() string
GetUrl returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.Url, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) MarshalJSON ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) MarshalJSON() ([]byte, error)
func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) UnmarshalJSON ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) UnmarshalJSON(b []byte) error
type ListReposViewerUserRepositoriesRepositoryConnectionPageInfo ¶
type ListReposViewerUserRepositoriesRepositoryConnectionPageInfo struct {
PageInfoFragment `json:"-"`
}
ListReposViewerUserRepositoriesRepositoryConnectionPageInfo includes the requested fields of the GraphQL type PageInfo. The GraphQL type's documentation follows.
Information about pagination in a connection.
func (*ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) GetEndCursor ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) GetEndCursor() string
GetEndCursor returns ListReposViewerUserRepositoriesRepositoryConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) GetHasNextPage ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) GetHasNextPage() bool
GetHasNextPage returns ListReposViewerUserRepositoriesRepositoryConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface.
func (*ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) MarshalJSON ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) MarshalJSON() ([]byte, error)
func (*ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) UnmarshalJSON ¶
func (v *ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) UnmarshalJSON(b []byte) error
type OrderDirection ¶
type OrderDirection string
Possible directions in which to order a list of items when provided an `orderBy` argument.
const ( // Specifies an ascending order for a given `orderBy` argument. OrderDirectionAsc OrderDirection = "ASC" // Specifies a descending order for a given `orderBy` argument. OrderDirectionDesc OrderDirection = "DESC" )
type OwnerFragment ¶
type OwnerFragment interface { // GetLogin returns the interface-field "login" from its implementation. // The GraphQL interface field's documentation follows. // // The username used to login. GetLogin() string // contains filtered or unexported methods }
OwnerFragment includes the GraphQL fields of RepositoryOwner requested by the fragment OwnerFragment. The GraphQL type's documentation follows.
Represents an owner of a Repository.
OwnerFragment is implemented by the following types: OwnerFragmentOrganization OwnerFragmentUser
type OwnerFragmentOrganization ¶
type OwnerFragmentOrganization struct { // The username used to login. Login string `json:"login"` }
OwnerFragment includes the GraphQL fields of Organization requested by the fragment OwnerFragment. The GraphQL type's documentation follows.
Represents an owner of a Repository.
func (*OwnerFragmentOrganization) GetLogin ¶
func (v *OwnerFragmentOrganization) GetLogin() string
GetLogin returns OwnerFragmentOrganization.Login, and is useful for accessing the field via an interface.
type OwnerFragmentUser ¶
type OwnerFragmentUser struct { // The username used to login. Login string `json:"login"` }
OwnerFragment includes the GraphQL fields of User requested by the fragment OwnerFragment. The GraphQL type's documentation follows.
Represents an owner of a Repository.
func (*OwnerFragmentUser) GetLogin ¶
func (v *OwnerFragmentUser) GetLogin() string
GetLogin returns OwnerFragmentUser.Login, and is useful for accessing the field via an interface.
type PageInfoFragment ¶
type PageInfoFragment struct { // When paginating forwards, the cursor to continue. EndCursor string `json:"endCursor"` // When paginating forwards, are there more items? HasNextPage bool `json:"hasNextPage"` }
PageInfoFragment includes the GraphQL fields of PageInfo requested by the fragment PageInfoFragment. The GraphQL type's documentation follows.
Information about pagination in a connection.
func (*PageInfoFragment) GetEndCursor ¶
func (v *PageInfoFragment) GetEndCursor() string
GetEndCursor returns PageInfoFragment.EndCursor, and is useful for accessing the field via an interface.
func (*PageInfoFragment) GetHasNextPage ¶
func (v *PageInfoFragment) GetHasNextPage() bool
GetHasNextPage returns PageInfoFragment.HasNextPage, and is useful for accessing the field via an interface.
type ParentRepositoryFragment ¶
type ParentRepositoryFragment struct { // The name of the repository. Name string `json:"name"` // The User owner of the repository. Owner ParentRepositoryFragmentOwnerRepositoryOwner `json:"-"` }
ParentRepositoryFragment includes the GraphQL fields of Repository requested by the fragment ParentRepositoryFragment. The GraphQL type's documentation follows.
A repository contains the content for a project.
func (*ParentRepositoryFragment) GetName ¶
func (v *ParentRepositoryFragment) GetName() string
GetName returns ParentRepositoryFragment.Name, and is useful for accessing the field via an interface.
func (*ParentRepositoryFragment) GetOwner ¶
func (v *ParentRepositoryFragment) GetOwner() ParentRepositoryFragmentOwnerRepositoryOwner
GetOwner returns ParentRepositoryFragment.Owner, and is useful for accessing the field via an interface.
func (*ParentRepositoryFragment) MarshalJSON ¶
func (v *ParentRepositoryFragment) MarshalJSON() ([]byte, error)
func (*ParentRepositoryFragment) UnmarshalJSON ¶
func (v *ParentRepositoryFragment) UnmarshalJSON(b []byte) error
type ParentRepositoryFragmentOwnerOrganization ¶
type ParentRepositoryFragmentOwnerOrganization struct { Typename string `json:"__typename"` OwnerFragmentOrganization `json:"-"` }
ParentRepositoryFragmentOwnerOrganization includes the requested fields of the GraphQL type Organization. The GraphQL type's documentation follows.
An account on GitHub, with one or more owners, that has repositories, members and teams.
func (*ParentRepositoryFragmentOwnerOrganization) GetLogin ¶
func (v *ParentRepositoryFragmentOwnerOrganization) GetLogin() string
GetLogin returns ParentRepositoryFragmentOwnerOrganization.Login, and is useful for accessing the field via an interface.
func (*ParentRepositoryFragmentOwnerOrganization) GetTypename ¶
func (v *ParentRepositoryFragmentOwnerOrganization) GetTypename() string
GetTypename returns ParentRepositoryFragmentOwnerOrganization.Typename, and is useful for accessing the field via an interface.
func (*ParentRepositoryFragmentOwnerOrganization) MarshalJSON ¶
func (v *ParentRepositoryFragmentOwnerOrganization) MarshalJSON() ([]byte, error)
func (*ParentRepositoryFragmentOwnerOrganization) UnmarshalJSON ¶
func (v *ParentRepositoryFragmentOwnerOrganization) UnmarshalJSON(b []byte) error
type ParentRepositoryFragmentOwnerRepositoryOwner ¶
type ParentRepositoryFragmentOwnerRepositoryOwner interface { // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). GetTypename() string OwnerFragment // contains filtered or unexported methods }
ParentRepositoryFragmentOwnerRepositoryOwner includes the requested fields of the GraphQL interface RepositoryOwner.
ParentRepositoryFragmentOwnerRepositoryOwner is implemented by the following types: ParentRepositoryFragmentOwnerOrganization ParentRepositoryFragmentOwnerUser The GraphQL type's documentation follows.
Represents an owner of a Repository.
type ParentRepositoryFragmentOwnerUser ¶
type ParentRepositoryFragmentOwnerUser struct { Typename string `json:"__typename"` OwnerFragmentUser `json:"-"` }
ParentRepositoryFragmentOwnerUser includes the requested fields of the GraphQL type User. The GraphQL type's documentation follows.
A user is an individual's account on GitHub that owns repositories and can make new content.
func (*ParentRepositoryFragmentOwnerUser) GetLogin ¶
func (v *ParentRepositoryFragmentOwnerUser) GetLogin() string
GetLogin returns ParentRepositoryFragmentOwnerUser.Login, and is useful for accessing the field via an interface.
func (*ParentRepositoryFragmentOwnerUser) GetTypename ¶
func (v *ParentRepositoryFragmentOwnerUser) GetTypename() string
GetTypename returns ParentRepositoryFragmentOwnerUser.Typename, and is useful for accessing the field via an interface.
func (*ParentRepositoryFragmentOwnerUser) MarshalJSON ¶
func (v *ParentRepositoryFragmentOwnerUser) MarshalJSON() ([]byte, error)
func (*ParentRepositoryFragmentOwnerUser) UnmarshalJSON ¶
func (v *ParentRepositoryFragmentOwnerUser) UnmarshalJSON(b []byte) error
type RepositoryAffiliation ¶
type RepositoryAffiliation string
The affiliation of a user to a repository
const ( // Repositories that the user has been added to as a collaborator. RepositoryAffiliationCollaborator RepositoryAffiliation = "COLLABORATOR" // Repositories that the user has access to through being a member of an // organization. This includes every repository on every team that the user is on. RepositoryAffiliationOrganizationMember RepositoryAffiliation = "ORGANIZATION_MEMBER" // Repositories that are owned by the authenticated user. RepositoryAffiliationOwner RepositoryAffiliation = "OWNER" )
type RepositoryFragment ¶
type RepositoryFragment struct { // The HTTP URL for this repository Url string `json:"url"` // The repository's URL. HomepageUrl string `json:"homepageUrl"` // The primary language of the repository's code. PrimaryLanguage RepositoryFragmentPrimaryLanguage `json:"primaryLanguage"` // The name of the repository. Name string `json:"name"` // The User owner of the repository. Owner RepositoryFragmentOwnerRepositoryOwner `json:"-"` // The description of the repository. Description string `json:"description"` // Identifies the date and time when the object was created. CreatedAt time.Time `json:"createdAt"` // Indicates if the repository is unmaintained. IsArchived bool `json:"isArchived"` // Identifies if the repository is a fork. IsFork bool `json:"isFork"` // Identifies if the repository is private or internal. IsPrivate bool `json:"isPrivate"` // Identifies if the repository is a template that can be used to generate new repositories. IsTemplate bool `json:"isTemplate"` // Identifies the date and time when the object was last updated. UpdatedAt time.Time `json:"updatedAt"` // The repository parent, if this is a fork. Parent RepositoryFragmentParentRepository `json:"parent"` }
RepositoryFragment includes the GraphQL fields of Repository requested by the fragment RepositoryFragment. The GraphQL type's documentation follows.
A repository contains the content for a project.
func (*RepositoryFragment) GetCreatedAt ¶
func (v *RepositoryFragment) GetCreatedAt() time.Time
GetCreatedAt returns RepositoryFragment.CreatedAt, and is useful for accessing the field via an interface.
func (*RepositoryFragment) GetDescription ¶
func (v *RepositoryFragment) GetDescription() string
GetDescription returns RepositoryFragment.Description, and is useful for accessing the field via an interface.
func (*RepositoryFragment) GetHomepageUrl ¶
func (v *RepositoryFragment) GetHomepageUrl() string
GetHomepageUrl returns RepositoryFragment.HomepageUrl, and is useful for accessing the field via an interface.
func (*RepositoryFragment) GetIsArchived ¶
func (v *RepositoryFragment) GetIsArchived() bool
GetIsArchived returns RepositoryFragment.IsArchived, and is useful for accessing the field via an interface.
func (*RepositoryFragment) GetIsFork ¶
func (v *RepositoryFragment) GetIsFork() bool
GetIsFork returns RepositoryFragment.IsFork, and is useful for accessing the field via an interface.
func (*RepositoryFragment) GetIsPrivate ¶
func (v *RepositoryFragment) GetIsPrivate() bool
GetIsPrivate returns RepositoryFragment.IsPrivate, and is useful for accessing the field via an interface.
func (*RepositoryFragment) GetIsTemplate ¶
func (v *RepositoryFragment) GetIsTemplate() bool
GetIsTemplate returns RepositoryFragment.IsTemplate, and is useful for accessing the field via an interface.
func (*RepositoryFragment) GetName ¶
func (v *RepositoryFragment) GetName() string
GetName returns RepositoryFragment.Name, and is useful for accessing the field via an interface.
func (*RepositoryFragment) GetOwner ¶
func (v *RepositoryFragment) GetOwner() RepositoryFragmentOwnerRepositoryOwner
GetOwner returns RepositoryFragment.Owner, and is useful for accessing the field via an interface.
func (*RepositoryFragment) GetParent ¶
func (v *RepositoryFragment) GetParent() RepositoryFragmentParentRepository
GetParent returns RepositoryFragment.Parent, and is useful for accessing the field via an interface.
func (*RepositoryFragment) GetPrimaryLanguage ¶
func (v *RepositoryFragment) GetPrimaryLanguage() RepositoryFragmentPrimaryLanguage
GetPrimaryLanguage returns RepositoryFragment.PrimaryLanguage, and is useful for accessing the field via an interface.
func (*RepositoryFragment) GetUpdatedAt ¶
func (v *RepositoryFragment) GetUpdatedAt() time.Time
GetUpdatedAt returns RepositoryFragment.UpdatedAt, and is useful for accessing the field via an interface.
func (*RepositoryFragment) GetUrl ¶
func (v *RepositoryFragment) GetUrl() string
GetUrl returns RepositoryFragment.Url, and is useful for accessing the field via an interface.
func (*RepositoryFragment) MarshalJSON ¶
func (v *RepositoryFragment) MarshalJSON() ([]byte, error)
func (*RepositoryFragment) UnmarshalJSON ¶
func (v *RepositoryFragment) UnmarshalJSON(b []byte) error
type RepositoryFragmentOwnerOrganization ¶
type RepositoryFragmentOwnerOrganization struct { Typename string `json:"__typename"` OwnerFragmentOrganization `json:"-"` }
RepositoryFragmentOwnerOrganization includes the requested fields of the GraphQL type Organization. The GraphQL type's documentation follows.
An account on GitHub, with one or more owners, that has repositories, members and teams.
func (*RepositoryFragmentOwnerOrganization) GetLogin ¶
func (v *RepositoryFragmentOwnerOrganization) GetLogin() string
GetLogin returns RepositoryFragmentOwnerOrganization.Login, and is useful for accessing the field via an interface.
func (*RepositoryFragmentOwnerOrganization) GetTypename ¶
func (v *RepositoryFragmentOwnerOrganization) GetTypename() string
GetTypename returns RepositoryFragmentOwnerOrganization.Typename, and is useful for accessing the field via an interface.
func (*RepositoryFragmentOwnerOrganization) MarshalJSON ¶
func (v *RepositoryFragmentOwnerOrganization) MarshalJSON() ([]byte, error)
func (*RepositoryFragmentOwnerOrganization) UnmarshalJSON ¶
func (v *RepositoryFragmentOwnerOrganization) UnmarshalJSON(b []byte) error
type RepositoryFragmentOwnerRepositoryOwner ¶
type RepositoryFragmentOwnerRepositoryOwner interface { // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). GetTypename() string OwnerFragment // contains filtered or unexported methods }
RepositoryFragmentOwnerRepositoryOwner includes the requested fields of the GraphQL interface RepositoryOwner.
RepositoryFragmentOwnerRepositoryOwner is implemented by the following types: RepositoryFragmentOwnerOrganization RepositoryFragmentOwnerUser The GraphQL type's documentation follows.
Represents an owner of a Repository.
type RepositoryFragmentOwnerUser ¶
type RepositoryFragmentOwnerUser struct { Typename string `json:"__typename"` OwnerFragmentUser `json:"-"` }
RepositoryFragmentOwnerUser includes the requested fields of the GraphQL type User. The GraphQL type's documentation follows.
A user is an individual's account on GitHub that owns repositories and can make new content.
func (*RepositoryFragmentOwnerUser) GetLogin ¶
func (v *RepositoryFragmentOwnerUser) GetLogin() string
GetLogin returns RepositoryFragmentOwnerUser.Login, and is useful for accessing the field via an interface.
func (*RepositoryFragmentOwnerUser) GetTypename ¶
func (v *RepositoryFragmentOwnerUser) GetTypename() string
GetTypename returns RepositoryFragmentOwnerUser.Typename, and is useful for accessing the field via an interface.
func (*RepositoryFragmentOwnerUser) MarshalJSON ¶
func (v *RepositoryFragmentOwnerUser) MarshalJSON() ([]byte, error)
func (*RepositoryFragmentOwnerUser) UnmarshalJSON ¶
func (v *RepositoryFragmentOwnerUser) UnmarshalJSON(b []byte) error
type RepositoryFragmentParentRepository ¶
type RepositoryFragmentParentRepository struct {
ParentRepositoryFragment `json:"-"`
}
RepositoryFragmentParentRepository includes the requested fields of the GraphQL type Repository. The GraphQL type's documentation follows.
A repository contains the content for a project.
func (*RepositoryFragmentParentRepository) GetName ¶
func (v *RepositoryFragmentParentRepository) GetName() string
GetName returns RepositoryFragmentParentRepository.Name, and is useful for accessing the field via an interface.
func (*RepositoryFragmentParentRepository) GetOwner ¶
func (v *RepositoryFragmentParentRepository) GetOwner() ParentRepositoryFragmentOwnerRepositoryOwner
GetOwner returns RepositoryFragmentParentRepository.Owner, and is useful for accessing the field via an interface.
func (*RepositoryFragmentParentRepository) MarshalJSON ¶
func (v *RepositoryFragmentParentRepository) MarshalJSON() ([]byte, error)
func (*RepositoryFragmentParentRepository) UnmarshalJSON ¶
func (v *RepositoryFragmentParentRepository) UnmarshalJSON(b []byte) error
type RepositoryFragmentPrimaryLanguage ¶
type RepositoryFragmentPrimaryLanguage struct {
LanguageFragment `json:"-"`
}
RepositoryFragmentPrimaryLanguage includes the requested fields of the GraphQL type Language. The GraphQL type's documentation follows.
Represents a given language found in repositories.
func (*RepositoryFragmentPrimaryLanguage) GetName ¶
func (v *RepositoryFragmentPrimaryLanguage) GetName() string
GetName returns RepositoryFragmentPrimaryLanguage.Name, and is useful for accessing the field via an interface.
func (*RepositoryFragmentPrimaryLanguage) MarshalJSON ¶
func (v *RepositoryFragmentPrimaryLanguage) MarshalJSON() ([]byte, error)
func (*RepositoryFragmentPrimaryLanguage) UnmarshalJSON ¶
func (v *RepositoryFragmentPrimaryLanguage) UnmarshalJSON(b []byte) error
type RepositoryOrder ¶
type RepositoryOrder struct { // The ordering direction. Direction OrderDirection `json:"direction"` // The field to order repositories by. Field RepositoryOrderField `json:"field"` }
Ordering options for repository connections
func (*RepositoryOrder) GetDirection ¶
func (v *RepositoryOrder) GetDirection() OrderDirection
GetDirection returns RepositoryOrder.Direction, and is useful for accessing the field via an interface.
func (*RepositoryOrder) GetField ¶
func (v *RepositoryOrder) GetField() RepositoryOrderField
GetField returns RepositoryOrder.Field, and is useful for accessing the field via an interface.
type RepositoryOrderField ¶
type RepositoryOrderField string
Properties by which repository connections can be ordered.
const ( // Order repositories by creation time RepositoryOrderFieldCreatedAt RepositoryOrderField = "CREATED_AT" // Order repositories by name RepositoryOrderFieldName RepositoryOrderField = "NAME" // Order repositories by push time RepositoryOrderFieldPushedAt RepositoryOrderField = "PUSHED_AT" // Order repositories by number of stargazers RepositoryOrderFieldStargazers RepositoryOrderField = "STARGAZERS" // Order repositories by update time RepositoryOrderFieldUpdatedAt RepositoryOrderField = "UPDATED_AT" )
type RepositoryPrivacy ¶
type RepositoryPrivacy string
The privacy of a repository
const ( // Private RepositoryPrivacyPrivate RepositoryPrivacy = "PRIVATE" // Public RepositoryPrivacyPublic RepositoryPrivacy = "PUBLIC" )