Documentation ¶
Index ¶
- func Create(service *models.Service, production bool) error
- func Delete(serviceName, serviceType, productName, status string, revision int64, ...) error
- func GetMaxRevisionsServicesMap(productName string, production bool) (map[string]*models.Service, error)
- func ListMaxRevisions(opt *mongodb.ServiceListOption, production bool) ([]*models.Service, error)
- func ListMaxRevisionsServices(productName string, production bool) ([]*models.Service, error)
- func ListMaxRevisionsServicesWithSession(productName string, production bool, session mongo.Session) ([]*models.Service, error)
- func ListServicesWithSRevision(option *mongodb.SvcRevisionListOption, production bool) ([]*models.Service, error)
- func QueryTemplateService(option *mongodb.ServiceFindOption, production bool) (*models.Service, error)
- func QueryTemplateServiceWithSession(option *mongodb.ServiceFindOption, production bool, session mongo.Session) (*models.Service, error)
- func Update(service *models.Service, production bool) error
- func UpdateServiceContainers(args *models.Service, production bool) error
- func UpdateServiceVariables(args *models.Service, production bool) error
- func UpdateStatus(serviceName, productName, status string, production bool) error
- func UpdateWithSession(service *models.Service, production bool, session mongo.Session) error
- type IServiceColl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListMaxRevisions ¶
func ListMaxRevisionsServicesWithSession ¶ added in v2.3.0
func QueryTemplateService ¶
func QueryTemplateServiceWithSession ¶ added in v2.3.0
func UpdateServiceContainers ¶ added in v2.3.0
func UpdateServiceVariables ¶
func UpdateStatus ¶
Types ¶
type IServiceColl ¶ added in v2.3.0
type IServiceColl interface { Find(option *mongodb.ServiceFindOption) (*models.Service, error) Delete(serviceName, serviceType, productName, status string, revision int64) error Create(args *models.Service) error }
func ServiceCollWithSession ¶ added in v2.3.0
func ServiceCollWithSession(production bool, session mongo.Session) IServiceColl
Click to show internal directories.
Click to hide internal directories.