repository

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(service *models.Service, production bool) error

func Delete added in v2.3.0

func Delete(serviceName, serviceType, productName, status string, revision int64, production bool) error

func GetMaxRevisionsServicesMap

func GetMaxRevisionsServicesMap(productName string, production bool) (map[string]*models.Service, error)

func ListMaxRevisions

func ListMaxRevisions(opt *mongodb.ServiceListOption, production bool) ([]*models.Service, error)

func ListMaxRevisionsServices

func ListMaxRevisionsServices(productName string, production bool) ([]*models.Service, error)

func ListMaxRevisionsServicesWithSession added in v2.3.0

func ListMaxRevisionsServicesWithSession(productName string, production bool, session mongo.Session) ([]*models.Service, error)

func ListServicesWithSRevision

func ListServicesWithSRevision(option *mongodb.SvcRevisionListOption, production bool) ([]*models.Service, error)

func QueryTemplateService

func QueryTemplateService(option *mongodb.ServiceFindOption, production bool) (*models.Service, error)

func QueryTemplateServiceWithSession added in v2.3.0

func QueryTemplateServiceWithSession(option *mongodb.ServiceFindOption, production bool, session mongo.Session) (*models.Service, error)

func Update

func Update(service *models.Service, production bool) error

func UpdateServiceContainers added in v2.3.0

func UpdateServiceContainers(args *models.Service, production bool) error

func UpdateServiceVariables

func UpdateServiceVariables(args *models.Service, production bool) error

func UpdateStatus

func UpdateStatus(serviceName, productName, status string, production bool) error

func UpdateWithSession

func UpdateWithSession(service *models.Service, production bool, session mongo.Session) error

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

Jump to

Keyboard shortcuts

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