service

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 5 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) CheckUserCanSubsribe

func (r *CloudService) CheckUserCanSubsribe(user types.Account, cid string) (
	p domain.PodInfo, ok bool, err error,
)

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 string,
) (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