snapshot

package
v0.1.18-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEphemeralGitLabTokenUnavailable = gitlabtoken.ErrMissingToken
View Source
var ErrMaterializeTimeout = errors.New("snapshot materialization timed out")

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	RepoURL         string
	BaseRef         string
	SourceCommitSHA string
	GitLabTokenHash string
}

type Options

type Options struct {
	CacheDir    string
	Auth        gitauth.Options
	TokenLookup *gitlabtokens.Registry
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(opts Options) *Service

func (*Service) WriteTarGz

func (s *Service) WriteTarGz(ctx context.Context, meta Metadata, w io.Writer) error

Jump to

Keyboard shortcuts

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