Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enumerator ¶
type Enumerator interface { io.Closer // Enumerate lists files that match path. // Example input: gs://my-bucket/path/to/files/*.jpg Enumerate(path string) ([]string, error) }
FileEnumerator lists matching files from cloud path.
type FileManager ¶
type FileManager interface { io.Closer // Enumerate lists files that match path. // Example input: gs://my-bucket/path/to/files/*.jpg Enumerate(path string) ([]string, error) // Read reads file contents and returns buffer // Example input: gs://my-bucket/path/to/files/earth.jpg Read(file string) ([]byte, error) // Write writes buffer to file path. Write(file string, buffer []byte) error }
FileManager manages file io to cloud
type Op ¶
Op is the operator for TF interface.
func NewOperator ¶
func NewOperator(options *tf.SessionOptions) (*Op, error)
NewOperator provides an instance of new operator for cloud file I/O
type ReadWriter ¶
type ReadWriter interface { io.Closer // Read reads file contents and returns buffer // Example input: gs://my-bucket/path/to/files/earth.jpg Read(file string) ([]byte, error) // Write writes buffer to file path. Write(file string, buffer []byte) error }
ReadWriter reads and write files to cloud storage paths.
Click to show internal directories.
Click to hide internal directories.