Documentation
¶
Index ¶
- type Namespace
- type S3TablesService
- type Store
- func (s *Store) CreateNamespace(bucketARN string, namespaceParts []string) (*Namespace, error)
- func (s *Store) CreateTable(bucketARN, namespace, name, format string) (*Table, error)
- func (s *Store) CreateTableBucket(name string) (*TableBucket, error)
- func (s *Store) DeleteNamespace(bucketARN, namespaceName string) bool
- func (s *Store) DeleteTable(bucketARN, namespace, name string) bool
- func (s *Store) DeleteTableBucket(arn string) bool
- func (s *Store) DeleteTablePolicy(tableARN string) bool
- func (s *Store) GetNamespace(bucketARN, namespaceName string) (*Namespace, bool)
- func (s *Store) GetTable(bucketARN, namespace, name string) (*Table, bool)
- func (s *Store) GetTableBucket(arn string) (*TableBucket, bool)
- func (s *Store) GetTablePolicy(tableARN string) (*TablePolicy, bool)
- func (s *Store) ListNamespaces(bucketARN string) []*Namespace
- func (s *Store) ListTableBuckets() []*TableBucket
- func (s *Store) ListTables(bucketARN string) []*Table
- func (s *Store) PutTablePolicy(tableARN, policy string) error
- func (s *Store) UpdateTableMetadataLocation(bucketARN, namespace, name, metadataLocation string) (*Table, bool)
- type Table
- type TableBucket
- type TablePolicy
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 (*Store) CreateNamespace ¶
CreateNamespace creates a new namespace in a bucket.
func (*Store) CreateTable ¶
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 ¶
DeleteNamespace removes a namespace from a bucket.
func (*Store) DeleteTable ¶
DeleteTable removes a table.
func (*Store) DeleteTableBucket ¶
DeleteTableBucket removes a table bucket.
func (*Store) DeleteTablePolicy ¶
DeleteTablePolicy removes a table policy.
func (*Store) GetNamespace ¶
GetNamespace retrieves a namespace from a bucket.
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 ¶
ListNamespaces returns all namespaces for a bucket.
func (*Store) ListTableBuckets ¶
func (s *Store) ListTableBuckets() []*TableBucket
ListTableBuckets returns all table buckets.
func (*Store) ListTables ¶
ListTables returns all tables in a bucket.
func (*Store) PutTablePolicy ¶
PutTablePolicy sets a policy 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 ¶
TablePolicy represents a policy for an S3 Tables table.