repository

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebBrokerAPIRepo

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

WebBrokerAPIRepo handles database operations for WebBroker APIs

func NewWebBrokerAPIRepo

func NewWebBrokerAPIRepo(db *database.DB, reg *corerepo.ArtifactTableRegistry) *WebBrokerAPIRepo

NewWebBrokerAPIRepo creates a new WebBrokerAPIRepo instance

func (*WebBrokerAPIRepo) Count

func (r *WebBrokerAPIRepo) Count(orgUUID string) (int, error)

Count returns the total number of WebBroker APIs for an organization

func (*WebBrokerAPIRepo) CountByProject

func (r *WebBrokerAPIRepo) CountByProject(orgUUID, projectUUID string) (int, error)

CountByProject returns the total number of WebBroker APIs for a specific project

func (*WebBrokerAPIRepo) Create

func (r *WebBrokerAPIRepo) Create(a *model.WebBrokerAPI) error

Create creates a new WebBroker API in the database

func (*WebBrokerAPIRepo) Delete

func (r *WebBrokerAPIRepo) Delete(handle, orgUUID string) error

Delete deletes a WebBroker API by its handle and organization UUID

func (*WebBrokerAPIRepo) Exists

func (r *WebBrokerAPIRepo) Exists(handle, orgUUID string) (bool, error)

Exists checks if a WebBroker API exists by its handle and organization UUID

func (*WebBrokerAPIRepo) GetByHandle

func (r *WebBrokerAPIRepo) GetByHandle(handle, orgUUID string) (*model.WebBrokerAPI, error)

GetByHandle retrieves a WebBroker API by its handle and organization UUID

func (*WebBrokerAPIRepo) GetByUUID

func (r *WebBrokerAPIRepo) GetByUUID(uuid, orgUUID string) (*model.WebBrokerAPI, error)

GetByUUID retrieves a WebBroker API by its UUID and organization UUID

func (*WebBrokerAPIRepo) List

func (r *WebBrokerAPIRepo) List(orgUUID, projectUUID string, limit, offset int) ([]*model.WebBrokerAPI, error)

List retrieves all WebBroker APIs for an organization, optionally filtered by project

func (*WebBrokerAPIRepo) Update

func (r *WebBrokerAPIRepo) Update(a *model.WebBrokerAPI) error

Update updates an existing WebBroker API

type WebSubAPIHmacSecretRepo

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

WebSubAPIHmacSecretRepo handles database operations for WebSub API HMAC secrets

func NewWebSubAPIHmacSecretRepo

func NewWebSubAPIHmacSecretRepo(db *database.DB) *WebSubAPIHmacSecretRepo

NewWebSubAPIHmacSecretRepo creates a new WebSubAPIHmacSecretRepo

func (*WebSubAPIHmacSecretRepo) Create

Create persists a new HMAC secret

func (*WebSubAPIHmacSecretRepo) Delete

func (r *WebSubAPIHmacSecretRepo) Delete(artifactUUID, name string) error

Delete permanently removes a secret

func (*WebSubAPIHmacSecretRepo) GetByArtifactAndName

func (r *WebSubAPIHmacSecretRepo) GetByArtifactAndName(artifactUUID, handle string) (*model.WebSubAPIHmacSecret, error)

GetByArtifactAndName fetches a specific HMAC secret by artifact UUID and handle

func (*WebSubAPIHmacSecretRepo) ListByArtifact

func (r *WebSubAPIHmacSecretRepo) ListByArtifact(artifactUUID string) ([]*model.WebSubAPIHmacSecret, error)

ListByArtifact returns all HMAC secrets for an artifact

func (*WebSubAPIHmacSecretRepo) Update

Update replaces the encrypted secret value (used on regenerate)

type WebSubAPIRepo

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

WebSubAPIRepo handles database operations for WebSub APIs

func NewWebSubAPIRepo

func NewWebSubAPIRepo(db *database.DB, reg *corerepo.ArtifactTableRegistry) *WebSubAPIRepo

NewWebSubAPIRepo creates a new WebSubAPIRepo instance

func (*WebSubAPIRepo) Count

func (r *WebSubAPIRepo) Count(orgUUID string) (int, error)

Count returns the total number of WebSub APIs for an organization

func (*WebSubAPIRepo) CountByProject

func (r *WebSubAPIRepo) CountByProject(orgUUID, projectUUID string) (int, error)

CountByProject returns the total number of WebSub APIs for a specific project

func (*WebSubAPIRepo) Create

func (r *WebSubAPIRepo) Create(a *model.WebSubAPI) error

Create creates a new WebSub API in the database

func (*WebSubAPIRepo) Delete

func (r *WebSubAPIRepo) Delete(handle, orgUUID string) error

Delete deletes a WebSub API by its handle and organization UUID

func (*WebSubAPIRepo) Exists

func (r *WebSubAPIRepo) Exists(handle, orgUUID string) (bool, error)

Exists checks if a WebSub API exists by its handle and organization UUID

func (*WebSubAPIRepo) GetByHandle

func (r *WebSubAPIRepo) GetByHandle(handle, orgUUID string) (*model.WebSubAPI, error)

GetByHandle retrieves a WebSub API by its handle and organization UUID

func (*WebSubAPIRepo) GetByUUID

func (r *WebSubAPIRepo) GetByUUID(uuid, orgUUID string) (*model.WebSubAPI, error)

GetByUUID retrieves a WebSub API by its UUID and organization UUID

func (*WebSubAPIRepo) List

func (r *WebSubAPIRepo) List(orgUUID, projectUUID string, limit, offset int) ([]*model.WebSubAPI, error)

List retrieves all WebSub APIs for an organization, optionally filtered by project

func (*WebSubAPIRepo) Update

func (r *WebSubAPIRepo) Update(a *model.WebSubAPI) error

Update updates an existing WebSub API

Jump to

Keyboard shortcuts

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