storage

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// S3: Bucket is the name of the bucket to upload to
	Bucket string
	// S3: Key is the name of the file to upload
	Key string

	// Glacier: AccountID is the AWS account ID of the account that owns the vault
	AccountID string
	// Glacier: ArchiveDescription is a description of the archive
	ArchiveDescription string
	// Glacier: VaultName is the name of the vault
	VaultName string
}

type StorageAction

type StorageAction interface {
	Upload(ctx context.Context, r io.Reader, length int, opts Options) error
	UploadFile(ctx context.Context, fp string, opts Options) error
	DeletePatientFiles(ctx context.Context, pk_key string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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