data

package
v0.0.0-...-5381133 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Package data

  • Copyright 2024-2025 Bilibili Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccountRepo

func NewAccountRepo(db *biz.DB) biz.AccountRepo

NewAccountRepo 初始化云账号DB

func NewChargeTypeRepo

func NewChargeTypeRepo(db *biz.DB) biz.ChargeTypeRepo

NewChargeTypeRepo 初始化计费方式DB

func NewCloudProjectRepo

func NewCloudProjectRepo(db *biz.DB) biz.CloudProjectRepo

NewCloudProjectRepo 初始化云项目DB

func NewCloudRegionAssociationRepo

func NewCloudRegionAssociationRepo(db *biz.DB) biz.CloudRegionAssociationRepo

NewCloudRegionAssociationRepo 初始化云地域关联关系数据DB

func NewCloudRegionRepo

func NewCloudRegionRepo(db *biz.DB) biz.CloudRegionRepo

NewCloudRegionRepo 初始化云地域DB

func NewCloudSecurityGroupRepo

func NewCloudSecurityGroupRepo(db *biz.DB) biz.CloudSecurityGroupRepo

NewCloudSecurityGroupRepo 初始化云安全组数据DB

func NewCloudServerImageRepo

func NewCloudServerImageRepo(db *biz.DB) biz.CloudServerImageRepo

NewCloudServerImageRepo 初始化云镜像DB

func NewCloudServerRepo

func NewCloudServerRepo(db *biz.DB) biz.CloudServerRepo

NewCloudServerRepo 初始化云服务器DB

func NewCloudServerSpecRepo

func NewCloudServerSpecRepo(db *biz.DB) biz.CloudServerSpecRepo

NewCloudServerSpecRepo 初始化云服务器规格DB

func NewCloudSubnetRepo

func NewCloudSubnetRepo(db *biz.DB) biz.CloudSubnetRepo

NewCloudSubnetRepo 初始化云子网DB

func NewCloudVpcRepo

func NewCloudVpcRepo(db *biz.DB) biz.CloudVpcRepo

NewCloudVpcRepo 初始化云专有网路DB

func NewCloudZoneRepo

func NewCloudZoneRepo(db *biz.DB) biz.CloudZoneRepo

NewCloudZoneRepo 初始化云可用区DB

func NewDiskTypeRepo

func NewDiskTypeRepo(db *biz.DB) biz.DiskTypeRepo

NewDiskTypeRepo 初始化数据盘类型DB

func NewFormTemplateRepo

func NewFormTemplateRepo(db *biz.DB) biz.FormTemplateRepo

NewFormTemplateRepo 初始化表单模版数据DB

func NewJobRepo

func NewJobRepo(db *biz.DB) biz.JobRepo

NewJobRepo 初始化任务DB

func NewProjectAccountConfigRepo

func NewProjectAccountConfigRepo(db *biz.DB) biz.ProjectAccountConfigRepo

NewProjectAccountConfigRepo 初始化云账号和本地项目关联关系DB

func NewProjectConfigRepo

func NewProjectConfigRepo(db *biz.DB) biz.ProjectConfigRepo

NewProjectConfigRepo 初始化本地项目DB

func NewProjectUserConfigRepo

func NewProjectUserConfigRepo(db *biz.DB) biz.ProjectUserConfigRepo

NewProjectUserConfigRepo 实例化项目用户关联关系DB

func NewProviderRepo

func NewProviderRepo(db *biz.DB) biz.ProviderRepo

NewProviderRepo 初始化厂商DB

func NewTerraformRepo

func NewTerraformRepo(db *biz.DB) biz.TerraformRepo

NewTerraformRepo 初始化terraform模版数据DB

func NewUserRepo

func NewUserRepo(db *biz.DB) biz.UserRepo

NewUserRepo 初始化用户DB

Types

type AccountRepo

type AccountRepo struct {
	// contains filtered or unexported fields
}

AccountRepo 云账号DB

func (*AccountRepo) CountAccount

func (c *AccountRepo) CountAccount(where *biz.AccountWhere) (total int64, err error)

CountAccount 账号查询数量

func (*AccountRepo) CreateAccount

func (c *AccountRepo) CreateAccount(create []*biz.Account) (list []*biz.Account, err error)

CreateAccount 账号创建

func (*AccountRepo) DeleteAccount

func (c *AccountRepo) DeleteAccount(softDelete int, deleteID []int) error

DeleteAccount 账号删除

func (*AccountRepo) ParseAccount

func (c *AccountRepo) ParseAccount(where *biz.AccountWhere) (conditions map[string]interface{}, err error)

ParseAccount 账号查询条件处理

func (*AccountRepo) QueryAccount

func (c *AccountRepo) QueryAccount(where *biz.AccountWhere, output *biz.AccountOutput) (list []*biz.Account, err error)

QueryAccount 账号查询

func (*AccountRepo) UpdateAccount

func (c *AccountRepo) UpdateAccount(where *biz.AccountWhere, update *biz.Account) error

UpdateAccount 账号更新

func (*AccountRepo) UpsertAccount

func (c *AccountRepo) UpsertAccount(upsert []*biz.AccountUpsert) error

