contract

package
v3.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PutOptions

type PutOptions struct {
	ContentType string
}

type Storage

type Storage interface {
	Put(runtimeInstance runtimecontract.Runtime, key string, reader io.Reader, size int64, options PutOptions) error

	Get(runtimeInstance runtimecontract.Runtime, key string) (io.ReadCloser, error)

	Delete(runtimeInstance runtimecontract.Runtime, key string) error

	Exists(runtimeInstance runtimecontract.Runtime, key string) (bool, error)

	PresignedUrl(runtimeInstance runtimecontract.Runtime, key string, expiry time.Duration) (string, error)
}

Jump to

Keyboard shortcuts

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