Documentation ¶
Index ¶
- type BasicImageColl
- type BasicImageOpt
- type BuildColl
- type BuildListOption
- type CodehostColl
- type ConfigMapColl
- type EmailHostColl
- type EnvResourceColl
- type FindRegOps
- type IngressColl
- type JenkinsIntegrationColl
- type K8SClusterColl
- type ListArgs
- type ListTestOption
- type ListWorkflowOption
- type ListWorkflowTaskV4Option
- type OrganizationColl
- type ProductColl
- type ProductFindOptions
- type ProductListOptions
- type ProjectClusterRelationColl
- type ProjectColl
- type PvcColl
- type RegistryNamespaceColl
- func (r *RegistryNamespaceColl) EnsureIndex(ctx context.Context) error
- func (r *RegistryNamespaceColl) Find(opt *FindRegOps) (*models.RegistryNamespace, error)
- func (r *RegistryNamespaceColl) FindAll(opt *FindRegOps) ([]*models.RegistryNamespace, error)
- func (r *RegistryNamespaceColl) GetCollectionName() string
- type RenderSetColl
- func (c *RenderSetColl) Find(opt *RenderSetFindOption) (*models.RenderSet, error)
- func (c *RenderSetColl) FindRenderSet(opt *RenderSetFindOption) (*models.RenderSet, bool, error)
- func (c *RenderSetColl) GetCollectionName() string
- func (c *RenderSetColl) Update(args *models.RenderSet) error
- func (c *RenderSetColl) UpdateDefaultValues(renderSet *models.RenderSet) error
- type RenderSetFindOption
- type RenderSetListOption
- type RenderSetPipeResp
- type ScanningColl
- type ScanningListOption
- type SecretColl
- type TestingColl
- type WorkflowColl
- type WorkflowTaskV4Coll
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicImageColl ¶ added in v1.9.9
type BasicImageColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewBasicImageColl ¶ added in v1.9.9
func NewBasicImageColl() *BasicImageColl
func (*BasicImageColl) CreateZadigSonarImage ¶ added in v1.9.9
func (c *BasicImageColl) CreateZadigSonarImage() error
func (*BasicImageColl) FindXenialAndFocalBasicImage ¶ added in v1.9.9
func (c *BasicImageColl) FindXenialAndFocalBasicImage() (*models.BasicImage, *models.BasicImage, error)
func (*BasicImageColl) GetSonarTypeImage ¶ added in v1.9.9
func (c *BasicImageColl) GetSonarTypeImage() ([]*models.BasicImage, error)
func (*BasicImageColl) RemoveXenial ¶ added in v1.9.9
func (c *BasicImageColl) RemoveXenial() error
type BasicImageOpt ¶ added in v1.9.9
type BuildColl ¶ added in v1.9.9
type BuildColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewBuildColl ¶ added in v1.9.9
func NewBuildColl() *BuildColl
type BuildListOption ¶ added in v1.9.9
type BuildListOption struct { }
type CodehostColl ¶
type CodehostColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewCodehostColl ¶
func NewCodehostColl() *CodehostColl
func (*CodehostColl) ChangeType ¶
func (c *CodehostColl) ChangeType(ID int, sourceType string) error
func (*CodehostColl) List ¶ added in v1.7.1
func (c *CodehostColl) List() ([]*models.CodeHost, error)
func (*CodehostColl) RollbackType ¶
func (c *CodehostColl) RollbackType(ID int, sourceType string) error
type ConfigMapColl ¶ added in v1.9.9
type ConfigMapColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewConfigMapColl ¶ added in v1.9.9
func NewConfigMapColl() *ConfigMapColl
func (*ConfigMapColl) GetCollectionName ¶ added in v1.9.9
func (c *ConfigMapColl) GetCollectionName() string
func (*ConfigMapColl) List ¶ added in v1.9.9
func (c *ConfigMapColl) List() ([]*models.EnvConfigMap, error)
type EmailHostColl ¶ added in v1.8.0
type EmailHostColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewEmailHostColl ¶ added in v1.8.0
func NewEmailHostColl() *EmailHostColl
func (*EmailHostColl) ChangeType ¶ added in v1.8.0
func (c *EmailHostColl) ChangeType(ID primitive.ObjectID, isTLS string) error
func (*EmailHostColl) List ¶ added in v1.8.0
func (c *EmailHostColl) List() ([]*models.EmailHost, error)
func (*EmailHostColl) RollbackType ¶ added in v1.8.0
func (c *EmailHostColl) RollbackType(ID primitive.ObjectID, isTLS bool) error
type EnvResourceColl ¶ added in v1.9.9
type EnvResourceColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewEnvResourceColl ¶ added in v1.9.9
func NewEnvResourceColl() *EnvResourceColl
func (*EnvResourceColl) BatchInsert ¶ added in v1.9.9
func (c *EnvResourceColl) BatchInsert(resources []*models.EnvResource) error
type FindRegOps ¶ added in v1.8.0
type IngressColl ¶ added in v1.9.9
type IngressColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewIngressColl ¶ added in v1.9.9
func NewIngressColl() *IngressColl
func (*IngressColl) GetCollectionName ¶ added in v1.9.9
func (c *IngressColl) GetCollectionName() string
func (*IngressColl) List ¶ added in v1.9.9
func (c *IngressColl) List() ([]*models.EnvIngress, error)
type JenkinsIntegrationColl ¶ added in v1.9.9
type JenkinsIntegrationColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewJenkinsIntegrationColl ¶ added in v1.9.9
func NewJenkinsIntegrationColl() *JenkinsIntegrationColl
func (*JenkinsIntegrationColl) List ¶ added in v1.9.9
func (c *JenkinsIntegrationColl) List() ([]*models.JenkinsIntegration, error)
type K8SClusterColl ¶ added in v1.8.0
type K8SClusterColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewK8SClusterColl ¶ added in v1.8.0
func NewK8SClusterColl() *K8SClusterColl
func (*K8SClusterColl) Create ¶ added in v1.8.0
func (c *K8SClusterColl) Create(cluster *models.K8SCluster, id string) error
func (*K8SClusterColl) Get ¶ added in v1.8.0
func (c *K8SClusterColl) Get(id string) (*models.K8SCluster, error)
func (*K8SClusterColl) GetCollectionName ¶ added in v1.8.0
func (c *K8SClusterColl) GetCollectionName() string
func (*K8SClusterColl) List ¶ added in v1.8.0
func (c *K8SClusterColl) List() ([]*models.K8SCluster, error)
type ListTestOption ¶ added in v1.9.9
type ListTestOption struct { }
type ListWorkflowOption ¶ added in v1.9.9
type ListWorkflowTaskV4Option ¶ added in v1.9.9
type ListWorkflowTaskV4Option struct { }
type OrganizationColl ¶
type OrganizationColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewOrganizationColl ¶
func NewOrganizationColl() *OrganizationColl
func (*OrganizationColl) Get ¶
func (c *OrganizationColl) Get(id int) (*models.Organization, bool, error)
type ProductColl ¶ added in v1.8.0
type ProductColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewProductColl ¶ added in v1.8.0
func NewProductColl() *ProductColl
func (*ProductColl) GetCollectionName ¶ added in v1.8.0
func (c *ProductColl) GetCollectionName() string
func (*ProductColl) List ¶ added in v1.8.0
func (c *ProductColl) List(opt *ProductListOptions) ([]*models.Product, error)
func (*ProductColl) UpdateAllRegistry ¶ added in v1.8.0
func (c *ProductColl) UpdateAllRegistry(envs []*models.Product) error
func (*ProductColl) UpdateProductRender ¶ added in v1.9.9
func (c *ProductColl) UpdateProductRender(product *models.Product) error
type ProductFindOptions ¶ added in v1.8.0
type ProductListOptions ¶ added in v1.8.0
type ProductListOptions struct { EnvName string Name string IsPublic bool ClusterID string IsSortByUpdateTime bool IsSortByProductName bool ExcludeStatus string ExcludeSource string Source string InProjects []string InEnvs []string }
ClusterId is a primitive.ObjectID{}.Hex()
type ProjectClusterRelationColl ¶ added in v1.8.0
type ProjectClusterRelationColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewProjectClusterRelationColl ¶ added in v1.8.0
func NewProjectClusterRelationColl() *ProjectClusterRelationColl
func (*ProjectClusterRelationColl) Create ¶ added in v1.8.0
func (c *ProjectClusterRelationColl) Create(args *models.ProjectClusterRelation) error
func (*ProjectClusterRelationColl) GetCollectionName ¶ added in v1.8.0
func (c *ProjectClusterRelationColl) GetCollectionName() string
type ProjectColl ¶ added in v1.8.0
type ProjectColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewProjectColl ¶ added in v1.8.0
func NewProjectColl() *ProjectColl
func (*ProjectColl) GetCollectionName ¶ added in v1.8.0
func (c *ProjectColl) GetCollectionName() string
type PvcColl ¶ added in v1.9.9
type PvcColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewPvcColl ¶ added in v1.9.9
func NewPvcColl() *PvcColl
func (*PvcColl) GetCollectionName ¶ added in v1.9.9
type RegistryNamespaceColl ¶ added in v1.8.0
type RegistryNamespaceColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewRegistryNamespaceColl ¶ added in v1.8.0
func NewRegistryNamespaceColl() *RegistryNamespaceColl
func (*RegistryNamespaceColl) EnsureIndex ¶ added in v1.8.0
func (r *RegistryNamespaceColl) EnsureIndex(ctx context.Context) error
func (*RegistryNamespaceColl) Find ¶ added in v1.8.0
func (r *RegistryNamespaceColl) Find(opt *FindRegOps) (*models.RegistryNamespace, error)
func (*RegistryNamespaceColl) FindAll ¶ added in v1.8.0
func (r *RegistryNamespaceColl) FindAll(opt *FindRegOps) ([]*models.RegistryNamespace, error)
func (*RegistryNamespaceColl) GetCollectionName ¶ added in v1.8.0
func (r *RegistryNamespaceColl) GetCollectionName() string
type RenderSetColl ¶ added in v1.9.9
type RenderSetColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewRenderSetColl ¶ added in v1.9.9
func NewRenderSetColl() *RenderSetColl
func (*RenderSetColl) Find ¶ added in v1.9.9
func (c *RenderSetColl) Find(opt *RenderSetFindOption) (*models.RenderSet, error)
func (*RenderSetColl) FindRenderSet ¶ added in v1.9.9
func (c *RenderSetColl) FindRenderSet(opt *RenderSetFindOption) (*models.RenderSet, bool, error)
func (*RenderSetColl) GetCollectionName ¶ added in v1.9.9
func (c *RenderSetColl) GetCollectionName() string
func (*RenderSetColl) Update ¶ added in v1.9.9
func (c *RenderSetColl) Update(args *models.RenderSet) error
func (*RenderSetColl) UpdateDefaultValues ¶ added in v1.9.9
func (c *RenderSetColl) UpdateDefaultValues(renderSet *models.RenderSet) error
type RenderSetFindOption ¶ added in v1.9.9
type RenderSetFindOption struct { // if Revision == 0 then search max revision of RenderSet ProductTmpl string EnvName string IsDefault bool Revision int64 Name string YamlVariableSetID string }
RenderSetFindOption ...
type RenderSetListOption ¶ added in v1.9.9
type RenderSetListOption struct { // if Revision == 0 then search max revision of RenderSet ProductTmpl string Revisions []int64 RendersetName string FindOpts []RenderSetFindOption }
type RenderSetPipeResp ¶ added in v1.9.9
type ScanningColl ¶ added in v1.9.9
type ScanningColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewScanningColl ¶ added in v1.9.9
func NewScanningColl() *ScanningColl
func (*ScanningColl) List ¶ added in v1.9.9
func (c *ScanningColl) List(opt *ScanningListOption) ([]*models.Scanning, error)
type ScanningListOption ¶ added in v1.9.9
type ScanningListOption struct { }
type SecretColl ¶ added in v1.9.9
type SecretColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewSecretColl ¶ added in v1.9.9
func NewSecretColl() *SecretColl
func (*SecretColl) GetCollectionName ¶ added in v1.9.9
func (c *SecretColl) GetCollectionName() string
type TestingColl ¶ added in v1.9.9
type TestingColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewTestingColl ¶ added in v1.9.9
func NewTestingColl() *TestingColl
func (*TestingColl) GetCollectionName ¶ added in v1.9.9
func (c *TestingColl) GetCollectionName() string
func (*TestingColl) List ¶ added in v1.9.9
func (c *TestingColl) List(opt *ListTestOption) ([]*models.Testing, error)
type WorkflowColl ¶ added in v1.9.9
type WorkflowColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewWorkflowColl ¶ added in v1.9.9
func NewWorkflowColl() *WorkflowColl
func (*WorkflowColl) GetCollectionName ¶ added in v1.9.9
func (c *WorkflowColl) GetCollectionName() string
func (*WorkflowColl) List ¶ added in v1.9.9
func (c *WorkflowColl) List(opt *ListWorkflowOption) ([]*models.Workflow, error)
type WorkflowTaskV4Coll ¶ added in v1.9.9
type WorkflowTaskV4Coll struct { *mongo.Collection // contains filtered or unexported fields }
func NewWorkflowTaskV4Coll ¶ added in v1.9.9
func NewWorkflowTaskV4Coll() *WorkflowTaskV4Coll
func (*WorkflowTaskV4Coll) GetCollectionName ¶ added in v1.9.9
func (c *WorkflowTaskV4Coll) GetCollectionName() string
func (*WorkflowTaskV4Coll) List ¶ added in v1.9.9
func (c *WorkflowTaskV4Coll) List() ([]*models.WorkflowTask, error)
Click to show internal directories.
Click to hide internal directories.