backend

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Connect(ctx context.Context) error
	Disconnect(ctx context.Context) error

	BucketExists(ctx context.Context, name string) (bool, error)
	ObjectExists(ctx context.Context, name string) (bool, error)

	Name() string
	Bucket() string
	BackendName() string

	UploadFile(ctx context.Context, name string, file io.Reader, filesize int64) error
}

Client is the interface that is required by eldim backend clients

type Config

type Config interface {
	Validate() error
	Name() string
}

Config is the interface that is required by eldim backend configuration nodes

Jump to

Keyboard shortcuts

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