glue

package
v0.0.1-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package glue provides a basic emulation of AWS Glue Data Catalog.

Implemented operations: CreateDatabase, GetDatabase, GetDatabases, DeleteDatabase, CreateTable, GetTable, GetTables, DeleteTable.

Enough for data-layer stacks referencing AWS::Glue::Database and Table.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Name        string `json:"Name"`
	Description string `json:"Description,omitempty"`
	CatalogId   string `json:"CatalogId,omitempty"`
}

Database represents a Glue database.

type Service

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

Service implements router.Service and router.TargetDispatcher for Glue.

func New

func New(cfg *config.Config, st state.Store, logger *zap.Logger, _ clock.Clock) *Service

New returns a configured Glue Service.

func (*Service) Dispatch

func (s *Service) Dispatch(w http.ResponseWriter, r *http.Request)

func (*Service) Name

func (s *Service) Name() string

func (*Service) Operations

func (s *Service) Operations() []op.Operation

func (*Service) RegisterRoutes

func (s *Service) RegisterRoutes(_ chi.Router)

func (*Service) SupportedProtocols

func (s *Service) SupportedProtocols() []codec.Codec

func (*Service) TargetPrefix

func (s *Service) TargetPrefix() string

type Table

type Table struct {
	Name         string `json:"Name"`
	DatabaseName string `json:"DatabaseName"`
	Description  string `json:"Description,omitempty"`
	TableType    string `json:"TableType,omitempty"`
	CatalogId    string `json:"CatalogId,omitempty"`
}

Table represents a Glue table.

Jump to

Keyboard shortcuts

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