client

package
v0.1.23-oss Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ABFSClient

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

ABFSClient serves the purpose of converting from gRPC conventions to golang conventions

func NewABFSClient

func NewABFSClient(o *ABFSClientOpts) (*ABFSClient, error)

func (*ABFSClient) AddMapResult

func (c *ABFSClient) AddMapResult(ctx context.Context, from, to Hash) error

func (*ABFSClient) Close

func (c *ABFSClient) Close() error

func (*ABFSClient) GetObject

func (c *ABFSClient) GetObject(ctx context.Context, key remote.Hash) (remote.ContentReadCloser, error)

GetObject implements remote.RemoteProvider.

func (*ABFSClient) GetRefs

func (c *ABFSClient) GetRefs(ctx context.Context, server string, project string, refs []string) ([]entities.Hash, error)

GetRefs implements remote.RemoteProvider.

func (*ABFSClient) Headers

func (c *ABFSClient) Headers(ctx context.Context, keys []remote.Hash) ([]entities.ObjectHeader, error)

Headers implements remote.RemoteProvider.

func (*ABFSClient) HealthCheck

func (c *ABFSClient) HealthCheck(ctx context.Context, service string) error

func (*ABFSClient) MapResults

func (c *ABFSClient) MapResults(ctx context.Context, id Hash) ([]Hash, error)

func (*ABFSClient) Mark

func (c *ABFSClient) Mark(ctx context.Context, hash Hash, key, value string) (int64, error)

func (*ABFSClient) PutObject

func (c *ABFSClient) PutObject(ctx context.Context, key remote.Hash, reader remote.ContentReadCloser) error

PutObject implements remote.RemoteProvider.

func (*ABFSClient) PutRefs

func (c *ABFSClient) PutRefs(ctx context.Context, server string, project string, refs []entities.RefHash) error

PutRefs implements remote.RemoteProvider.

func (*ABFSClient) SHA256

func (c *ABFSClient) SHA256(ctx context.Context, keys []remote.Hash) ([]entities.SHA256, error)

SHA256 implements remote.RemoteProvider.

func (*ABFSClient) SearchRefs

func (c *ABFSClient) SearchRefs(ctx context.Context, server string, project string, refPrefix string, limit int) ([]entities.ProjectRefHash, error)

SearchRefs implements remote.RemoteProvider.

func (*ABFSClient) Stat

func (c *ABFSClient) Stat() protocol.ClientStat

func (*ABFSClient) Version

func (c *ABFSClient) Version(ctx context.Context) (string, error)

Version implements remote.RemoteProvider.

func (*ABFSClient) WhoAmI

func (c *ABFSClient) WhoAmI(ctx context.Context) (string, error)

WhoAmI implements remote.RemoteProvider.

type ABFSClientOpts

type ABFSClientOpts struct {
	Servers         []string
	AuthInfo        instance.AuthInfo
	SkipHealthCheck bool
}

type Hash

type Hash = entities.Hash

Jump to

Keyboard shortcuts

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