Help us shape the future of Go! Take the 2026 Go Developer Survey

s3tables

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namespace

type Namespace struct {
	TableBucketARN string
	Namespace      []string // namespace path segments
	CreatedAt      time.Time
	OwnerAccountID string
}

Namespace represents a namespace within a table bucket.

type S3TablesService

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

S3TablesService is the cloudmock implementation of the Amazon S3 Tables API.

func New

func New(accountID, region string) *S3TablesService

New returns a new S3TablesService for the given AWS account ID and region.

func (*S3TablesService) Actions

func (s *S3TablesService) Actions() []service.Action

Actions returns the list of S3 Tables API actions supported by this service.

func (*S3TablesService) HandleRequest

func (s *S3TablesService) HandleRequest(ctx *service.RequestContext) (*service.Response, error)

HandleRequest routes an incoming S3 Tables request to the appropriate handler. S3 Tables uses REST-JSON protocol with path-based routing.

func (*S3TablesService) HealthCheck

func (s *S3TablesService) HealthCheck() error

HealthCheck always returns nil.

func (*S3TablesService) Name

func (s *S3TablesService) Name() string

Name returns the AWS service name used for routing.

type Store

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

Store manages S3 Tables resources in memory.

func NewStore

func NewStore(accountID, region string) *Store

NewStore returns a new empty S3 Tables Store.

func (*Store) CreateNamespace

func (s *Store) CreateNamespace(bucketARN string, namespaceParts []string) (*Namespace, error)

CreateNamespace creates a new namespace in a bucket.

func (*Store) CreateTable

func (s *Store) CreateTable(bucketARN, namespace, name, format string) (*Table, error)

CreateTable creates a new table in a bucket.

func (*Store) CreateTableBucket

func (s *Store) CreateTableBucket(name string) (*TableBucket, error)

CreateTableBucket creates a new table bucket.

func (*Store) DeleteNamespace

func (s *Store) DeleteNamespace(bucketARN, namespaceName string) bool

DeleteNamespace removes a namespace from a bucket.

func (*Store) DeleteTable

func (s *Store) DeleteTable(bucketARN, namespace, name string) bool

DeleteTable removes a table.

func (*Store) DeleteTableBucket

func (s *Store) DeleteTableBucket(arn string) bool

DeleteTableBucket removes a table bucket.

func (*Store) DeleteTablePolicy

func (s *Store) DeleteTablePolicy(tableARN string) bool

DeleteTablePolicy removes a table policy.

func (*Store) GetNamespace

func (s *Store) GetNamespace(bucketARN, namespaceName string) (*Namespace, bool)

GetNamespace retrieves a namespace from a bucket.

func (*Store) GetTable

func (s *Store) GetTable(bucketARN, namespace, name string) (*Table, bool)

GetTable retrieves a table.

func (*Store) GetTableBucket

func (s *Store) GetTableBucket(arn string) (*TableBucket, bool)

GetTableBucket retrieves a table bucket by ARN.

func (*Store) GetTablePolicy

func (s *Store) GetTablePolicy(tableARN string) (*TablePolicy, bool)

GetTablePolicy retrieves a table policy.

func (*Store) ListNamespaces

func (s *Store) ListNamespaces(bucketARN string) []*Namespace

ListNamespaces returns all namespaces for a bucket.

func (*Store) ListTableBuckets

func (s *Store) ListTableBuckets() []*TableBucket

ListTableBuckets returns all table buckets.

func (*Store) ListTables

func (s *Store) ListTables(bucketARN string) []*Table

ListTables returns all tables in a bucket.

func (*Store) PutTablePolicy

func (s *Store) PutTablePolicy(tableARN, policy string) error

PutTablePolicy sets a policy for a table.

func (*Store) UpdateTableMetadataLocation

func (s *Store) UpdateTableMetadataLocation(bucketARN, namespace, name, metadataLocation string) (*Table, bool)

UpdateTableMetadataLocation updates the metadata location for a table.

type Table

type Table struct {
	TableARN       string
	Namespace      string
	Name           string
	TableBucketARN string
	Format         string
	Type           string
	CreatedAt      time.Time
	ModifiedAt     time.Time
}

Table represents an S3 Tables table.

type TableBucket

type TableBucket struct {
	TableBucketARN string
	Name           string
	OwnerAccountID string
	CreatedAt      time.Time
}

TableBucket represents an S3 Tables table bucket.

type TablePolicy

type TablePolicy struct {
	TableARN       string
	ResourcePolicy string
}

TablePolicy represents a policy for an S3 Tables table.

Jump to

Keyboard shortcuts

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