common

package
v18.11.7 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListPoolMetadata

func ListPoolMetadata(ctx context.Context, client gitalypb.InternalGitalyClient, storageName string) ([]string, error)

ListPoolMetadata calls the ListPoolMetadata RPC to list all pools from the metadata database.

func StorePoolMetadata

func StorePoolMetadata(ctx context.Context, client gitalypb.InternalGitalyClient, storageName string, members []PoolMember) error

StorePoolMetadata calls the StorePoolMetadata RPC to store repository-to-pool relationships.

Types

type PoolMember

type PoolMember struct {
	MemberDiskPath string
	PoolDiskPath   string
	IsUpstream     bool
}

PoolMember represents a repository linked to an object pool.

func ScanPoolMetadata

func ScanPoolMetadata(ctx context.Context, client gitalypb.InternalGitalyClient, storageName string) ([]PoolMember, error)

ScanPoolMetadata calls the ScanPoolMetadata RPC and returns all repository-to-pool relationships.

Jump to

Keyboard shortcuts

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