Documentation ¶
Index ¶
- Variables
- func SaveTarToReceiver(reader io.Reader, tarReceiver TarReceiver) error
- func UploadProvider(tarProvider TarProvider, handler UploadHandler) error
- func WriteToTar(tarWriter *tar.Writer, file *TarFile) error
- type TarFile
- type TarProvider
- type TarProviderFactory
- type TarReceiver
- type TarReceiverFactory
- type UploadHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var Factories = struct {
TarReceiver *tarReceiverFactory
TarProvider *tarProviderFactory
}{
TarReceiver: &tarReceiverFactory{},
TarProvider: &tarProviderFactory{},
}
Functions ¶
func SaveTarToReceiver ¶
func SaveTarToReceiver(reader io.Reader, tarReceiver TarReceiver) error
func UploadProvider ¶
func UploadProvider(tarProvider TarProvider, handler UploadHandler) error
Types ¶
type TarFile ¶
type TarFile struct { FileName string ContentReadCloser io.ReadCloser IsOnlyFile bool Info os.FileInfo }
func NewTarFile ¶
func (*TarFile) HasContent ¶
type TarProvider ¶
type TarProvider interface {
Files() <-chan *TarFile
}
type TarProviderFactory ¶
type TarProviderFactory interface { Dir(fullDirPath, filePattern string) TarProvider File(fullFilePath string) TarProvider }
func NewTarProviderFactory ¶
func NewTarProviderFactory() TarProviderFactory
type TarReceiver ¶
type TarReceiverFactory ¶
type TarReceiverFactory interface { Dir(dir string) TarReceiver File(file string) TarReceiver Writer(writer io.Writer) TarReceiver }
func NewTarReceiverFactory ¶
func NewTarReceiverFactory() TarReceiverFactory
Source Files ¶
Click to show internal directories.
Click to hide internal directories.