Documentation
¶
Overview ¶
Package catalog persists organization-owned connections as encrypted payloads.
Index ¶
- type Options
- type Record
- type Store
- func (s *Store) DeleteConnection(ctx context.Context, reference string) error
- func (s *Store) ListConnections() ([]*models.Connection, error)
- func (s *Store) ResolveConnection(ctx dbcontext.Context, reference string) (*models.Connection, error)
- func (s *Store) SaveConnection(ctx context.Context, c *models.Connection) (*models.Connection, error)
- func (s *Store) Writable() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteConnection ¶
func (*Store) ListConnections ¶
func (s *Store) ListConnections() ([]*models.Connection, error)
func (*Store) ResolveConnection ¶
func (*Store) SaveConnection ¶
func (s *Store) SaveConnection(ctx context.Context, c *models.Connection) (*models.Connection, error)
Click to show internal directories.
Click to hide internal directories.