Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertListed(ctx context.Context, node generic.NodeInterface, nativeChildren ...any) generic.ChildrenSlice
- func ConvertNativeChild(ctx context.Context, tree generic.TreeInterface, parent generic.NodeInterface, ...) generic.NodeInterface
- func ConvertToAny[T any](s ...T) []any
- func GetComment(node generic.NodeInterface) generic.NodeInterface
- func GetCommentID(node generic.NodeInterface) int64
- func GetCommentable(node generic.NodeInterface) generic.NodeInterface
- func GetCommentableID(node generic.NodeInterface) int64
- func GetFirstFormat[T f3.Interface](node generic.NodeInterface) T
- func GetFirstNodeKind(node generic.NodeInterface, kind ...generic.Kind) generic.NodeInterface
- func GetOwner(node generic.NodeInterface) generic.NodeInterface
- func GetOwnerID(node generic.NodeInterface) int64
- func GetOwnerName(node generic.NodeInterface) string
- func GetProject(node generic.NodeInterface) generic.NodeInterface
- func GetProjectID(node generic.NodeInterface) int64
- func GetProjectName(node generic.NodeInterface) string
- func GetPullRequest(node generic.NodeInterface) generic.NodeInterface
- func GetPullRequestID(node generic.NodeInterface) int64
- func GetReactionable(node generic.NodeInterface) generic.NodeInterface
- func GetReactionableID(node generic.NodeInterface) int64
- func GetRelease(node generic.NodeInterface) generic.NodeInterface
- func GetReleaseID(node generic.NodeInterface) int64
- func GetReview(node generic.NodeInterface) generic.NodeInterface
- func GetReviewComment(node generic.NodeInterface) generic.NodeInterface
- func GetReviewCommentID(node generic.NodeInterface) int64
- func GetReviewID(node generic.NodeInterface) int64
- func GetUsernameFromID(ctx context.Context, tree TreeInterface, id int64) string
- func NewIssueLabelReference[T any](id T) *f3.Reference
- func NewIssueMilestoneReference[T any](id T) *f3.Reference
- func NewLabelPathString[T any](projectPath string, id T) string
- func NewLabelReference[T any](projectPath string, id T) *f3.Reference
- func NewMilestonePathString[T any](projectPath string, id T) string
- func NewMilestoneReference[T any](projectPath string, id T) *f3.Reference
- func NewProjectPathString[U, P any](owners string, user U, project P) string
- func NewProjectReference[U, P any](owners string, user U, project P) *f3.Reference
- func NewPullRequestLabelReference[T any](id T) *f3.Reference
- func NewPullRequestSameRepositoryReference() *f3.Reference
- func NewRepositoryPath[T, U any](owners string, owner T, project U) generic.Path
- func NewRepositoryPathString[T, U any](owners string, owner T, project U) string
- func NewRepositoryReference[T, U any](owners string, owner T, project U) *f3.Reference
- func NewTopicPathString[T any](id T) string
- func NewTopicReference[T any](id T) *f3.Reference
- func NewUserPathString[T any](id T) string
- func NewUserReference[T any](id T) *f3.Reference
- func RegisterForgeFactory(name string, factory ForgeFactory)
- func ResolveProjectReference(ctx context.Context, tree generic.TreeInterface, r *f3.Reference) (string, string)
- type ForgeDriverInterface
- type ForgeFactory
- type Path
- type PullRequestDriverInterface
- type PullRequestNodeDriverProxyInterface
- type PullRequestNodeInterface
- type RepositoryDriverInterface
- type RepositoryNodeDriverProxyInterface
- type RepositoryNodeInterface
- type TreeInterface
Constants ¶
View Source
const ( KindAsset = f3.ResourceAsset KindAssets = f3.ResourceAssets KindComment = f3.ResourceComment KindComments = f3.ResourceComments KindForge = f3.ResourceForge KindIssue = f3.ResourceIssue KindIssues = f3.ResourceIssues KindLabel = f3.ResourceLabel KindLabels = f3.ResourceLabels KindMilestone = f3.ResourceMilestone KindMilestones = f3.ResourceMilestones KindOrganization = f3.ResourceOrganization KindOrganizations = f3.ResourceOrganizations KindProject = f3.ResourceProject KindProjects = f3.ResourceProjects KindPullRequest = f3.ResourcePullRequest KindPullRequests = f3.ResourcePullRequests KindReaction = f3.ResourceReaction KindReactions = f3.ResourceReactions KindRelease = f3.ResourceRelease KindReleases = f3.ResourceReleases KindRepository = f3.ResourceRepository KindRepositories = f3.ResourceRepositories KindReview = f3.ResourceReview KindReviews = f3.ResourceReviews KindReviewComment = f3.ResourceReviewComment KindReviewComments = f3.ResourceReviewComments KindTopic = f3.ResourceTopic KindTopics = f3.ResourceTopics KindUser = f3.ResourceUser KindUsers = f3.ResourceUsers )
Variables ¶
View Source
var OrganizationsPath = generic.NewPathFromString("/forge/organizations")
View Source
var TopicsPath = generic.NewPathFromString("/forge/topics")
View Source
var UsersPath = generic.NewPathFromString("/forge/users")
Functions ¶
func ConvertListed ¶
func ConvertListed(ctx context.Context, node generic.NodeInterface, nativeChildren ...any) generic.ChildrenSlice
func ConvertNativeChild ¶
func ConvertNativeChild(ctx context.Context, tree generic.TreeInterface, parent generic.NodeInterface, kind generic.Kind, nativeChild any) generic.NodeInterface
func ConvertToAny ¶
func GetComment ¶
func GetComment(node generic.NodeInterface) generic.NodeInterface
func GetCommentID ¶
func GetCommentID(node generic.NodeInterface) int64
func GetCommentable ¶
func GetCommentable(node generic.NodeInterface) generic.NodeInterface
func GetCommentableID ¶
func GetCommentableID(node generic.NodeInterface) int64
func GetFirstFormat ¶
func GetFirstFormat[T f3.Interface](node generic.NodeInterface) T
func GetFirstNodeKind ¶
func GetFirstNodeKind(node generic.NodeInterface, kind ...generic.Kind) generic.NodeInterface
func GetOwner ¶
func GetOwner(node generic.NodeInterface) generic.NodeInterface
func GetOwnerID ¶
func GetOwnerID(node generic.NodeInterface) int64
func GetOwnerName ¶
func GetOwnerName(node generic.NodeInterface) string
func GetProject ¶
func GetProject(node generic.NodeInterface) generic.NodeInterface
func GetProjectID ¶
func GetProjectID(node generic.NodeInterface) int64
func GetProjectName ¶
func GetProjectName(node generic.NodeInterface) string
func GetPullRequest ¶
func GetPullRequest(node generic.NodeInterface) generic.NodeInterface
func GetPullRequestID ¶
func GetPullRequestID(node generic.NodeInterface) int64
func GetReactionable ¶
func GetReactionable(node generic.NodeInterface) generic.NodeInterface
func GetReactionableID ¶
func GetReactionableID(node generic.NodeInterface) int64
func GetRelease ¶
func GetRelease(node generic.NodeInterface) generic.NodeInterface
func GetReleaseID ¶
func GetReleaseID(node generic.NodeInterface) int64
func GetReview ¶
func GetReview(node generic.NodeInterface) generic.NodeInterface
func GetReviewComment ¶
func GetReviewComment(node generic.NodeInterface) generic.NodeInterface
func GetReviewCommentID ¶
func GetReviewCommentID(node generic.NodeInterface) int64
func GetReviewID ¶
func GetReviewID(node generic.NodeInterface) int64
func GetUsernameFromID ¶
func GetUsernameFromID(ctx context.Context, tree TreeInterface, id int64) string
func NewIssueLabelReference ¶
func NewLabelPathString ¶
func NewMilestonePathString ¶
func NewMilestoneReference ¶
func NewProjectPathString ¶
func NewProjectReference ¶
func NewPullRequestSameRepositoryReference ¶ added in v3.1.0
func NewRepositoryPath ¶ added in v3.1.0
func NewRepositoryPathString ¶ added in v3.1.0
func NewRepositoryReference ¶ added in v3.1.0
func NewTopicPathString ¶
func NewTopicReference ¶
func NewUserPathString ¶
func NewUserReference ¶
func RegisterForgeFactory ¶
func RegisterForgeFactory(name string, factory ForgeFactory)
func ResolveProjectReference ¶
Types ¶
type ForgeDriverInterface ¶
type ForgeFactory ¶
type ForgeFactory func(tree generic.TreeInterface, options any) generic.TreeDriverInterface
func GetForgeFactory ¶
func GetForgeFactory(name string) ForgeFactory
type Path ¶
type Path interface { NodeIDs() []generic.NodeID OwnerAndProjectID() (owner, project int64) AppendID(id string) Path Ignore() Path generic.Path Root() Path Forge() Path SetForge() Path Assets() Path SetAssets() Path Comments() Path SetComments() Path Issues() Path SetIssues() Path Labels() Path SetLabels() Path Milestones() Path SetMilestones() Path Owners() Path SetOwners(owners generic.Kind) Path Organizations() Path SetOrganizations() Path Projects() Path SetProjects() Path PullRequests() Path SetPullRequests() Path Reactions() Path SetReactions() Path Releases() Path SetReleases() Path Repositories() Path SetRepositories() Path Reviews() Path SetReviews() Path ReviewComments() Path SetReviewComments() Path Topics() Path SetTopics() Path Users() Path SetUsers() Path }
func NewPath ¶
func NewPath(nodes ...generic.NodeInterface) Path
func NewPathFromString ¶
func NewTopicPath ¶
func NewUserPath ¶
type PullRequestNodeDriverProxyInterface ¶
type PullRequestNodeDriverProxyInterface interface { PullRequestDriverInterface }
type PullRequestNodeInterface ¶
type PullRequestNodeInterface interface { generic.NodeInterface PullRequestNodeDriverProxyInterface }
type RepositoryNodeDriverProxyInterface ¶
type RepositoryNodeDriverProxyInterface interface { RepositoryDriverInterface }
type RepositoryNodeInterface ¶
type RepositoryNodeInterface interface { generic.NodeInterface RepositoryNodeDriverProxyInterface }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.