Documentation ¶
Index ¶
- type CloudService
- func (r *CloudService) CheckUserCanSubscribe(user types.Account, cid string) (p domain.PodInfo, ok bool, err error)
- func (r *CloudService) CheckWhitelistItems(isSingleCard bool, items []userdomain.WhiteListInfo) bool
- func (r *CloudService) HasHolding(user types.Account, c *domain.CloudConf) (bool, error)
- func (r *CloudService) SubscribeCloud(c *domain.CloudConf, u types.Account, imageAlias domain.CloudImageAlias, ...) (err error)
- func (r *CloudService) ToCloud(c *domain.Cloud) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudService ¶
type CloudService struct {
// contains filtered or unexported fields
}
func NewCloudService ¶
func NewCloudService( pod repository.Pod, sender message.CloudMessageProducer, ) CloudService
func (*CloudService) CheckUserCanSubscribe ¶ added in v1.3.1
func (*CloudService) CheckWhitelistItems ¶ added in v1.3.0
func (r *CloudService) CheckWhitelistItems(isSingleCard bool, items []userdomain.WhiteListInfo) bool
CheckWhitelistItems returns whether whitelist items are enabled based on isSingleCard. It will return true if isSingleCard is true and one of items is enabled, or check whether multi-cloud whitelist is enabled
func (*CloudService) HasHolding ¶
func (*CloudService) SubscribeCloud ¶
func (r *CloudService) SubscribeCloud( c *domain.CloudConf, u types.Account, imageAlias domain.CloudImageAlias, cardsNum domain.CloudSpecCardsNum, ) (err error)
Click to show internal directories.
Click to hide internal directories.