Documentation
¶
Index ¶
- Variables
- type Installation
- type Requirement
- type Service
- func (s *Service) Delete(ctx context.Context, botID, installationID string) (Installation, error)
- func (s *Service) Get(ctx context.Context, botID, workspaceTargetID, registryID, packageID string) (Installation, error)
- func (s *Service) GetByID(ctx context.Context, botID, installationID string) (Installation, error)
- func (s *Service) List(ctx context.Context, botID string) ([]Installation, error)
- func (s *Service) ListForTarget(ctx context.Context, botID, workspaceTargetID string) ([]Installation, error)
- func (s *Service) Record(ctx context.Context, botID, workspaceTargetID string, requirement Requirement) (Installation, error)
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotInstalled = errors.New("skill Package is not installed")
Functions ¶
This section is empty.
Types ¶
type Installation ¶
type Installation struct {
ID string `json:"id" validate:"required"`
BotID string `json:"bot_id" validate:"required"`
WorkspaceTargetID string `json:"workspace_target_id" validate:"required"`
RegistryID string `json:"registry_id" validate:"required"`
PackageID string `json:"package_id" validate:"required"`
Revision string `json:"revision" validate:"required"`
InstalledAt time.Time `json:"installed_at" validate:"required"`
UpdatedAt time.Time `json:"updated_at" validate:"required"`
}
type Requirement ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) ListForTarget ¶
func (*Service) Record ¶
func (s *Service) Record(ctx context.Context, botID, workspaceTargetID string, requirement Requirement) (Installation, error)
type Store ¶
type Store interface {
DeleteBotSkillPackageInstallation(context.Context, dbsqlc.DeleteBotSkillPackageInstallationParams) (dbsqlc.BotSkillPackageInstallation, error)
GetBotSkillPackageInstallation(context.Context, dbsqlc.GetBotSkillPackageInstallationParams) (dbsqlc.BotSkillPackageInstallation, error)
GetBotSkillPackageInstallationByID(context.Context, dbsqlc.GetBotSkillPackageInstallationByIDParams) (dbsqlc.BotSkillPackageInstallation, error)
ListBotSkillPackageInstallations(context.Context, pgtype.UUID) ([]dbsqlc.BotSkillPackageInstallation, error)
UpsertBotSkillPackageInstallation(context.Context, dbsqlc.UpsertBotSkillPackageInstallationParams) (dbsqlc.BotSkillPackageInstallation, error)
}
Click to show internal directories.
Click to hide internal directories.