catalog

package
v0.1.77 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package catalog persists organization-owned connections as encrypted payloads.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	DB     *gorm.DB
	OrgID  uuid.UUID
	Keeper *secrets.Keeper
	KeyID  string
}

type Record

type Record struct {
	ID        uuid.UUID `gorm:"type:uuid;primaryKey"`
	OrgID     uuid.UUID `gorm:"type:uuid;not null;uniqueIndex:connections_identity"`
	Namespace string    `gorm:"not null;uniqueIndex:connections_identity"`
	Name      string    `gorm:"not null;uniqueIndex:connections_identity"`
	Type      string    `gorm:"not null"`
	KeyID     string    `gorm:"not null"`
	Payload   []byte    `gorm:"not null" json:"-"`
	CreatedBy *uuid.UUID
	CreatedAt time.Time
	UpdatedAt time.Time
}

func (Record) TableName

func (Record) TableName() string

type Store

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

func New

func New(options Options) (*Store, error)

func (*Store) DeleteConnection

func (s *Store) DeleteConnection(ctx context.Context, reference string) error

func (*Store) ListConnections

func (s *Store) ListConnections() ([]*models.Connection, error)

func (*Store) ResolveConnection

func (s *Store) ResolveConnection(ctx dbcontext.Context, reference string) (*models.Connection, error)

func (*Store) SaveConnection

func (s *Store) SaveConnection(ctx context.Context, c *models.Connection) (*models.Connection, error)

func (*Store) Writable

func (s *Store) Writable() bool

Jump to

Keyboard shortcuts

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