Documentation
¶
Overview ¶
Package s3 provides an S3-compatible object-store connector for Braidplane.
Index ¶
- type Config
- type Connector
- func (c *Connector) Close() error
- func (c *Connector) Execute(ctx context.Context, queryData json.RawMessage, ...) (*result.ExecutionResult, error)
- func (c *Connector) ExecuteScoped(ctx context.Context, queryData json.RawMessage, ...) (*result.ExecutionResult, error)
- func (c *Connector) IntrospectSchema(ctx context.Context) (*filedata.Schema, error)
- func (c *Connector) TestConnection(ctx context.Context) error
- type Credentials
- type ObjectMetadataObserver
- func (o ObjectMetadataObserver) AssessMetadata(raw json.RawMessage) (model.ProofVerdict, []model.ProofDiagnostic, error)
- func (o ObjectMetadataObserver) Description() string
- func (o ObjectMetadataObserver) MatchesResource(config, operation json.RawMessage, source bool) bool
- func (o ObjectMetadataObserver) Plan() (proofevidence.MetadataPlan, error)
- func (o ObjectMetadataObserver) ReadMetadata(ctx context.Context, transport proofevidence.MetadataIO, credential []byte, ...) (json.RawMessage, int64, proofevidence.Outcome)
- type ObjectMetadataSnapshot
- type SchemaIntrospector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector adapts S3 provider object operations to Braidplane file connector contracts.
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 ¶
IntrospectSchema maps S3 objects under the configured prefix into file schema metadata.
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 (o ObjectMetadataObserver) AssessMetadata(raw json.RawMessage) (model.ProofVerdict, []model.ProofDiagnostic, error)
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 (o ObjectMetadataObserver) Plan() (proofevidence.MetadataPlan, error)
func (ObjectMetadataObserver) ReadMetadata ¶
func (o ObjectMetadataObserver) ReadMetadata(ctx context.Context, transport proofevidence.MetadataIO, credential []byte, limits proofevidence.Limits) (json.RawMessage, int64, proofevidence.Outcome)