Documentation ¶
Index ¶
- func GetOutputStreamFromURI(c *cli.Context, uri string) (io.WriteCloser, error)
- func ReadDataFromURI(c *cli.Context, uri string, fnStream ReadStream) ([]byte, error)
- func ReadFromPasswordURI(c *cli.Context, uri string) (string, error)
- func ReadMapFromURI(c *cli.Context, uri string, fnStream ReadStream, ret map[string]interface{}) error
- func WriteDataToPlaintextStream(stream io.WriteCloser, data []byte) error
- func WriteDataToURI(c *cli.Context, uri string, data []byte, fn WriteDataToStream) error
- func WriteMapToStream(stream io.WriteCloser, ret map[string]interface{}, fn WriteDataToStream) error
- func WriteMapToURI(c *cli.Context, uri string, ret map[string]interface{}, fn WriteDataToStream) error
- type ReadStream
- type WriteDataToStream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOutputStreamFromURI ¶
func ReadDataFromURI ¶
func ReadMapFromURI ¶
func WriteDataToPlaintextStream ¶
func WriteDataToPlaintextStream(stream io.WriteCloser, data []byte) error
func WriteDataToURI ¶
func WriteMapToStream ¶
func WriteMapToStream(stream io.WriteCloser, ret map[string]interface{}, fn WriteDataToStream) error
func WriteMapToURI ¶
Types ¶
type ReadStream ¶
type ReadStream func(io.ReadCloser) ([]byte, error)
func ReadDataFromEncryptedStream ¶
func ReadDataFromEncryptedStream(password string) ReadStream
func ReadDataFromPlaintextStream ¶
func ReadDataFromPlaintextStream() ReadStream
type WriteDataToStream ¶
type WriteDataToStream func(io.WriteCloser, []byte) error
func WriteDataToEncryptedStream ¶
func WriteDataToEncryptedStream(password string) WriteDataToStream
Click to show internal directories.
Click to hide internal directories.