UpsertAccount 账号更新或创建

type ChargeTypeRepo

type ChargeTypeRepo struct {
	// contains filtered or unexported fields
}

ChargeTypeRepo 计费方式DB

func (*ChargeTypeRepo) CountChargeType

func (c *ChargeTypeRepo) CountChargeType(where *biz.ChargeTypeWhere) (total int64, err error)

CountChargeType 查询计费方式数量

func (*ChargeTypeRepo) CreateChargeType

func (c *ChargeTypeRepo) CreateChargeType(create []*biz.ChargeType) (list []*biz.ChargeType, err error)

CreateChargeType 创建计费方式

func (*ChargeTypeRepo) DeleteChargeType

func (c *ChargeTypeRepo) DeleteChargeType(deleteID []int) error

DeleteChargeType 删除计费方式

func (*ChargeTypeRepo) ParseChargeType

func (c *ChargeTypeRepo) ParseChargeType(where *biz.ChargeTypeWhere) (conditions map[string]interface{}, err error)

ParseChargeType 计费方式查询条件处理

func (*ChargeTypeRepo) QueryChargeType

func (c *ChargeTypeRepo) QueryChargeType(where *biz.ChargeTypeWhere, output *biz.ChargeTypeOutput) (list []*biz.ChargeType, err error)

QueryChargeType 查询计费方式

func (*ChargeTypeRepo) UpdateChargeType

func (c *ChargeTypeRepo) UpdateChargeType(where *biz.ChargeTypeWhere, update *biz.ChargeType) error

UpdateChargeType 更新计费方式

func (*ChargeTypeRepo) UpsertChargeType

func (c *ChargeTypeRepo) UpsertChargeType(upsert []*biz.ChargeTypeUpsert) error

UpsertChargeType 计费方式更新或创建

type CloudProjectRepo

type CloudProjectRepo struct {
	// contains filtered or unexported fields
}

CloudProjectRepo 云项目DB

func (*CloudProjectRepo) CountCloudProject

func (c *CloudProjectRepo) CountCloudProject(where *biz.CloudProjectWhere) (total int64, err error)

CountCloudProject 云项目查询数量

func (*CloudProjectRepo) CreateCloudProject

func (c *CloudProjectRepo) CreateCloudProject(create []*biz.CloudProject) (list []*biz.CloudProject, err error)

CreateCloudProject 云项目创建

func (*CloudProjectRepo) DeleteCloudProject

func (c *CloudProjectRepo) DeleteCloudProject(deleteID []int) error

DeleteCloudProject 云项目删除

func (*CloudProjectRepo) ParseCloudProject

func (c *CloudProjectRepo) ParseCloudProject(where *biz.CloudProjectWhere) (conditions map[string]interface{}, err error)

ParseCloudProject 云项目查询条件处理

func (*CloudProjectRepo) QueryCloudProject

func (c *CloudProjectRepo) QueryCloudProject(where *biz.CloudProjectWhere, output *biz.CloudProjectOutput) (list []*biz.CloudProject, err error)

QueryCloudProject 云项目查询

func (*CloudProjectRepo) UpdateCloudProject

func (c *CloudProjectRepo) UpdateCloudProject(where *biz.CloudProjectWhere, update *biz.CloudProject) error

UpdateCloudProject 云项目更新

func (*CloudProjectRepo) UpsertCloudProject

func (c *CloudProjectRepo) UpsertCloudProject(upsert []*biz.CloudProjectUpsert) error

UpsertCloudProject 云项目更新或创建

type CloudRegionAssociationRepo

type CloudRegionAssociationRepo struct {
	// contains filtered or unexported fields
}

CloudRegionAssociationRepo 云地域关联关系数据DB

func (*CloudRegionAssociationRepo) CreateCloudRegionAssociation

func (c *CloudRegionAssociationRepo) CreateCloudRegionAssociation(create []*biz.CloudRegionAssociation) (list []*biz.CloudRegionAssociation, err error)

CreateCloudRegionAssociation 云地域关联关系创建

func (*CloudRegionAssociationRepo) DeleteCloudRegionAssociation

func (c *CloudRegionAssociationRepo) DeleteCloudRegionAssociation(deleteID []int) error

DeleteCloudRegionAssociation 云地域关联关系删除

func (*CloudRegionAssociationRepo) ParseCloudRegionAssociation

func (c *CloudRegionAssociationRepo) ParseCloudRegionAssociation(where *biz.CloudRegionAssociationWhere) (conditions map[string]interface{}, err error)

ParseCloudRegionAssociation 云地域关联关系查询条件处理

func (*CloudRegionAssociationRepo) QueryCloudRegionAssociation

func (c *CloudRegionAssociationRepo) QueryCloudRegionAssociation(where *biz.CloudRegionAssociationWhere) (list []*biz.CloudRegionAssociation, err error)

QueryCloudRegionAssociation 云地域关联关系查询

func (*CloudRegionAssociationRepo) UpdateCloudRegionAssociation

func (c *CloudRegionAssociationRepo) UpdateCloudRegionAssociation(where *biz.CloudRegionAssociationWhere, update *biz.CloudRegionAssociation) error

