stack

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseStack

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

BaseStack is a struct that implements the Stack interface.

func NewBaseStack

func NewBaseStack(injector di.Injector) *BaseStack

NewBaseStack creates a new base stack of components.

func (*BaseStack) Initialize

func (s *BaseStack) Initialize() error

Initialize initializes the stack of components.

func (*BaseStack) Up

func (s *BaseStack) Up() error

Up creates a new stack of components.

type MockStack

type MockStack struct {
	BaseStack
	InitializeFunc func() error
	UpFunc         func() error
}

MockStack is a mock implementation of the Stack interface for testing purposes

func NewMockStack

func NewMockStack(injector di.Injector) *MockStack

NewMockStack creates a new instance of MockStack

func (*MockStack) Initialize

func (m *MockStack) Initialize() error

Initialize calls the mock InitializeFunc if set, otherwise returns nil

func (*MockStack) Up

func (m *MockStack) Up() error

Up calls the mock UpFunc if set, otherwise returns nil

type Stack

type Stack interface {
	Initialize() error
	Up() error
}

Stack is an interface that represents a stack of components.

type WindsorStack

type WindsorStack struct {
	BaseStack
}

WindsorStack is a struct that implements the Stack interface.

func NewWindsorStack

func NewWindsorStack(injector di.Injector) *WindsorStack

NewWindsorStack creates a new WindsorStack.

func (*WindsorStack) Up

func (s *WindsorStack) Up() error

Up creates a new stack of components.

Jump to

Keyboard shortcuts

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