Documentation ¶
Index ¶
- type SQLHelper
- func (s *SQLHelper) AddApplication(app *Application) error
- func (s *SQLHelper) AddNamespace(namespace *Project) error
- func (s *SQLHelper) AddPackageURI(release *Release, uri string) error
- func (s *SQLHelper) AddRelease(release *Release) error
- func (s *SQLHelper) FindAllVersions(app *Application) ([]string, error)
- func (s *SQLHelper) GetAllReleases() ([]*Release, error)
- func (s *SQLHelper) GetAllReleasesWithoutProcessedDependencies() ([]*Release, error)
- func (s *SQLHelper) GetApplication(namespace, name string) (*Application, error)
- func (s *SQLHelper) GetApplicationHooks(app *Application) (Hooks, error)
- func (s *SQLHelper) GetApplications(namespace string) (map[string]*Application, error)
- func (s *SQLHelper) GetDependencies(release *Release) ([]*Dependency, error)
- func (s *SQLHelper) GetDependencyTree(release *Release) ([]*DependencyTree, error)
- func (s *SQLHelper) GetDownstreamDependencies(release *Release) ([]*Dependency, error)
- func (s *SQLHelper) GetDownstreamDependenciesFilteredBy(release *Release, f *DownstreamDependenciesFilter) ([]*Dependency, error)
- func (s *SQLHelper) GetDownstreamHooks(app *Application) ([]*Hooks, error)
- func (s *SQLHelper) GetNamespace(namespace string) (*Project, error)
- func (s *SQLHelper) GetNamespaceHooks(namespace *Project) (Hooks, error)
- func (s *SQLHelper) GetNamespaces() (map[string]*Project, error)
- func (s *SQLHelper) GetNamespacesByNames(namespaces []string) (map[string]*Project, error)
- func (s *SQLHelper) GetNamespacesFilteredBy(f *NamespacesFilter) (map[string]*Project, error)
- func (s *SQLHelper) GetNamespacesForUser(namespaces []string) (map[string]*Project, error)
- func (s *SQLHelper) GetPackageURIs(release *Release) ([]string, error)
- func (s *SQLHelper) GetProviders(providerName string) (map[string]*MinimalReleaseMetadata, error)
- func (s *SQLHelper) GetProvidersFilteredBy(providerName string, f *ProvidersFilter) (map[string]*MinimalReleaseMetadata, error)
- func (s *SQLHelper) GetRelease(namespace, name, releaseId string) (*Release, error)
- func (s *SQLHelper) GetReleaseByTag(namespace, name, tag string) (*Release, error)
- func (s *SQLHelper) GetUserMetrics(userID string) (*Metrics, error)
- func (s *SQLHelper) HardDeleteNamespace(namespace string) error
- func (s *SQLHelper) PrepareAndExec(query string, arg ...interface{}) error
- func (s *SQLHelper) PrepareAndExecInsert(query string, arg ...interface{}) error
- func (s *SQLHelper) PrepareAndExecInsertIgnoreDups(query string, arg ...interface{}) error
- func (s *SQLHelper) PrepareAndExecUpdate(query string, arg ...interface{}) error
- func (s *SQLHelper) PrepareAndQuery(query string, arg ...interface{}) (*sql.Rows, error)
- func (s *SQLHelper) ReadRowsIntoStringArray(rows *sql.Rows) ([]string, error)
- func (s *SQLHelper) RegisterProviders(release *core.ReleaseMetadata) error
- func (s *SQLHelper) SetApplicationHooks(app *Application, hooks Hooks) error
- func (s *SQLHelper) SetApplicationSubscribesToUpdatesFrom(app *Application, upstream []*Application) error
- func (s *SQLHelper) SetDependencies(release *Release, depends []*Dependency) error
- func (s *SQLHelper) SetDependencyTree(release *Release, depends []*DependencyTree) error
- func (s *SQLHelper) SetNamespaceHooks(namespace *Project, hooks Hooks) error
- func (s *SQLHelper) SetUserMetrics(userID string, previous, new *Metrics) error
- func (s *SQLHelper) TagRelease(rel *Release, tag string) error
- func (s *SQLHelper) UpdateApplication(app *Application) error
- func (s *SQLHelper) UpdateNamespace(namespace *Project) error
- func (s *SQLHelper) UpdateRelease(release *Release) error
- func (s *SQLHelper) WipeDatabase() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLHelper ¶
type SQLHelper struct { DB *sql.DB UseNumericInsertMarks bool WipeDatabaseFunc func(*SQLHelper) error IsUniqueConstraintError func(error) bool GetProjectQuery string AddProjectQuery string UpdateProjectQuery string GetProjectsQuery string GetNamespacesByNamesQuery string GetNamespacesForUserQuery string GetProjectHooksQuery string SetProjectHooksQuery string AddApplicationQuery string UpdateApplicationQuery string GetApplicationsQuery string GetApplicationQuery string GetApplicationHooksQuery string SetApplicationHooksQuery string DeleteSubscriptionsQuery string AddSubscriptionQuery string GetDownstreamSubscriptionsQuery string AddReleaseQuery string UpdateReleaseQuery string GetReleaseQuery string GetAllReleasesQuery string GetAllReleasesWithoutProcessedDependenciesQuery string FindAllVersionsQuery string GetReleaseByTagQuery string UpdateReleaseTagQuery string AddReleaseTagQuery string InsertDependencyQuery string GetDependenciesQuery string GetDownstreamDependenciesQuery string GetPackageURIsQuery string AddPackageURIQuery string CreateUserIDMetricsQuery string GetMetricsByUserIDQuery string SetProjectCountMetricForUser string GetProviderReleasesQuery string GetProvidersForReleaseQuery string SetProviderQuery string UpdateProviderQuery string HardDeleteProjectPackageURIsQuery string HardDeleteProjectUnitSubscriptions string HardDeleteProjectReleaseDependenciesQuery string HardDeleteProjectReleasesQuery string HardDeleteProjectApplicationsQuery string HardDeleteProjectQuery string }
func (*SQLHelper) AddApplication ¶
func (*SQLHelper) AddNamespace ¶
func (*SQLHelper) AddPackageURI ¶
func (*SQLHelper) AddRelease ¶
func (*SQLHelper) FindAllVersions ¶
func (*SQLHelper) GetAllReleases ¶
func (*SQLHelper) GetAllReleasesWithoutProcessedDependencies ¶
func (*SQLHelper) GetApplication ¶
func (*SQLHelper) GetApplicationHooks ¶
func (*SQLHelper) GetApplications ¶
func (*SQLHelper) GetDependencies ¶
func (*SQLHelper) GetDependencyTree ¶
func (*SQLHelper) GetDownstreamDependencies ¶
func (*SQLHelper) GetDownstreamDependenciesFilteredBy ¶
func (*SQLHelper) GetDownstreamHooks ¶
func (*SQLHelper) GetNamespace ¶
func (*SQLHelper) GetNamespaceHooks ¶
func (*SQLHelper) GetNamespaces ¶
func (*SQLHelper) GetNamespacesByNames ¶
func (*SQLHelper) GetNamespacesFilteredBy ¶
func (*SQLHelper) GetNamespacesForUser ¶
func (*SQLHelper) GetPackageURIs ¶
func (*SQLHelper) GetProviders ¶
func (*SQLHelper) GetProvidersFilteredBy ¶
func (*SQLHelper) GetRelease ¶
func (*SQLHelper) GetReleaseByTag ¶
func (*SQLHelper) GetUserMetrics ¶
func (*SQLHelper) HardDeleteNamespace ¶
func (*SQLHelper) PrepareAndExec ¶
func (*SQLHelper) PrepareAndExecInsert ¶
func (*SQLHelper) PrepareAndExecInsertIgnoreDups ¶
func (*SQLHelper) PrepareAndExecUpdate ¶
func (*SQLHelper) PrepareAndQuery ¶
func (*SQLHelper) ReadRowsIntoStringArray ¶
func (*SQLHelper) RegisterProviders ¶
func (s *SQLHelper) RegisterProviders(release *core.ReleaseMetadata) error
func (*SQLHelper) SetApplicationHooks ¶
func (*SQLHelper) SetApplicationSubscribesToUpdatesFrom ¶
func (*SQLHelper) SetDependencies ¶
func (*SQLHelper) SetDependencyTree ¶
func (*SQLHelper) SetNamespaceHooks ¶
func (*SQLHelper) SetUserMetrics ¶
func (*SQLHelper) TagRelease ¶
func (*SQLHelper) UpdateApplication ¶
func (*SQLHelper) UpdateNamespace ¶
func (*SQLHelper) UpdateRelease ¶
func (*SQLHelper) WipeDatabase ¶
Click to show internal directories.
Click to hide internal directories.