catalog

package
v0.1.94 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 keeper.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