s3

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package s3 provides an S3-compatible object-store connector for Braidplane.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config = s3client.Config

Config holds S3 connector configuration used by the Braidplane adapter.

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

Connector adapts S3 provider object operations to Braidplane file connector contracts.

func New

func New(ctx context.Context, config Config, creds Credentials) (*Connector, error)

New creates an S3 connector backed by the provider client.

func (*Connector) Close

func (c *Connector) Close() error

Close releases provider client resources.

func (*Connector) Execute

func (c *Connector) Execute(
	ctx context.Context,
	queryData json.RawMessage,
	params map[string]types.TypedParam,
	limits ...types.ExecutionLimits,
) (*result.ExecutionResult, error)

Execute runs an S3 object read or write operation and returns a file result envelope.

func (*Connector) ExecuteScoped

func (c *Connector) ExecuteScoped(ctx context.Context, queryData json.RawMessage, params map[string]types.TypedParam, scope resourcescope.Scope, limits ...types.ExecutionLimits) (*result.ExecutionResult, error)

func (*Connector) IntrospectSchema

func (c *Connector) IntrospectSchema(ctx context.Context) (*filedata.Schema, error)

IntrospectSchema maps S3 objects under the configured prefix into file schema metadata.

func (*Connector) TestConnection

func (c *Connector) TestConnection(ctx context.Context) error

TestConnection verifies that the configured S3 bucket is reachable.

type Credentials

type Credentials = s3client.Credentials

Credentials holds write-only S3 access key credentials.

type ObjectMetadataObserver

type ObjectMetadataObserver struct {
	Endpoint string `json:"endpoint"`
	Region   string `json:"region"`
	Bucket   string `json:"bucket"`
	Key      string `json:"key"`
}

ObjectMetadataObserver reads only the exact object's existence, never its body.

func (ObjectMetadataObserver) AssessMetadata

func (ObjectMetadataObserver) Description

func (o ObjectMetadataObserver) Description() string

func (ObjectMetadataObserver) MatchesResource

func (o ObjectMetadataObserver) MatchesResource(config, operation json.RawMessage, source bool) bool

func (ObjectMetadataObserver) Plan

func (ObjectMetadataObserver) ReadMetadata

type ObjectMetadataSnapshot

type ObjectMetadataSnapshot struct {
	Bucket string `json:"bucket"`
	Key    string `json:"key"`
	Exists bool   `json:"exists"`
}

type SchemaIntrospector

type SchemaIntrospector interface {
	IntrospectSchema(ctx context.Context) (*filedata.Schema, error)
}

SchemaIntrospector retrieves S3 object schema metadata.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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