usecases

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrFailedToBuildInfrastructure is returned when the infra fails to build in terraformer
	// including any partial failures.
	ErrFailedToBuildInfrastructure = errors.New("failed to successfully build desired state")
)

Functions

This section is empty.

Types

type Usecases

type Usecases struct {
	// ContextBox connector to perform tasks related to Context-box
	ContextBox ports.ContextBoxPort
	// Terraformer connector to perform tasks related to Terraformer
	Terraformer ports.TerraformerPort
	// Ansibler connector to perform tasks related to Ansibler
	Ansibler ports.AnsiblerPort
	// KubeEleven connector to perform tasks related to KubeEleven
	KubeEleven ports.KubeElevenPort
	// Kuber connector to perform tasks related to Kuber
	Kuber ports.KuberPort
}

func (*Usecases) ConfigProcessor

func (u *Usecases) ConfigProcessor(wg *sync.WaitGroup) error

ConfigProcessor will fetch new configs from the context-box service. 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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