usecases

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Usecases

type Usecases struct {
	ContextBox ports.ContextBoxPort
}

func (*Usecases) ConfigProcessor

func (u *Usecases) ConfigProcessor(contextBoxGrpcClient pb.ContextBoxServiceClient, waitGroup *sync.WaitGroup) error

ConfigProcessor will fetch new config from the context-box microservice. Each received config will be processed in a separate go-routine. If a sync.WaitGroup is supplied it will call the Add(1) and then the Done() method on it after the go-routine finishes the work, if nil it will be ignored.

func (*Usecases) CreateDesiredState

func (u *Usecases) CreateDesiredState(config *pb.Config) (*pb.Config, error)

CreateDesiredState is a function which creates desired state of the project based on the unmarshalled manifest Returns *pb.Config for desired state if successful, error otherwise

Jump to

Keyboard shortcuts

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