UpdateCloudRegionAssociation 云地域关联关系更新

func (*CloudRegionAssociationRepo) UpsertCloudRegionAssociation

func (c *CloudRegionAssociationRepo) UpsertCloudRegionAssociation(upsert []*biz.CloudRegionAssociationUpsert) error

UpsertCloudRegionAssociation 云地域关联关系更新或创建

type CloudRegionRepo

type CloudRegionRepo struct {
	// contains filtered or unexported fields
}

CloudRegionRepo 云地域DB

func (*CloudRegionRepo) CountCloudRegion

func (c *CloudRegionRepo) CountCloudRegion(where *biz.CloudRegionWhere) (total int64, err error)

CountCloudRegion 云地域查询数量

func (*CloudRegionRepo) CreateCloudRegion

func (c *CloudRegionRepo) CreateCloudRegion(create []*biz.CloudRegion) (list []*biz.CloudRegion, err error)

CreateCloudRegion 云地域创建

func (*CloudRegionRepo) DeleteCloudRegion

func (c *CloudRegionRepo) DeleteCloudRegion(deleteID []int) error

DeleteCloudRegion 云地域删除

func (*CloudRegionRepo) ParseCloudRegion

func (c *CloudRegionRepo) ParseCloudRegion(where *biz.CloudRegionWhere) (conditions map[string]interface{}, err error)

ParseCloudRegion 云地域查询条件处理

func (*CloudRegionRepo) QueryCloudRegion

func (c *CloudRegionRepo) QueryCloudRegion(where *biz.CloudRegionWhere, output *biz.CloudRegionOutput) (list []*biz.CloudRegion, err error)

QueryCloudRegion 云地域查询

func (*CloudRegionRepo) UpdateCloudRegion

func (c *CloudRegionRepo) UpdateCloudRegion(where *biz.CloudRegionWhere, update *biz.CloudRegion) error

UpdateCloudRegion 云地域更新

func (*CloudRegionRepo) UpsertCloudRegion

func (c *CloudRegionRepo) UpsertCloudRegion(upsert []*biz.CloudRegionUpsert) error

UpsertCloudRegion 云地域更新或创建

type CloudSecurityGroupRepo

type CloudSecurityGroupRepo struct {
	// contains filtered or unexported fields
}

CloudSecurityGroupRepo 云安全组数据DB

func (*CloudSecurityGroupRepo) CountCloudSecurityGroup

func (c *CloudSecurityGroupRepo) CountCloudSecurityGroup(where *biz.CloudSecurityGroupWhere) (total int64, err error)

CountCloudSecurityGroup 云安全组查询数量

func (*CloudSecurityGroupRepo) CreateCloudSecurityGroup

func (c *CloudSecurityGroupRepo) CreateCloudSecurityGroup(create []*biz.CloudSecurityGroup) (list []*biz.CloudSecurityGroup, err error)

CreateCloudSecurityGroup 云安全组创建

func (*CloudSecurityGroupRepo) DeleteCloudSecurityGroup

func (c *CloudSecurityGroupRepo) DeleteCloudSecurityGroup(deleteID []int) error

DeleteCloudSecurityGroup 云安全组删除

func (*CloudSecurityGroupRepo) ParseCloudSecurityGroup

func (c *CloudSecurityGroupRepo) ParseCloudSecurityGroup(where *biz.CloudSecurityGroupWhere) (conditions map[string]interface{}, err error)

ParseCloudSecurityGroup 云安全组查询条件处理

func (*CloudSecurityGroupRepo) QueryCloudSecurityGroup

func (c *CloudSecurityGroupRepo) QueryCloudSecurityGroup(where *biz.CloudSecurityGroupWhere, output *biz.CloudSecurityGroupOutput) (list []*biz.CloudSecurityGroup, err error)

QueryCloudSecurityGroup 云安全组查询

func (*CloudSecurityGroupRepo) UpdateCloudSecurityGroup

func (c *CloudSecurityGroupRepo) UpdateCloudSecurityGroup(where *biz.CloudSecurityGroupWhere, update *biz.CloudSecurityGroup) error

UpdateCloudSecurityGroup 云安全组更新

func (*CloudSecurityGroupRepo) UpsertCloudSecurityGroup

func (c *CloudSecurityGroupRepo) UpsertCloudSecurityGroup(upsert []*biz.CloudSecurityGroupUpsert) error

UpsertCloudSecurityGroup 云安全组更新或创建

type CloudServerImageRepo

type CloudServerImageRepo struct {
	// contains filtered or unexported fields
}

CloudServerImageRepo 云镜像DB

func (*CloudServerImageRepo) CountCloudServerImage

func (c *CloudServerImageRepo) CountCloudServerImage(where *biz.CloudServerImageWhere) (total int64, err error)

CountCloudServerImage 云镜像查询数量

func (*CloudServerImageRepo) CreatBatchesCloudServerImage

func (c *CloudServerImageRepo) CreatBatchesCloudServerImage(create []*biz.CloudServerImage) (list []*biz.CloudServerImage, err error)

