clone

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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