queues

package
v0.0.0-...-f432a95 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Infrastructure

type Infrastructure interface{}

type InfrastructureQueue

type InfrastructureQueue[T Infrastructure] []InfrastructureQueueSteps[T]

InfrastructureQueue represents the queue used by cloud providers to modify an infrastructure in an ordered manner.

A queue is defined as a two dimensional slice where each element is a slice of steps that will run at the same time.

Example: [[funcA1, funcA2, funcA3], [funcB1, funcB2]] will run funcA1, funcA2, and funcA3 at the same time, BEFORE executing funcB1 and funcB2 also at the same time.

func (InfrastructureQueue[T]) Run

func (queue InfrastructureQueue[T]) Run(infrastructure T) error

type InfrastructureQueueStep

type InfrastructureQueueStep[T Infrastructure] func(infrastructure T) error

type InfrastructureQueueSteps

type InfrastructureQueueSteps[T Infrastructure] []InfrastructureQueueStep[T]

Jump to

Keyboard shortcuts

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