catimage

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotAllowedImageExtension = errors.New("not allowed image extension")
	ErrUnexpected               = errors.New("unexpected error")
)

Functions

This section is empty.

Types

type CopyCatImageToDestinationBucketRequest

type CopyCatImageToDestinationBucketRequest struct {
	TriggerBucketName     string
	DestinationBucketName string
	TargetS3ObjectKey     string
}

type IsAcceptableCatImageResponse

type IsAcceptableCatImageResponse struct {
	IsAcceptableCatImage bool     `json:"isAcceptableCatImage"`
	TypesOfCats          []string `json:"typesOfCats"`
}

type Request

type Request struct {
	TargetS3BucketName      string
	TargetS3ObjectKey       string
	TargetS3ObjectVersionId string
}

type UseCase

type UseCase struct {
	S3Client          infrastructure.S3Client
	RekognitionClient infrastructure.RekognitionClient
}

func (*UseCase) CopyCatImageToDestinationBucket

func (
	u *UseCase,
) CopyCatImageToDestinationBucket(
	ctx context.Context,
	req *CopyCatImageToDestinationBucketRequest,
) error

func (*UseCase) IsAcceptableCatImage

func (
	u *UseCase,
) IsAcceptableCatImage(
	ctx context.Context,
	req *Request,
) (*IsAcceptableCatImageResponse, error)

Jump to

Keyboard shortcuts

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