products

package
v0.0.0-...-3bd4a2f Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProductToSet

func AddProductToSet(client *vision.ProductSearchClient, ctx context.Context, projectID string, location string, productID string, productSetID string) error

func Create

func Create(client *vision.ProductSearchClient, ctx context.Context, projectID string, location string, productID string, productDisplayName string, productCategory string, shopurl string) (string, error)

func CreateReferenceImage

func CreateReferenceImage(client *vision.ProductSearchClient, ctx context.Context, projectID string, location string, productID string, referenceImageID string, gcsURI string) (string, string, error)

func CreateSet

func CreateSet(client *vision.ProductSearchClient, ctx context.Context, projectID string, location string, productSetID string, productSetDisplayName string) (string, error)

func Delete

func Delete(client *vision.ProductSearchClient, ctx context.Context, productID string) error

func ListProducts

func ListProducts(client *vision.ProductSearchClient, ctx context.Context, projectID string, location string) ([]string, error)

func ListSets

func ListSets(client *vision.ProductSearchClient, ctx context.Context, projectID string, location string, productSetID string, productSetDisplayName string) (string, error)

func SearchSet

func SearchSet(client *vision.ImageAnnotatorClient, ctx context.Context, imager io.Reader, projectID string, location string, productSetID string, productCategory string, filter string) ([]*altethical.Product, error)

func UploadImage

func UploadImage(ctx context.Context, client *storage.Client, bucket string, object string, r io.Reader) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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