CreatBatchesCloudServerImage 云镜像批量创建

func (*CloudServerImageRepo) CreateCloudServerImage

func (c *CloudServerImageRepo) CreateCloudServerImage(create []*biz.CloudServerImage) (list []*biz.CloudServerImage, err error)

CreateCloudServerImage 云镜像创建

func (*CloudServerImageRepo) DeleteCloudServerImage

func (c *CloudServerImageRepo) DeleteCloudServerImage(deleteID []int) error

DeleteCloudServerImage 云镜像删除

func (*CloudServerImageRepo) ParseCloudServerImage

func (c *CloudServerImageRepo) ParseCloudServerImage(where *biz.CloudServerImageWhere) (conditions map[string]interface{}, err error)

ParseCloudServerImage 云镜像查询条件处理

func (*CloudServerImageRepo) QueryCloudServerImage

func (c *CloudServerImageRepo) QueryCloudServerImage(where *biz.CloudServerImageWhere, output *biz.CloudServerImageOutput) (list []*biz.CloudServerImage, err error)

QueryCloudServerImage 云镜像查询

func (*CloudServerImageRepo) UpdateCloudServerImage

func (c *CloudServerImageRepo) UpdateCloudServerImage(where *biz.CloudServerImageWhere, update *biz.CloudServerImage) error

UpdateCloudServerImage 云镜像更新

func (*CloudServerImageRepo) UpsertCloudServerImage

func (c *CloudServerImageRepo) UpsertCloudServerImage(upsert []*biz.CloudServerImageUpsert) error

UpsertCloudServerImage 云镜像更新或创建

type CloudServerRepo

type CloudServerRepo struct {
	// contains filtered or unexported fields
}

CloudServerRepo 云服务器DB

func (*CloudServerRepo) CountCloudServer

func (c *CloudServerRepo) CountCloudServer(where *biz.CloudServerWhere) (total int64, err error)

CountCloudServer 查询云服务器数量

func (*CloudServerRepo) CreateCloudServer

func (c *CloudServerRepo) CreateCloudServer(create []*biz.CloudServer) (list []*biz.CloudServer, err error)

CreateCloudServer 创建云服务器

func (*CloudServerRepo) DeleteCloudServer

func (c *CloudServerRepo) DeleteCloudServer(deleteID []int) error

DeleteCloudServer 删除云服务器

func (*CloudServerRepo) ParseCloudServer

func (c *CloudServerRepo) ParseCloudServer(where *biz.CloudServerWhere) (conditions map[string]interface{}, err error)

ParseCloudServer 云服务器查询条件处理

func (*CloudServerRepo) QueryCloudServer

func (c *CloudServerRepo) QueryCloudServer(where *biz.CloudServerWhere, output *biz.CloudServerOutput) (list []*biz.CloudServer, err error)

QueryCloudServer 查询云服务器

func (*CloudServerRepo) UpdateCloudServer

func (c *CloudServerRepo) UpdateCloudServer(where *biz.CloudServerWhere, update *biz.CloudServer) error

UpdateCloudServer 更新云服务器

func (*CloudServerRepo) UpsertCloudServer

func (c *CloudServerRepo) UpsertCloudServer(upsert []*biz.CloudServerUpsert) error

UpsertCloudServer 云服务器更新或创建

type CloudServerSpecRepo

type CloudServerSpecRepo struct {
	// contains filtered or unexported fields
}

CloudServerSpecRepo 云服务器规格DB

func (*CloudServerSpecRepo) CountCloudServerSpec

func (c *CloudServerSpecRepo) CountCloudServerSpec(where *biz.CloudServerSpecWhere) (total int64, err error)

CountCloudServerSpec 云服务器规格查询数量

func (*CloudServerSpecRepo) CreateCloudServerSpec

func (c *CloudServerSpecRepo) CreateCloudServerSpec(create []*biz.CloudServerSpec) (list []*biz.CloudServerSpec, err error)

CreateCloudServerSpec 云服务器规格创建

func (*CloudServerSpecRepo) DeleteCloudServerSpec

func (c *CloudServerSpecRepo) DeleteCloudServerSpec(deleteID []int) error

DeleteCloudServerSpec 云服务器规格删除

func (*CloudServerSpecRepo) ParseCloudServerSpec

func (c *CloudServerSpecRepo) ParseCloudServerSpec(where *biz.CloudServerSpecWhere) (conditions map[string]interface{}, err error)

ParseCloudServerSpec 云服务器规格查询条件处理

func (*CloudServerSpecRepo) QueryCloudServerSpec

func (c *CloudServerSpecRepo) QueryCloudServerSpec(where *biz.CloudServerSpecWhere, output *biz.CloudServerSpecOutput) (list []*biz.CloudServerSpec, err error)

QueryCloudServerSpec 云服务器规格查询

func (*CloudServerSpecRepo) UpdateCloudServerSpec

func (c *CloudServerSpecRepo) UpdateCloudServerSpec(where *biz.CloudServerSpecWhere, update *biz.CloudServerSpec) error

UpdateCloudServerSpec 云服务器规格更新

func (*CloudServerSpecRepo) UpsertCloudServerSpec

