Documentation ¶
Overview ¶
package clone provides method move an image and it's corresponding feature to a place where it can be processed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneImage ¶
func CloneImage(ctx context.Context, opts *CloneImageOptions) (string, error)
CloneImage will copy a file from a source bucket to a target bucket, defined in 'opts'.
Types ¶
type CloneImageOptions ¶
type CloneImageOptions struct { // A blob.Bucket instance where images are read from. Source *blob.Bucket // A blob.Bucket instance where images are written to. Target *blob.Bucket // WOF (or sfomuseum-data-media-* ) ID ID int64 // Source FileMaker image ID ImageID int64 // Source FileMaker image filename Filename string // Boolean flag to signal that an image should be cloned even if it already exists in the target location. Force bool // The (GeoJSON) Feature record associated with this image. Feature io.ReadCloser }
CloneImageOptions is a struct containing application-specific options and details related to cloning an image.
Click to show internal directories.
Click to hide internal directories.