service

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 (r *CloudService) CheckUserCanSubscribe(user types.Account, cid string) (
	p domain.PodInfo, ok bool, err error,
)

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 (r *CloudService) HasHolding(user types.Account, c *domain.CloudConf) (bool, error)

func (*CloudService) SubscribeCloud

func (r *CloudService) SubscribeCloud(
	c *domain.CloudConf, u types.Account, imageAlias domain.CloudImageAlias, cardsNum domain.CloudSpecCardsNum,
) (err error)

func (*CloudService) ToCloud

func (r *CloudService) ToCloud(c *domain.Cloud) (err error)

Jump to

Keyboard shortcuts

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