Documentation ¶
Index ¶
- Variables
- type DeploymentCommandIdVersionWrapper
- type FactoryType
- type Mongo
- func (this *Mongo) CheckDeploymentAccess(user string, deploymentId string) (err error, code int)
- func (this *Mongo) DeleteDependencies(id string) error
- func (this *Mongo) DeleteDeployment(id string) error
- func (this *Mongo) GetDependencies(user string, deploymentId string) (result dependencymodel.Dependencies, err error, code int)
- func (this *Mongo) GetDependenciesList(user string, limit int, offset int) (result []dependencymodel.Dependencies, err error, code int)
- func (this *Mongo) GetDeployment(user string, deploymentId string) (deployment *deploymentmodel.Deployment, err error, code int)
- func (this *Mongo) GetDeploymentIds(user string) (deployments []string, err error)
- func (this *Mongo) GetSelectedDependencies(user string, ids []string) (result []dependencymodel.Dependencies, err error, code int)
- func (this *Mongo) SetDependencies(dependencies dependencymodel.Dependencies) error
- func (this *Mongo) SetDeployment(id string, owner string, deployment *deploymentmodel.Deployment) error
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateCollections = []func(db *Mongo, config config.Config) error{}
View Source
var ErrorUnexpectedDeploymentVersion = errors.New("unexpected deployment version")
View Source
var Factory = FactoryType{}
Functions ¶
This section is empty.
Types ¶
type FactoryType ¶
type FactoryType struct{}
func (FactoryType) New ¶
func (f FactoryType) New(ctx context.Context, config config.Config) (result interfaces.Database, err error)
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func (*Mongo) CheckDeploymentAccess ¶
func (*Mongo) DeleteDependencies ¶
func (*Mongo) DeleteDeployment ¶
func (*Mongo) GetDependencies ¶
func (this *Mongo) GetDependencies(user string, deploymentId string) (result dependencymodel.Dependencies, err error, code int)
func (*Mongo) GetDependenciesList ¶
func (this *Mongo) GetDependenciesList(user string, limit int, offset int) (result []dependencymodel.Dependencies, err error, code int)
func (*Mongo) GetDeployment ¶
func (this *Mongo) GetDeployment(user string, deploymentId string) (deployment *deploymentmodel.Deployment, err error, code int)
func (*Mongo) GetDeploymentIds ¶
func (*Mongo) GetSelectedDependencies ¶
func (this *Mongo) GetSelectedDependencies(user string, ids []string) (result []dependencymodel.Dependencies, err error, code int)
func (*Mongo) SetDependencies ¶
func (this *Mongo) SetDependencies(dependencies dependencymodel.Dependencies) error
func (*Mongo) SetDeployment ¶
func (this *Mongo) SetDeployment(id string, owner string, deployment *deploymentmodel.Deployment) error
Click to show internal directories.
Click to hide internal directories.