func (c *CloudServerSpecRepo) UpsertCloudServerSpec(upsert []*biz.CloudServerSpecUpsert) error

UpsertCloudServerSpec 云服务器规格更新或创建

type CloudSubnetRepo

type CloudSubnetRepo struct {
	// contains filtered or unexported fields
}

CloudSubnetRepo 云子网DB

func (*CloudSubnetRepo) CountCloudSubnet

func (c *CloudSubnetRepo) CountCloudSubnet(where *biz.CloudSubnetWhere) (total int64, err error)

CountCloudSubnet 云子网查询数量

func (*CloudSubnetRepo) CreateCloudSubnet

func (c *CloudSubnetRepo) CreateCloudSubnet(create []*biz.CloudSubnet) (list []*biz.CloudSubnet, err error)

CreateCloudSubnet 云子网创建

func (*CloudSubnetRepo) DeleteCloudSubnet

func (c *CloudSubnetRepo) DeleteCloudSubnet(deleteID []int) error

DeleteCloudSubnet 云子网删除

func (*CloudSubnetRepo) ParseCloudSubnet

func (c *CloudSubnetRepo) ParseCloudSubnet(where *biz.CloudSubnetWhere) (conditions map[string]interface{}, err error)

ParseCloudSubnet 云子网查询条件处理

func (*CloudSubnetRepo) QueryCloudSubnet

func (c *CloudSubnetRepo) QueryCloudSubnet(where *biz.CloudSubnetWhere, output *biz.CloudSubnetOutput) (list []*biz.CloudSubnet, err error)

QueryCloudSubnet 云子网查询

func (*CloudSubnetRepo) UpdateCloudSubnet

func (c *CloudSubnetRepo) UpdateCloudSubnet(where *biz.CloudSubnetWhere, update *biz.CloudSubnet) error

UpdateCloudSubnet 云子网更新

func (*CloudSubnetRepo) UpsertCloudSubnet

func (c *CloudSubnetRepo) UpsertCloudSubnet(upsert []*biz.CloudSubnetUpsert) error

UpsertCloudSubnet 云子网更新或创建

type CloudVpcRepo

type CloudVpcRepo struct {
	// contains filtered or unexported fields
}

CloudVpcRepo 云专有网络DB

func (*CloudVpcRepo) CountCloudVpc

func (c *CloudVpcRepo) CountCloudVpc(where *biz.CloudVpcWhere) (total int64, err error)

CountCloudVpc 云专有网络查询数量

func (*CloudVpcRepo) CreateCloudVpc

func (c *CloudVpcRepo) CreateCloudVpc(create []*biz.CloudVpc) (list []*biz.CloudVpc, err error)

CreateCloudVpc 云专有网络创建

func (*CloudVpcRepo) DeleteCloudVpc

func (c *CloudVpcRepo) DeleteCloudVpc(deleteID []int) error

DeleteCloudVpc 云专有网络删除

func (*CloudVpcRepo) ParseCloudVpc

func (c *CloudVpcRepo) ParseCloudVpc(where *biz.CloudVpcWhere) (conditions map[string]interface{}, err error)

ParseCloudVpc 云专有网络查询我条件处理

func (*CloudVpcRepo) QueryCloudVpc

func (c *CloudVpcRepo) QueryCloudVpc(where *biz.CloudVpcWhere, output *biz.CloudVpcOutput) (list []*biz.CloudVpc, err error)

QueryCloudVpc 云专有网络查询

func (*CloudVpcRepo) UpdateCloudVpc

func (c *CloudVpcRepo) UpdateCloudVpc(where *biz.CloudVpcWhere, update *biz.CloudVpc) error

UpdateCloudVpc 云专有网络更新

func (*CloudVpcRepo) UpsertCloudVpc

func (c *CloudVpcRepo) UpsertCloudVpc(upsert []*biz.CloudVpcUpsert) error

UpsertCloudVpc 云专有网络更新或创建

type CloudZoneRepo

type CloudZoneRepo struct {
	// contains filtered or unexported fields
}

CloudZoneRepo 云可用区DB

func (*CloudZoneRepo) CountCloudZone

func (c *CloudZoneRepo) CountCloudZone(where *biz.CloudZoneWhere) (total int64, err error)

CountCloudZone 云可用区查询数量

func (*CloudZoneRepo) CreateCloudZone

func (c *CloudZoneRepo) CreateCloudZone(create []*biz.CloudZone) (list []*biz.CloudZone, err error)

CreateCloudZone 云可用区创建

func (*CloudZoneRepo) DeleteCloudZone

func (c *CloudZoneRepo) DeleteCloudZone(deleteID []int) error

DeleteCloudZone 云可用区删除

func (*CloudZoneRepo) ParseCloudZone

func (c *CloudZoneRepo) ParseCloudZone(where *biz.CloudZoneWhere) (conditions map[string]interface{}, err error)

ParseCloudZone 云可用区查询条件处理

func (*CloudZoneRepo) QueryCloudZone

func (c *CloudZoneRepo) QueryCloudZone(where *biz.CloudZoneWhere, output *biz.CloudZoneOutput) (list []*biz.CloudZone, err error)

