s3

package
v0.0.0-...-4122661 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

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

func New

func New(client *minio.Client, bucket, prefix string) *Source

func (*Source) Get

func (s *Source) Get(ctx context.Context, key string, offset uint64, size uint64) (io.ReadCloser, error)

func (*Source) SyncFile

func (s *Source) SyncFile(ctx context.Context, opts SyncFileOptions) (ipld.Node, error)

type SyncFileOptions

type SyncFileOptions struct {
	// required
	Blockstore *rs.Remotestore
	Key        string
	Path       string

	// default is `default`
	Chunker string

	// default is `helpers.DefaultLinksPerBlock`
	Maxlinks int

	// default is "balanced"
	Layout string
}

Jump to

Keyboard shortcuts

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