uri

package
v0.0.0-...-d1bd1f9 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOutputStreamFromURI

func GetOutputStreamFromURI(c *cli.Context, uri string) (io.WriteCloser, error)

func ReadDataFromURI

func ReadDataFromURI(c *cli.Context, uri string, fnStream ReadStream) ([]byte, error)

func ReadFromPasswordURI

func ReadFromPasswordURI(c *cli.Context, uri string) (string, error)

func ReadMapFromURI

func ReadMapFromURI(c *cli.Context, uri string, fnStream ReadStream, ret map[string]interface{}) error

func WriteDataToPlaintextStream

func WriteDataToPlaintextStream(stream io.WriteCloser, data []byte) error

func WriteDataToURI

func WriteDataToURI(c *cli.Context, uri string, data []byte, fn WriteDataToStream) error

func WriteMapToStream

func WriteMapToStream(stream io.WriteCloser, ret map[string]interface{}, fn WriteDataToStream) error

func WriteMapToURI

func WriteMapToURI(c *cli.Context, uri string, ret map[string]interface{}, fn WriteDataToStream) error

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

Jump to

Keyboard shortcuts

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