types

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 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 GitClient

type GitClient interface {
	FetchLocalRepositoryPath(ctx context.Context, source RepositorySource) (string, error)
}

type GitForge

type GitForge interface {
	FetchRootGroupContent(ctx context.Context) (map[string]RepositoryGroupSource, error)
	FetchGroupContent(ctx context.Context, source RepositoryGroupSource) (RepositoryGroupContent, error)
}

type GitForgeCacher

type GitForgeCacher interface {
	GitForge
	InvalidateCache(source RepositoryGroupSource)
}

type RepositoryGroupContent

type RepositoryGroupContent struct {
	// a map of the subgroups contained in this group, keyed by group name
	// must not be nil
	Groups map[string]RepositoryGroupSource
	// a map of the repositories contained in this group, keyed by repository name
	// must not be nil
	Repositories map[string]RepositorySource
}

type RepositoryGroupSource

type RepositoryGroupSource interface {
	GetGroupID() uint64
	GetGroupName() string
	GetGroupPath() string
	GetLastModified() time.Time
}

type RepositorySource

type RepositorySource interface {
	GetRepositoryID() uint64
	GetRepositoryName() string
	GetRepositoryPath() string
	GetLastModified() time.Time
	GetCloneURL() string
	GetDefaultBranch() string
}

Jump to

Keyboard shortcuts

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