QueryCloudZone 云可用区查询

func (*CloudZoneRepo) UpdateCloudZone

func (c *CloudZoneRepo) UpdateCloudZone(where *biz.CloudZoneWhere, update *biz.CloudZone) error

UpdateCloudZone 云可用区更新

func (*CloudZoneRepo) UpsertCloudZone

func (c *CloudZoneRepo) UpsertCloudZone(upsert []*biz.CloudZoneUpsert) error

UpsertCloudZone 云可用区更新或创建

type DiskTypeRepo

type DiskTypeRepo struct {
	// contains filtered or unexported fields
}

DiskTypeRepo 数据盘类型DB

func (*DiskTypeRepo) CountDiskType

func (c *DiskTypeRepo) CountDiskType(where *biz.DiskTypeWhere) (total int64, err error)

CountDiskType 数据盘类型查询数量

func (*DiskTypeRepo) CreateDiskType

func (c *DiskTypeRepo) CreateDiskType(create []*biz.DiskType) (list []*biz.DiskType, err error)

CreateDiskType 数据盘类型创建

func (*DiskTypeRepo) DeleteDiskType

func (c *DiskTypeRepo) DeleteDiskType(deleteID []int) error

DeleteDiskType 数据盘类型删除

func (*DiskTypeRepo) ParseDiskType

func (c *DiskTypeRepo) ParseDiskType(where *biz.DiskTypeWhere) (conditions map[string]interface{}, err error)

ParseDiskType 数据盘类型查询条件处理

func (*DiskTypeRepo) QueryDiskType

func (c *DiskTypeRepo) QueryDiskType(where *biz.DiskTypeWhere, output *biz.DiskTypeOutput) (list []*biz.DiskType, err error)

QueryDiskType 数据盘类型查询

func (*DiskTypeRepo) UpdateDiskType

func (c *DiskTypeRepo) UpdateDiskType(where *biz.DiskTypeWhere, update *biz.DiskType) error

UpdateDiskType 数据盘类型更新

func (*DiskTypeRepo) UpsertDiskType

func (c *DiskTypeRepo) UpsertDiskType(upsert []*biz.DiskTypeUpsert) error

UpsertDiskType 数据盘类型更新或创建

type FormTemplateRepo

type FormTemplateRepo struct {
	// contains filtered or unexported fields
}

FormTemplateRepo 表单模版数据DB

func (*FormTemplateRepo) ParseFormTemplate

func (f *FormTemplateRepo) ParseFormTemplate(where *biz.FormTemplateWhere) (conditions map[string]interface{}, err error)

ParseFormTemplate 表单模版数据查询条件处理

func (*FormTemplateRepo) QueryFormTemplate

func (f *FormTemplateRepo) QueryFormTemplate(where *biz.FormTemplateWhere) (list []*biz.FormTemplateData, err error)

QueryFormTemplate 表单模版数据查询

type ProjectAccountConfigRepo

type ProjectAccountConfigRepo struct {
	// contains filtered or unexported fields
}

ProjectAccountConfigRepo 云账号和本地项目关联关系DB

func (*ProjectAccountConfigRepo) CountProjectAccountConfig

func (c *ProjectAccountConfigRepo) CountProjectAccountConfig(where *biz.ProjectAccountConfigWhere) (total int64, err error)

CountProjectAccountConfig 本地项目账号关联关系查询数量

func (*ProjectAccountConfigRepo) CreateProjectAccountConfig

func (c *ProjectAccountConfigRepo) CreateProjectAccountConfig(create []*biz.ProjectAccountConfig) (list []*biz.ProjectAccountConfig, err error)

CreateProjectAccountConfig 本地项目账号关联关系创建

func (*ProjectAccountConfigRepo) DeleteProjectAccountConfig

func (c *ProjectAccountConfigRepo) DeleteProjectAccountConfig(deleteID []int) error

DeleteProjectAccountConfig 本地项目账号关联关系删除

func (*ProjectAccountConfigRepo) ParseProjectAccountConfig

func (c *ProjectAccountConfigRepo) ParseProjectAccountConfig(where *biz.ProjectAccountConfigWhere) (conditions map[string]interface{}, err error)

ParseProjectAccountConfig 本地项目账号关联关系查询条件处理

func (*ProjectAccountConfigRepo) QueryProjectAccountConfig

func (c *ProjectAccountConfigRepo) QueryProjectAccountConfig(where *biz.ProjectAccountConfigWhere, output *biz.ProjectAccountConfigOutput) (list []*biz.ProjectAccountConfig, err error)

QueryProjectAccountConfig 本地项目账号关联关系查询

func (*ProjectAccountConfigRepo) UpdateProjectAccountConfig

func (c *ProjectAccountConfigRepo) UpdateProjectAccountConfig(where *biz.ProjectAccountConfigWhere, update *biz.ProjectAccountConfig) error

UpdateProjectAccountConfig 本地项目账号关联关系更新

func (*ProjectAccountConfigRepo) UpsertProjectAccountConfig

func (c *ProjectAccountConfigRepo) UpsertProjectAccountConfig(upsert []*biz.ProjectAccountConfigUpsert) error

