usecases

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: Apache-2.0 Imports: 19 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 DoFn added in v0.9.11

type DoFn func(ctx context.Context, work *builder.Context, logger *zerolog.Logger) error

Do function is what the above defined Task understands and will execute. This type may itself run tasks which may be scheduled for execution.

type Task added in v0.9.11

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

Task processes parts or all of the infrastructure as specified in the passed in builder.Context. Any partial state change that the task does, should be reflected in the passed in builder.Context.

type Usecases

type Usecases struct {
	// Manager client to perform tasks related to manager
	Manager managerclient.ClientAPI
	// 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) TaskProcessor added in v0.9.0

func (u *Usecases) TaskProcessor(ctx context.Context, wg *sync.WaitGroup) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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