Documentation
¶
Overview ¶
Package account 账号逻辑封装
Index ¶
- type CloudAccount
- func (a *CloudAccount) Create(orgID int64, createReq *apistructs.CloudAccountCreateRequest) (*apistructs.CloudAccountInfo, error)
- func (a *CloudAccount) Delete(orgID, accountID int64) error
- func (a *CloudAccount) GetByID(orgID, accountID int64) (*apistructs.CloudAccountAllInfo, error)
- func (a *CloudAccount) ListByOrgID(orgID int64) ([]apistructs.CloudAccountInfo, error)
- func (a *CloudAccount) Update(orgID, accountID int64, updateReq *apistructs.CloudAccountUpdateRequest) (*apistructs.CloudAccountInfo, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudAccount ¶
type CloudAccount struct {
// contains filtered or unexported fields
}
CloudAccount 账号逻辑封装
func (*CloudAccount) Create ¶
func (a *CloudAccount) Create(orgID int64, createReq *apistructs.CloudAccountCreateRequest) (*apistructs.CloudAccountInfo, error)
Create 创建账号
func (*CloudAccount) Delete ¶
func (a *CloudAccount) Delete(orgID, accountID int64) error
Delete 删除云账号
func (*CloudAccount) GetByID ¶
func (a *CloudAccount) GetByID(orgID, accountID int64) (*apistructs.CloudAccountAllInfo, error)
Get 获取云账号
func (*CloudAccount) ListByOrgID ¶
func (a *CloudAccount) ListByOrgID(orgID int64) ([]apistructs.CloudAccountInfo, error)
List 列出云账号
func (*CloudAccount) Update ¶
func (a *CloudAccount) Update(orgID, accountID int64, updateReq *apistructs.CloudAccountUpdateRequest) (*apistructs.CloudAccountInfo, error)
Update 跟新账号
Click to show internal directories.
Click to hide internal directories.