grpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSnapshotter

func NewSnapshotter(ctx context.Context, root string, remote *StarlightProxy, fsTrace bool) (snapshots.Snapshotter, error)

NewSnapshotter returns a Snapshotter which copies layers on the underlying file system. A metadata file is stored under the root.

func NewSnapshotterGrpcService

func NewSnapshotterGrpcService(ctx context.Context, socketAddress, remoteProtocol, remoteAddress, workDir string, fsTrace bool)

Types

type StarlightProxy

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

func NewStarlightProxy

func NewStarlightProxy(ctx context.Context, protocol, server string) *StarlightProxy

func (*StarlightProxy) Fetch

func (a *StarlightProxy) Fetch(have []string, want []string) (io.ReadCloser, int64, error)

func (*StarlightProxy) FetchWithString

func (a *StarlightProxy) FetchWithString(fromString string, toString string) (io.ReadCloser, int64, error)

func (*StarlightProxy) Prepare

func (a *StarlightProxy) Prepare(imageName, imageTag string) error

func (*StarlightProxy) Report

func (a *StarlightProxy) Report(buf []byte) error

Jump to

Keyboard shortcuts

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