UpsertProjectAccountConfig 本地项目账号关联关系更新或创建

type ProjectConfigRepo

type ProjectConfigRepo struct {
	// contains filtered or unexported fields
}

ProjectConfigRepo 本地项目DB

func (*ProjectConfigRepo) CountProjectConfig

func (c *ProjectConfigRepo) CountProjectConfig(where *biz.ProjectConfigWhere) (total int64, err error)

CountProjectConfig 本地项目查询数量

func (*ProjectConfigRepo) CreateProjectConfig

func (c *ProjectConfigRepo) CreateProjectConfig(create []*biz.ProjectConfig) (list []*biz.ProjectConfig, err error)

CreateProjectConfig 本地项目创建

func (*ProjectConfigRepo) DeleteProjectConfig

func (c *ProjectConfigRepo) DeleteProjectConfig(softDelete int, deleteID []int) error

DeleteProjectConfig 本地项目删除

func (*ProjectConfigRepo) ParesQueryProjectConfigConditions

func (c *ProjectConfigRepo) ParesQueryProjectConfigConditions(conditions map[string]interface{}) map[string]interface{}

ParesQueryProjectConfigConditions 解析查询条件(根据用户筛选)

func (*ProjectConfigRepo) ParseProjectConfig

func (c *ProjectConfigRepo) ParseProjectConfig(where *biz.ProjectConfigWhere) (conditions map[string]interface{}, err error)

ParseProjectConfig 本地项目查询条件处理

func (*ProjectConfigRepo) QueryByRoleProjectUserConfigRelation

func (c *ProjectConfigRepo) QueryByRoleProjectUserConfigRelation(conditions map[string]interface{}) ([]int, error)

QueryByRoleProjectUserConfigRelation 根据已知权限查询用户和项目的关联关系

func (*ProjectConfigRepo) QueryProjectConfig

func (c *ProjectConfigRepo) QueryProjectConfig(where *biz.ProjectConfigWhere, output *biz.ProjectConfigOutput) (list []*biz.ProjectConfig, err error)

QueryProjectConfig 本地项目查询

func (*ProjectConfigRepo) QueryProjectUserConfigRelation

func (c *ProjectConfigRepo) QueryProjectUserConfigRelation(conditions map[string]interface{}, role int) ([]int, error)

QueryProjectUserConfigRelation 查询用户和项目的关联关系

func (*ProjectConfigRepo) UpdateProjectConfig

func (c *ProjectConfigRepo) UpdateProjectConfig(where *biz.ProjectConfigWhere, update *biz.ProjectConfig) error

UpdateProjectConfig 本地项目更新

func (*ProjectConfigRepo) UpsertProjectConfig

func (c *ProjectConfigRepo) UpsertProjectConfig(upsert []*biz.ProjectConfigUpsert) error

UpsertProjectConfig 本地项目更新或创建

type ProjectUserConfigRepo

type ProjectUserConfigRepo struct {
	// contains filtered or unexported fields
}

ProjectUserConfigRepo 本地项目和用户关联关系DB

func (*ProjectUserConfigRepo) CountProjectUserConfig

func (c *ProjectUserConfigRepo) CountProjectUserConfig(where *biz.ProjectUserConfigWhere, group string) (total int64, err error)

CountProjectUserConfig 项目用户关联关系查询数量

func (*ProjectUserConfigRepo) CreateProjectUserConfig

func (c *ProjectUserConfigRepo) CreateProjectUserConfig(create []*biz.ProjectUserConfig) (list []*biz.ProjectUserConfig, err error)

CreateProjectUserConfig 项目用户关联关系创建

func (*ProjectUserConfigRepo) DeleteProjectUserConfig

func (c *ProjectUserConfigRepo) DeleteProjectUserConfig(softDelete int, deleteID []int) error

DeleteProjectUserConfig 项目用户关联关系删除

func (*ProjectUserConfigRepo) DeleteProjectUserConfigByWhere

func (c *ProjectUserConfigRepo) DeleteProjectUserConfigByWhere(where *biz.ProjectUserConfigWhere) error

DeleteProjectUserConfigByWhere 项目用户关联关系删除

func (*ProjectUserConfigRepo) ParseProjectUserConfig

func (c *ProjectUserConfigRepo) ParseProjectUserConfig(where *biz.ProjectUserConfigWhere) (conditions map[string]interface{}, err error)

ParseProjectUserConfig 项目用户关联关系查询条件处理

func (*ProjectUserConfigRepo) QueryProjectUserConfig

func (c *ProjectUserConfigRepo) QueryProjectUserConfig(where *biz.ProjectUserConfigWhere, output *biz.ProjectUserConfigOutput) (list []*biz.ProjectUserConfig, err error)

QueryProjectUserConfig 项目用户关联关系查询

func (*ProjectUserConfigRepo) UpdateProjectUserConfig

func (c *ProjectUserConfigRepo) UpdateProjectUserConfig(where *biz.ProjectUserConfigWhere, update *biz.ProjectUserConfig) error

UpdateProjectUserConfig 项目用户关联关系更新

