exporter

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package exporter is an exporter of directory tree from RBE-CAS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Get(context.Context, digest.Digest, string) ([]byte, error)
}

Client is an interface to access CAS.

type Exporter

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

Exporter is an exporter.

func New

func New(client Client) *Exporter

New creates new exporter.

func (*Exporter) Export

func (e *Exporter) Export(ctx context.Context, dir string, d digest.Digest, w io.Writer) error

Export exports directory identified by the digest to the dir recursively. If w is given, it will show the directory entries without extracting into dir.

Jump to

Keyboard shortcuts

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