Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
ID string `db:"id" json:"id"`
Name string `db:"name" json:"name"`
ProviderType types.SecretProvider `db:"provider_type" json:"provider_type"`
EncryptedSecretData types.ConnectionMetadata `db:"encrypted_secret_data" json:"encrypted_secret_data"`
EnvironmentID string `db:"environment_id" json:"environment_id"`
types.BaseModel
}
Connection represents an integration connection in the system
func FromEnt ¶
func FromEnt(entConn *ent.Connection) *Connection
FromEnt converts an ent.Connection to domain Connection
func (*Connection) GetStripeConfig ¶
func (c *Connection) GetStripeConfig() (*StripeConnection, error)
GetStripeConfig extracts Stripe configuration from connection metadata
type Repository ¶
type Repository interface {
Create(ctx context.Context, connection *Connection) error
Get(ctx context.Context, id string) (*Connection, error)
GetByProvider(ctx context.Context, provider types.SecretProvider) (*Connection, error)
List(ctx context.Context, filter *types.ConnectionFilter) ([]*Connection, error)
Count(ctx context.Context, filter *types.ConnectionFilter) (int, error)
Update(ctx context.Context, connection *Connection) error
Delete(ctx context.Context, connection *Connection) error
}
Repository defines the interface for connection data operations
Click to show internal directories.
Click to hide internal directories.