imageintel

package
v0.1.928 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Client

type Client interface {
	contract.ImageIntelOperator
}

func NewClient

func NewClient(d Dependencies) (Client, error)

func NewNoopClient added in v0.1.859

func NewNoopClient() Client

type DefaultTool

type DefaultTool struct {
	T *contract.Tool[Client]
}

func NewTool

func NewTool(c Client, opts contract.ToolOptions[Client]) *DefaultTool

func (*DefaultTool) Close

func (d *DefaultTool) Close(ctx context.Context) error

Close shuts down the underlying client.

func (*DefaultTool) IsForbidden

func (d *DefaultTool) IsForbidden(ctx context.Context, r io.Reader) (bool, error)

IsForbidden checks if the image contains explicit content.

func (*DefaultTool) ScanMany

func (d *DefaultTool) ScanMany(ctx context.Context, files []*contract.BucketFile) ([]*contract.BucketScan, error)

ScanMany processes multiple images files concurrently to detect explicit content.

type Loaded

type Loaded struct {
	CredentialsJSON []byte
}

type Tool

type Tool interface {
	Client
}

type VisionClientOptions added in v0.1.479

type VisionClientOptions struct {
	Loaded
}

Jump to

Keyboard shortcuts

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