transmit

package
v0.0.0-...-9d4c33d Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSS3Transmitter

type AWSS3Transmitter struct {
	ID     string
	Secret string
	Token  string
	Region string
}

AWSS3Transmitter - Transmits objects to AWS S3

func (AWSS3Transmitter) GetName

func (t AWSS3Transmitter) GetName() string

GetName - Gets the name of the transmitter

func (AWSS3Transmitter) Transmit

func (t AWSS3Transmitter) Transmit(
	data []byte,
	filepath string,
	containerName string,
) error

Transmit - Transmits an object to an AWS S3 bucket

type AzureBlobTransmitter

type AzureBlobTransmitter struct {
	ContainerURLProvider azure.ContainerURLProvider
}

AzureBlobTransmitter - Transmits objects to Azure Blob storage

func (AzureBlobTransmitter) GetName

func (t AzureBlobTransmitter) GetName() string

GetName - Gets the name of the transmitter

func (AzureBlobTransmitter) Transmit

func (t AzureBlobTransmitter) Transmit(
	data []byte,
	filePath string,
	containerName string,
) error

Transmit - Transmits an object to an Azure Blob container

type Transmitter

type Transmitter interface {
	Transmit(
		data []byte,
		filePath string,
		containerName string,
	) error

	GetName() string
}

Transmitter - Interface for transmitters in mob-stor

Jump to

Keyboard shortcuts

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