dao

package
v0.0.0-...-ffb091d Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalDAO = mem.NewInMemoryDAO()

Functions

func AddApplication

func AddApplication(app *Application) error

func AddNamespace

func AddNamespace(namespace *Project) error

func AddPackageURI

func AddPackageURI(r *Release, uri string) error

func AddRelease

func AddRelease(release *Release) error

func FindAllVersions

func FindAllVersions(app *Application) ([]string, error)

func GetAllReleases

func GetAllReleases() ([]*Release, error)

func GetAllReleasesWithoutProcessedDependencies

func GetAllReleasesWithoutProcessedDependencies() ([]*Release, error)

func GetApplication

func GetApplication(namespace, name string) (*Application, error)

func GetApplicationHooks

func GetApplicationHooks(app *Application) (Hooks, error)

func GetApplications

func GetApplications(namespace string) (map[string]*Application, error)

func GetDependencies

func GetDependencies(r *Release) ([]*Dependency, error)

func GetDownstreamDependencies

func GetDownstreamDependencies(r *Release) ([]*Dependency, error)

func GetDownstreamDependenciesFilteredBy

func GetDownstreamDependenciesFilteredBy(r *Release, f *DownstreamDependenciesFilter) ([]*Dependency, error)

func GetDownstreamHooks

func GetDownstreamHooks(app *Application) ([]*Hooks, error)

func GetNamespace

func GetNamespace(namespace string) (*Project, error)

func GetNamespaceHooks

func GetNamespaceHooks(namespace *Project) (Hooks, error)

func GetNamespaces

func GetNamespaces() (map[string]*Project, error)

func GetNamespacesByNames

func GetNamespacesByNames(namespaces []string) (map[string]*Project, error)

func GetNamespacesFilteredBy

func GetNamespacesFilteredBy(f *NamespacesFilter) (map[string]*Project, error)

func GetNamespacesForUser

func GetNamespacesForUser(namespaces []string) (map[string]*Project, error)

func GetPackageURIs

func GetPackageURIs(r *Release) ([]string, error)

func GetProviders

func GetProviders(providerName string) (map[string]*MinimalReleaseMetadata, error)

func GetProvidersFilteredBy

func GetProvidersFilteredBy(providerName string, f *ProvidersFilter) (map[string]*MinimalReleaseMetadata, error)

func GetRelease

func GetRelease(namespace, name, releaseId string) (*Release, error)

func GetReleaseByTag

func GetReleaseByTag(namespace, name, tag string) (*Release, error)

func GetUserMetrics

func GetUserMetrics(username string) (*Metrics, error)

func HardDeleteNamespace

func HardDeleteNamespace(namespace string) error

func IsAlreadyExists

func IsAlreadyExists(err error) bool

func IsLimitError

func IsLimitError(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func IsUnauthorized

func IsUnauthorized(err error) bool

func LoadFromConfig

func LoadFromConfig(conf *config.Config) error

func RegisterProviders

func RegisterProviders(release *core.ReleaseMetadata) error

func SetApplicationHooks

func SetApplicationHooks(app *Application, hooks Hooks) error

func SetApplicationSubscribesToUpdatesFrom

func SetApplicationSubscribesToUpdatesFrom(app *Application, upstream []*Application) error

func SetDependencies

func SetDependencies(r *Release, deps []*Dependency) error

func SetNamespaceHooks

func SetNamespaceHooks(namespace *Project, hooks Hooks) error

func SetUserMetrics

func SetUserMetrics(username string, previous, new *Metrics) error

func TagRelease

func TagRelease(release *Release, tag string) error

func TestSetup

func TestSetup()

func UpdateApplication

func UpdateApplication(app *Application) error

func UpdateNamespace

func UpdateNamespace(namespace *Project) error

func UpdateRelease

func UpdateRelease(release *Release) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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