storage

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Copyright The Mantle Authors. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	// Upload the []byte data to the implemented storage under the given name.
	// The contentType is used by the underlying implementation to store and distribute the data
	// in the right format.
	Upload(name, contentType string, data []byte) (string, string, error)

	// Delete the data associated to the name.
	Delete(ctx context.Context, name string) error

	// Close terminates eventual opened connections.
	Close() error
}

Storage defines a medium used to store the data temporary created for a test.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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