func (*ProjectUserConfigRepo) UpsertProjectUserConfig

func (c *ProjectUserConfigRepo) UpsertProjectUserConfig(upsert *biz.ProjectUserConfigUpsert) error

UpsertProjectUserConfig 项目用户关联关系更新或创建

type ProviderRepo

type ProviderRepo struct {
	// contains filtered or unexported fields
}

ProviderRepo 厂商DB

func (*ProviderRepo) CountProvider

func (c *ProviderRepo) CountProvider(where *biz.ProviderWhere) (total int64, err error)

CountProvider 厂商查询数量

func (*ProviderRepo) CreateProvider

func (c *ProviderRepo) CreateProvider(create []*biz.Provider) (list []*biz.Provider, err error)

CreateProvider 厂商创建

func (*ProviderRepo) DeleteProvider

func (c *ProviderRepo) DeleteProvider(deleteID []int) error

DeleteProvider 厂商删除

func (*ProviderRepo) ParseProvider

func (c *ProviderRepo) ParseProvider(where *biz.ProviderWhere) (conditions map[string]interface{}, err error)

ParseProvider 厂商查询条件处理

func (*ProviderRepo) QueryProvider

func (c *ProviderRepo) QueryProvider(where *biz.ProviderWhere, output *biz.ProviderOutput) (list []*biz.Provider, err error)

QueryProvider 厂商查询

func (*ProviderRepo) UpdateProvider

func (c *ProviderRepo) UpdateProvider(where *biz.ProviderWhere, update *biz.Provider) error

func (*ProviderRepo) UpsertProvider

func (c *ProviderRepo) UpsertProvider(upsert []*biz.ProviderUpsert) error

UpsertProvider 厂商更新或创建

type StepCreator

type StepCreator struct {
	// contains filtered or unexported fields
}

StepCreator 生成步骤

func NewStepCreator

func NewStepCreator(repo *jobRepo) *StepCreator

NewStepCreator 创建步骤

func (*StepCreator) GetOccupied

func (s *StepCreator) GetOccupied(template, namePrefix string) float64

GetOccupied 获取标题名称

func (*StepCreator) SetOccupied

func (s *StepCreator) SetOccupied(template, namePrefix string, occupied float64)

SetOccupied 设置标题名称

type TerraformRepo

type TerraformRepo struct {
	// contains filtered or unexported fields
}

TerraformRepo terraform模版数据DB

func (*TerraformRepo) CountTerraform

func (c *TerraformRepo) CountTerraform(where *biz.TerraformWhere) (total int64, err error)

CountTerraform terraform模版查询数量

func (*TerraformRepo) CreateTerraform

func (c *TerraformRepo) CreateTerraform(create []*biz.Terraform) (list []*biz.Terraform, err error)

CreateTerraform terraform模版创建

func (*TerraformRepo) DeleteTerraform

func (c *TerraformRepo) DeleteTerraform(deleteID []int) error

DeleteTerraform terraform模版删除

func (*TerraformRepo) ParseTerraform

func (c *TerraformRepo) ParseTerraform(where *biz.TerraformWhere) (conditions map[string]interface{}, err error)

ParseTerraform terraform模版查询条件处理

func (*TerraformRepo) QueryTerraform

func (c *TerraformRepo) QueryTerraform(where *biz.TerraformWhere, output *biz.TerraformOutput) (list []*biz.Terraform, err error)

QueryTerraform terraform模版查询

func (*TerraformRepo) UpdateTerraform

func (c *TerraformRepo) UpdateTerraform(where *biz.TerraformWhere, update *biz.Terraform) error

UpdateTerraform terraform模版更新

func (*TerraformRepo) UpsertTerraform

func (c *TerraformRepo) UpsertTerraform(upsert []*biz.TerraformUpsert) error

UpsertTerraform terraform模版更新或创建

type UserRepo

type UserRepo struct {
	// contains filtered or unexported fields
}

UserRepo 用户DB

func (*UserRepo) CountUser

func (c *UserRepo) CountUser(where *biz.UserWhere) (total int64, err error)

CountUser 用户查询数量

func (*UserRepo) CreateUser

func (c *UserRepo) CreateUser(create []*biz.User) (list []*biz.User, err error)

CreateUser 用户创建

func (*UserRepo) DeleteUser

func (c *UserRepo) DeleteUser(softDelete int, deleteID []int) error

DeleteUser 用户删除

func (*UserRepo) ParseUser

func (c *UserRepo) ParseUser(where *biz.UserWhere) (conditions map[string]interface{}, err error)

ParseUser 用户查询条件处理

func (*UserRepo) QueryUser

func (c *UserRepo) QueryUser(where *biz.UserWhere, output *biz.UserOutput, field string) (list []*biz.User, err error)

QueryUser 用户查询

func (*UserRepo) UpdateUser

func (c *UserRepo) UpdateUser(where *biz.UserWhere, update *biz.User) error

UpdateUser 用户更新

func (*UserRepo) UpsertUser

func (c *UserRepo) UpsertUser(upsert []*biz.UserUpsert) error

UpsertUser 用户更新或创建

Jump to

Keyboard shortcuts

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