org

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Acquire

func Acquire(ctx context.Context, org string, lister RepoLister, acquirer RepoAcquirer) (repos []source.RepoManifest, failures []source.RepoFailure, err error)

Acquire gathers repo manifests for an org and continues on per-repo acquisition failures.

func AcquireMaterialized added in v1.0.11

func AcquireMaterialized(
	ctx context.Context,
	org string,
	lister RepoLister,
	materializer RepoMaterializer,
	opts AcquireMaterializedOptions,
) (repos []source.RepoManifest, failures []source.RepoFailure, err error)

func IsCheckpointInputError added in v1.0.11

func IsCheckpointInputError(err error) bool

func IsCheckpointMissingError added in v1.1.1

func IsCheckpointMissingError(err error) bool

func IsCheckpointSafetyError added in v1.0.11

func IsCheckpointSafetyError(err error) bool

func SaveTargetSet added in v1.1.1

func SaveTargetSet(statePath string, targets []string, materializedRoot string) error

func ValidateTargetSet added in v1.1.1

func ValidateTargetSet(statePath string, targets []string, materializedRoot string) error

Types

type AcquireMaterializedOptions added in v1.0.11

type AcquireMaterializedOptions struct {
	StatePath        string
	MaterializedRoot string
	Resume           bool
	WorkerCount      int
	Progress         ProgressReporter
}

type ProgressReporter added in v1.0.11

type ProgressReporter interface {
	RepoDiscovery(org string, total int)
	RepoMaterialize(org string, index, total int, repo string)
	Resume(org string, total, completed, pending int)
	Complete(org string, total, completed, failed int)
}

type RepoAcquirer

type RepoAcquirer interface {
	AcquireRepo(ctx context.Context, repo string) (source.RepoManifest, error)
}

type RepoLister

type RepoLister interface {
	ListOrgRepos(ctx context.Context, org string) ([]string, error)
}

type RepoMaterializer added in v1.0.11

type RepoMaterializer interface {
	MaterializeRepo(ctx context.Context, repo string, materializedRoot string) (source.RepoManifest, error)
}

Jump to

Keyboard shortcuts

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