cluster

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params added in v0.0.15

type Params struct {
	fx.In

	LC fx.Lifecycle

	Logger       *slog.Logger
	Config       *config.Config
	DB           *database.DB
	RabbitClient *rabbitmq.Client
	Notifier     notification.Notifier
	Provider     *hetzner.Provider
}

type Service

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

func NewService

func NewService(p Params) (*Service, error)

func (*Service) BuildCluster

func (s *Service) BuildCluster(ctx context.Context, customer *models.Customer, providerID uuid.UUID) (*models.Cluster, error)

func (*Service) DeleteCluster added in v0.0.10

func (s *Service) DeleteCluster(ctx context.Context, clusterID uuid.UUID) error

func (*Service) GetCluster

func (s *Service) GetCluster(ctx context.Context, ID uuid.UUID) (*models.Cluster, error)

func (*Service) Listen

func (s *Service) Listen(ctx context.Context)

func (*Service) ResumeCluster

func (s *Service) ResumeCluster(ctx context.Context, clusterID uuid.UUID) error

Jump to

Keyboard shortcuts

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