Documentation ¶
Index ¶
- Variables
- func CacheDir(d string) string
- func CacheFile(f string) string
- func Decompress(source interface{}) io.ReadCloser
- func Download(url string, writer io.Writer) error
- func FileSize(rd io.Reader) int64
- func Reader(rd io.Reader, close ...func() error) reader
- func ResetFile(rd io.Reader) error
- func Upload(url string, reader io.Reader) error
- func Writer(wr io.Writer, close ...func(bool) error) writer
- type AsyncUpload
- type Cache
- type CloserChain
- type Fallible
- type GsUrl
- type HttpUrl
- type Input
- type InputOutput
- type IoUrl
- type LuckyInput
- type LuckyInputOutput
- func (iox LuckyInputOutput) LuckyCreate() LuckyWhole
- func (iox LuckyInputOutput) LuckyOpen() LuckyReader
- func (iox LuckyInputOutput) LuckyReadAll() []byte
- func (iox LuckyInputOutput) LuckyWriteAll(bs []byte)
- func (iox LuckyInputOutput) ReadAll() ([]byte, error)
- func (iox LuckyInputOutput) WriteAll(bs []byte) error
- type LuckyOutput
- type LuckyReader
- type LuckyWhole
- type Metadata
- type Output
- type Resettable
- type S3Url
- type Sizeable
- type TemporaryFile
- type VersionType
- type Whole
Constants ¶
This section is empty.
Variables ¶
View Source
var FullCacheDir string
Functions ¶
func Decompress ¶
func Decompress(source interface{}) io.ReadCloser
Types ¶
type Cache ¶
type Cache string
func (Cache) File ¶
func (c Cache) File() InputOutput
func (Cache) LuckyOpen ¶
func (c Cache) LuckyOpen() LuckyReader
func (Cache) Open ¶
func (c Cache) Open() (io.ReadCloser, error)
type CloserChain ¶
func (CloserChain) Close ¶
func (c CloserChain) Close() error
type Fallible ¶
type Fallible interface {
Fail()
}
type Input ¶
type Input interface {
Open() (io.ReadCloser, error)
}
type IoUrl ¶
type IoUrl struct { Url string Schema string Cache Cache Observer AsyncUpload Metadata Metadata }
func (IoUrl) Open ¶
func (iourl IoUrl) Open() (rd io.ReadCloser, err error)
type LuckyInput ¶
type LuckyInput struct{ Input }
func Compressed ¶
func Compressed(arch interface{}) LuckyInput
func StringIO ¶
func StringIO(str string) LuckyInput
func ZipFile ¶
func ZipFile(fileName string, arch Input) LuckyInput
func (LuckyInput) LuckyOpen ¶
func (iox LuckyInput) LuckyOpen() LuckyReader
func (LuckyInput) LuckyReadAll ¶
func (iox LuckyInput) LuckyReadAll() []byte
func (LuckyInput) ReadAll ¶
func (iox LuckyInput) ReadAll() ([]byte, error)
type LuckyInputOutput ¶
type LuckyInputOutput struct{ InputOutput }
func File ¶
func File(path string) LuckyInputOutput
func Url ¶
func Url(url string, opts ...interface{}) LuckyInputOutput
func (LuckyInputOutput) LuckyCreate ¶
func (iox LuckyInputOutput) LuckyCreate() LuckyWhole
func (LuckyInputOutput) LuckyOpen ¶
func (iox LuckyInputOutput) LuckyOpen() LuckyReader
func (LuckyInputOutput) LuckyReadAll ¶
func (iox LuckyInputOutput) LuckyReadAll() []byte
func (LuckyInputOutput) LuckyWriteAll ¶
func (iox LuckyInputOutput) LuckyWriteAll(bs []byte)
func (LuckyInputOutput) ReadAll ¶
func (iox LuckyInputOutput) ReadAll() ([]byte, error)
func (LuckyInputOutput) WriteAll ¶
func (iox LuckyInputOutput) WriteAll(bs []byte) error
type LuckyOutput ¶
type LuckyOutput struct{ Output }
func Gzip ¶
func Gzip(output Output) LuckyOutput
func Lzma2 ¶
func Lzma2(output Output) LuckyOutput
func Zip ¶
func Zip(fileName string, arch Output) LuckyOutput
func (LuckyOutput) LuckyCreate ¶
func (iox LuckyOutput) LuckyCreate() LuckyWhole
func (LuckyOutput) LuckyWriteAll ¶
func (iox LuckyOutput) LuckyWriteAll(bs []byte)
func (LuckyOutput) WriteAll ¶
func (iox LuckyOutput) WriteAll(bs []byte) error
type LuckyReader ¶
type LuckyReader struct{ io.ReadCloser }
func (LuckyReader) LuckyReadAll ¶
func (lr LuckyReader) LuckyReadAll() []byte
type LuckyWhole ¶
type LuckyWhole struct{ Whole }
func (LuckyWhole) LuckyCommit ¶
func (lr LuckyWhole) LuckyCommit()
func (LuckyWhole) LuckyWrite ¶
func (lw LuckyWhole) LuckyWrite(b []byte)
type TemporaryFile ¶
func Tempfile ¶
func Tempfile(pattern string) (_ TemporaryFile, err error)
type VersionType ¶
type VersionType int
const Version VersionType = 10000
func (VersionType) Major ¶
func (v VersionType) Major() int
func (VersionType) Minor ¶
func (v VersionType) Minor() int
func (VersionType) Patch ¶
func (v VersionType) Patch() int
func (VersionType) String ¶
func (v VersionType) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.