{"modulePath":"github.com/windsorcli/cli","version":"v0.1.5","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package stack\n\n## Types\n\n```go\ntype BaseStack struct {\n\t// contains filtered or unexported fields\n}\n```\nBaseStack is a struct that implements the Stack interface.\n\n```go\nfunc NewBaseStack(injector di.Injector) *BaseStack\n```\nNewBaseStack creates a new base stack of components.\n\n```go\nfunc (s *BaseStack) Initialize() error\n```\nInitialize initializes the stack of components.\n\n```go\nfunc (s *BaseStack) Up() error\n```\nUp creates a new stack of components.\n\n```go\ntype MockStack struct {\n\tBaseStack\n\tInitializeFunc func() error\n\tUpFunc         func() error\n}\n```\nMockStack is a mock implementation of the Stack interface for testing purposes\n\n```go\nfunc NewMockStack(injector di.Injector) *MockStack\n```\nNewMockStack creates a new instance of MockStack\n\n```go\nfunc (m *MockStack) Initialize() error\n```\nInitialize calls the mock InitializeFunc if set, otherwise returns nil\n\n```go\nfunc (m *MockStack) Up() error\n```\nUp calls the mock UpFunc if set, otherwise returns nil\n\n```go\ntype Stack interface {\n\tInitialize() error\n\tUp() error\n}\n```\nStack is an interface that represents a stack of components.\n\n```go\ntype WindsorStack struct {\n\tBaseStack\n}\n```\nWindsorStack is a struct that implements the Stack interface.\n\n```go\nfunc NewWindsorStack(injector di.Injector) *WindsorStack\n```\nNewWindsorStack creates a new WindsorStack.\n\n```go\nfunc (s *WindsorStack) Up() error\n```\nUp creates a new stack of components.\n\n","path":"github.com/windsorcli/cli/internal/stack","name":"stack","synopsis":"","isRedistributable":true}
