mongodb

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func (*BuildColl) List added in v1.9.9

func (c *BuildColl) List(opt *BuildListOption) ([]*models.Build, error)

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 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 FindRegOps added in v1.8.0

type FindRegOps struct {
	ID          string `json:"id"`
	RegAddr     string `json:"reg_addr"`
	RegType     string `json:"reg_type"`
	RegProvider string `json:"reg_provider"`
	IsDefault   bool   `json:"is_default"`
	Namespace   string `json:"namespace"`
}

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 ListArgs

type ListArgs struct {
	Owner   string
	Address string
	Source  string
}

type ListTestOption added in v1.9.9

type ListTestOption struct {
}

type OrganizationColl

type OrganizationColl struct {
	*mongo.Collection
	// contains filtered or unexported fields
}

func NewOrganizationColl

func NewOrganizationColl() *OrganizationColl

func (*OrganizationColl) Get

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) EnsureIndex added in v1.8.0

func (c *ProductColl) EnsureIndex(ctx context.Context) error

func (*ProductColl) Find added in v1.8.0

func (*ProductColl) FindEnv added in v1.8.0

func (c *ProductColl) FindEnv(opt *ProductEnvFindOptions) (*models.Product, error)

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

type ProductEnvFindOptions added in v1.8.0

type ProductEnvFindOptions struct {
	Name      string
	Namespace string
}

type ProductFindOptions added in v1.8.0

type ProductFindOptions struct {
	Name      string
	EnvName   string
	Namespace string
}

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 (*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

func (*ProjectColl) List added in v1.8.0

func (c *ProjectColl) List() ([]*models.Project, error)

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 (*RegistryNamespaceColl) FindAll added in v1.8.0

func (*RegistryNamespaceColl) GetCollectionName added in v1.8.0

func (r *RegistryNamespaceColl) 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)

Jump to

Keyboard shortcuts

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