Documentation
¶
Index ¶
- type WebBrokerAPIRepo
- func (r *WebBrokerAPIRepo) Count(orgUUID string) (int, error)
- func (r *WebBrokerAPIRepo) CountByProject(orgUUID, projectUUID string) (int, error)
- func (r *WebBrokerAPIRepo) Create(a *model.WebBrokerAPI) error
- func (r *WebBrokerAPIRepo) Delete(handle, orgUUID string) error
- func (r *WebBrokerAPIRepo) Exists(handle, orgUUID string) (bool, error)
- func (r *WebBrokerAPIRepo) GetByHandle(handle, orgUUID string) (*model.WebBrokerAPI, error)
- func (r *WebBrokerAPIRepo) GetByUUID(uuid, orgUUID string) (*model.WebBrokerAPI, error)
- func (r *WebBrokerAPIRepo) List(orgUUID, projectUUID string, limit, offset int) ([]*model.WebBrokerAPI, error)
- func (r *WebBrokerAPIRepo) Update(a *model.WebBrokerAPI) error
- type WebSubAPIHmacSecretRepo
- func (r *WebSubAPIHmacSecretRepo) Create(secret *model.WebSubAPIHmacSecret) error
- func (r *WebSubAPIHmacSecretRepo) Delete(artifactUUID, name string) error
- func (r *WebSubAPIHmacSecretRepo) GetByArtifactAndName(artifactUUID, handle string) (*model.WebSubAPIHmacSecret, error)
- func (r *WebSubAPIHmacSecretRepo) ListByArtifact(artifactUUID string) ([]*model.WebSubAPIHmacSecret, error)
- func (r *WebSubAPIHmacSecretRepo) Update(secret *model.WebSubAPIHmacSecret) error
- type WebSubAPIRepo
- func (r *WebSubAPIRepo) Count(orgUUID string) (int, error)
- func (r *WebSubAPIRepo) CountByProject(orgUUID, projectUUID string) (int, error)
- func (r *WebSubAPIRepo) Create(a *model.WebSubAPI) error
- func (r *WebSubAPIRepo) Delete(handle, orgUUID string) error
- func (r *WebSubAPIRepo) Exists(handle, orgUUID string) (bool, error)
- func (r *WebSubAPIRepo) GetByHandle(handle, orgUUID string) (*model.WebSubAPI, error)
- func (r *WebSubAPIRepo) GetByUUID(uuid, orgUUID string) (*model.WebSubAPI, error)
- func (r *WebSubAPIRepo) List(orgUUID, projectUUID string, limit, offset int) ([]*model.WebSubAPI, error)
- func (r *WebSubAPIRepo) Update(a *model.WebSubAPI) error
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 ¶
func (r *WebSubAPIHmacSecretRepo) Create(secret *model.WebSubAPIHmacSecret) error
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 ¶
func (r *WebSubAPIHmacSecretRepo) Update(secret *model.WebSubAPIHmacSecret) error
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