f3

package
v3.11.18 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const PullRequestRefPrefix = "refs/f3"

Variables

View Source
var (
	OrganizationsPathString = "/forge/" + f3.ResourceOrganizations
	OrganizationsPath       = generic.NewNodePathFromString(OrganizationsPathString)
)
View Source
var (
	TopicsPathString = "/forge/" + f3.ResourceTopics
	TopicsPath       = generic.NewNodePathFromString(TopicsPathString)
)
View Source
var (
	UsersPathString = "/forge/" + f3.ResourceUsers
	UsersPath       = generic.NewNodePathFromString(UsersPathString)
)

Functions

func ConvertListed

func ConvertListed(ctx context.Context, node generic.NodeInterface, nativeChildren ...any) generic.ChildrenList

func ConvertNativeChild

func ConvertNativeChild(ctx context.Context, tree generic.TreeInterface, parent generic.NodeInterface, kind kind.Kind, nativeChild any) generic.NodeInterface

func ConvertToAny

func ConvertToAny[T any](s ...T) []any

func GetAttachable added in v3.11.0

func GetAttachable(node generic.NodeInterface) generic.NodeInterface

func GetAttachableID added in v3.11.0

func GetAttachableID(node generic.NodeInterface) int64

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 ...kind.Kind) generic.NodeInterface

func GetOwnerID

func GetOwnerID(node generic.NodeInterface) int64

func GetOwnerName

func GetOwnerName(node generic.NodeInterface) string

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 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 string) string

func NewAttachmentPathString added in v3.11.10

func NewAttachmentPathString(attachablePath, id string) string

func NewCommentPathString added in v3.11.10

func NewCommentPathString(commentablePath, id string) string

func NewForkReference added in v3.11.16

func NewForkReference(owners, user, project string) f3.Reference

func NewIssueLabelReference

func NewIssueLabelReference(id string) f3.Reference

func NewIssueMilestoneReference

func NewIssueMilestoneReference(id string) f3.Reference

func NewIssuePathString added in v3.11.10

func NewIssuePathString(projectPath, id string) string

func NewLabelPathString

func NewLabelPathString(projectPath, id string) string

func NewLabelReference

func NewLabelReference(projectPath, id string) f3.Reference

func NewMilestonePathString

func NewMilestonePathString(projectPath, id string) string

func NewMilestoneReference

func NewMilestoneReference(projectPath, id string) f3.Reference

func NewOrganizationPath added in v3.11.10

func NewOrganizationPath(id string) generic.Path

func NewOrganizationPathString added in v3.11.10

func NewOrganizationPathString(id string) string

func NewOrganizationReference added in v3.11.10

func NewOrganizationReference(id string) f3.Reference

func NewOwnerReference added in v3.11.16

func NewOwnerReference(node generic.NodeInterface) f3.Reference

func NewProjectPathString

func NewProjectPathString(owners, user, project string) string

func NewProjectReference

func NewProjectReference(owners, user, project string) f3.Reference

func NewPullRequestLabelReference

func NewPullRequestLabelReference(id string) f3.Reference

func NewPullRequestPathString added in v3.11.10

func NewPullRequestPathString(projectPath, id string) string

func NewPullRequestSameRepositoryReference added in v3.1.0

func NewPullRequestSameRepositoryReference() f3.Reference

func NewReactionPathString added in v3.11.10

func NewReactionPathString(reactionablePath, id string) string

func NewReleasePathString added in v3.11.10

func NewReleasePathString(projectPath, id string) string

func NewRepositoryPath added in v3.1.0

func NewRepositoryPath(owners, owner, project, id string) generic.Path

func NewRepositoryPathString added in v3.1.0

func NewRepositoryPathString(owners, owner, project, id string) string

func NewRepositoryReference added in v3.1.0

func NewRepositoryReference(owners, owner, project, id string) f3.Reference

func NewReviewCommentPathString added in v3.11.10

func NewReviewCommentPathString(reviewPath, id string) string

func NewReviewPathString added in v3.11.10

func NewReviewPathString(pullRequestPath, id string) string

func NewTopicPath

func NewTopicPath(id string) generic.Path

func NewTopicPathString

func NewTopicPathString(id string) string

func NewTopicReference

func NewTopicReference(id string) f3.Reference

func NewUserPath

func NewUserPath(id string) generic.Path

func NewUserPathString

func NewUserPathString(id string) string

func NewUserReference

func NewUserReference(id string) f3.Reference

func PullRequestIDToF3Ref added in v3.11.18

func PullRequestIDToF3Ref(id string) string

func RegisterForgeFactory

func RegisterForgeFactory(name string, factory ForgeFactory)

func ResolveProjectReference

func ResolveProjectReference(ctx context.Context, tree generic.TreeInterface, r f3.Reference) (string, string)

Types

type ForgeDriverInterface

type ForgeDriverInterface interface {
	SetNative(native any)
	GetNativeID() string
	GetHelper() any
}

type ForgeFactory

type ForgeFactory func(tree generic.TreeInterface, options any) generic.TreeDriverInterface

func GetForgeFactory

func GetForgeFactory(name string) ForgeFactory

type PullRequestDriverInterface

type PullRequestDriverInterface interface {
	GetPullRequestHead(ctx context.Context) string
	GetPullRequestRef() string
}

type PullRequestNodeDriverProxyInterface

type PullRequestNodeDriverProxyInterface interface {
	PullRequestDriverInterface
}

type PullRequestNodeInterface

type PullRequestNodeInterface interface {
	generic.NodeInterface
	PullRequestNodeDriverProxyInterface
}

type RepositoryDriverInterface

type RepositoryDriverInterface interface {
	GetRepositoryURL() string
	GetRepositoryInternalRef() string

	GetPullRequestBranch(*f3.PullRequestBranch) *f3.PullRequestBranch
	CreatePullRequestBranch(*f3.PullRequestBranch)
	DeletePullRequestBranch(*f3.PullRequestBranch)
}

type RepositoryNodeDriverProxyInterface

type RepositoryNodeDriverProxyInterface interface {
	RepositoryDriverInterface
}

type RepositoryNodeInterface

type RepositoryNodeInterface interface {
	generic.NodeInterface
	RepositoryNodeDriverProxyInterface
}

type TreeInterface

type TreeInterface interface {
	generic.TreeInterface

	IsContainer(kind.Kind) bool
	NewFormat(kind kind.Kind) f3.Interface
	GetObjectsHelper() objects_helper.Interface
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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