plan

package
v0.0.0-...-09efcc3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewLoggerFactory

func NewLoggerFactory() *log.Factory

Types

type Service

type Service struct {
	Handle            *globaldb.Handle
	Store             *plan.Store
	ConfigSourceStore *configsource.Store
	Clock             clock.Clock
}

func NewService

func NewService(pool *db.Pool, databaseCredentials *config.DatabaseCredentials) *Service

func (*Service) CreatePlan

func (s *Service) CreatePlan(ctx context.Context, name string) error

func (Service) GetDatabaseSourceByAppID

func (s Service) GetDatabaseSourceByAppID(ctx context.Context, appID string) (consrc *configsource.DatabaseSource, err error)

func (*Service) GetPlan

func (s *Service) GetPlan(ctx context.Context, name string) (p *plan.Plan, err error)

func (Service) UpdateAppFeatureConfig

func (s Service) UpdateAppFeatureConfig(ctx context.Context, appID string, featureConfigYAML []byte, planName string) (err error)

func (Service) UpdateAppPlan

func (s Service) UpdateAppPlan(ctx context.Context, appID string, planName string) error

func (Service) UpdatePlan

func (s Service) UpdatePlan(ctx context.Context, name string, featureConfigYAML []byte) (appIDs []string, err error)

UpdatePlan update the plan feature config and also the app which have tha same plan name, returns the updated app IDs

Jump to

Keyboard shortcuts

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