Documentation ¶
Overview ¶
Package stack_mgr is a generated GoMock package.
Package stack_mgr is a generated GoMock package.
Index ¶
- type MockStackIface
- func (m *MockStackIface) Apply() error
- func (m *MockStackIface) Destroy() error
- func (m *MockStackIface) EXPECT() *MockStackIfaceMockRecorder
- func (m *MockStackIface) GetMeta() (*StackMeta, error)
- func (m *MockStackIface) GetName() string
- func (m *MockStackIface) GetOutputs() (map[string]string, error)
- func (m *MockStackIface) GetStatus() string
- func (m *MockStackIface) PrintOutputs() string
- func (m *MockStackIface) SetMeta(arg0 *StackMeta)
- type MockStackIfaceMockRecorder
- func (mr *MockStackIfaceMockRecorder) Apply() *gomock.Call
- func (mr *MockStackIfaceMockRecorder) Destroy() *gomock.Call
- func (mr *MockStackIfaceMockRecorder) GetMeta() *gomock.Call
- func (mr *MockStackIfaceMockRecorder) GetName() *gomock.Call
- func (mr *MockStackIfaceMockRecorder) GetOutputs() *gomock.Call
- func (mr *MockStackIfaceMockRecorder) GetStatus() *gomock.Call
- func (mr *MockStackIfaceMockRecorder) PrintOutputs() *gomock.Call
- func (mr *MockStackIfaceMockRecorder) SetMeta(arg0 interface{}) *gomock.Call
- type MockStackServiceIface
- func (m *MockStackServiceIface) Add(arg0 string) (*Stack, error)
- func (m *MockStackServiceIface) EXPECT() *MockStackServiceIfaceMockRecorder
- func (m *MockStackServiceIface) GetConfig() config.HappyConfig
- func (m *MockStackServiceIface) GetStackWorkspace(arg0 string) (workspace_repo.Workspace, error)
- func (m *MockStackServiceIface) GetStacks() (map[string]*Stack, error)
- func (m *MockStackServiceIface) NewStackMeta(arg0 string) *StackMeta
- func (m *MockStackServiceIface) Remove(arg0 string) error
- type MockStackServiceIfaceMockRecorder
- func (mr *MockStackServiceIfaceMockRecorder) Add(arg0 interface{}) *gomock.Call
- func (mr *MockStackServiceIfaceMockRecorder) GetConfig() *gomock.Call
- func (mr *MockStackServiceIfaceMockRecorder) GetStackWorkspace(arg0 interface{}) *gomock.Call
- func (mr *MockStackServiceIfaceMockRecorder) GetStacks() *gomock.Call
- func (mr *MockStackServiceIfaceMockRecorder) NewStackMeta(arg0 interface{}) *gomock.Call
- func (mr *MockStackServiceIfaceMockRecorder) Remove(arg0 interface{}) *gomock.Call
- type Stack
- func (s *Stack) Apply(waitOptions options.WaitOptions) error
- func (s *Stack) Destroy() error
- func (s *Stack) GetName() string
- func (s *Stack) GetOutputs() (map[string]string, error)
- func (s *Stack) GetStatus() string
- func (s *Stack) Meta() (*StackMeta, error)
- func (s *Stack) PrintOutputs()
- func (s *Stack) SetMeta(meta *StackMeta)
- func (s *Stack) Wait(waitOptions options.WaitOptions) error
- type StackIface
- type StackMeta
- type StackRepository
- type StackService
- func (s *StackService) Add(ctx context.Context, stackName string) (*Stack, error)
- func (s *StackService) GetConfig() *config.HappyConfig
- func (s *StackService) GetStack(stackName string) *Stack
- func (s *StackService) GetStackWorkspace(stackName string) (workspace_repo.Workspace, error)
- func (s *StackService) GetStacks(ctx context.Context) (map[string]*Stack, error)
- func (s *StackService) NewStackMeta(stackName string) *StackMeta
- func (s *StackService) Remove(ctx context.Context, stackName string) error
- type StackServiceIface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStackIface ¶
type MockStackIface struct {
// contains filtered or unexported fields
}
MockStackIface is a mock of StackIface interface.
func NewMockStackIface ¶
func NewMockStackIface(ctrl *gomock.Controller) *MockStackIface
NewMockStackIface creates a new mock instance.
func (*MockStackIface) Destroy ¶
func (m *MockStackIface) Destroy() error
Destroy mocks base method.
func (*MockStackIface) EXPECT ¶
func (m *MockStackIface) EXPECT() *MockStackIfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStackIface) GetMeta ¶
func (m *MockStackIface) GetMeta() (*StackMeta, error)
GetMeta mocks base method.
func (*MockStackIface) GetName ¶
func (m *MockStackIface) GetName() string
GetName mocks base method.
func (*MockStackIface) GetOutputs ¶
func (m *MockStackIface) GetOutputs() (map[string]string, error)
GetOutputs mocks base method.
func (*MockStackIface) GetStatus ¶
func (m *MockStackIface) GetStatus() string
GetStatus mocks base method.
func (*MockStackIface) PrintOutputs ¶
func (m *MockStackIface) PrintOutputs() string
PrintOutputs mocks base method.
func (*MockStackIface) SetMeta ¶
func (m *MockStackIface) SetMeta(arg0 *StackMeta)
SetMeta mocks base method.
type MockStackIfaceMockRecorder ¶
type MockStackIfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockStackIfaceMockRecorder is the mock recorder for MockStackIface.
func (*MockStackIfaceMockRecorder) Apply ¶
func (mr *MockStackIfaceMockRecorder) Apply() *gomock.Call
Apply indicates an expected call of Apply.
func (*MockStackIfaceMockRecorder) Destroy ¶
func (mr *MockStackIfaceMockRecorder) Destroy() *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockStackIfaceMockRecorder) GetMeta ¶
func (mr *MockStackIfaceMockRecorder) GetMeta() *gomock.Call
GetMeta indicates an expected call of GetMeta.
func (*MockStackIfaceMockRecorder) GetName ¶
func (mr *MockStackIfaceMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockStackIfaceMockRecorder) GetOutputs ¶
func (mr *MockStackIfaceMockRecorder) GetOutputs() *gomock.Call
GetOutputs indicates an expected call of GetOutputs.
func (*MockStackIfaceMockRecorder) GetStatus ¶
func (mr *MockStackIfaceMockRecorder) GetStatus() *gomock.Call
GetStatus indicates an expected call of GetStatus.
func (*MockStackIfaceMockRecorder) PrintOutputs ¶
func (mr *MockStackIfaceMockRecorder) PrintOutputs() *gomock.Call
PrintOutputs indicates an expected call of PrintOutputs.
func (*MockStackIfaceMockRecorder) SetMeta ¶
func (mr *MockStackIfaceMockRecorder) SetMeta(arg0 interface{}) *gomock.Call
SetMeta indicates an expected call of SetMeta.
type MockStackServiceIface ¶
type MockStackServiceIface struct {
// contains filtered or unexported fields
}
MockStackServiceIface is a mock of StackServiceIface interface.
func NewMockStackServiceIface ¶
func NewMockStackServiceIface(ctrl *gomock.Controller) *MockStackServiceIface
NewMockStackServiceIface creates a new mock instance.
func (*MockStackServiceIface) Add ¶
func (m *MockStackServiceIface) Add(arg0 string) (*Stack, error)
Add mocks base method.
func (*MockStackServiceIface) EXPECT ¶
func (m *MockStackServiceIface) EXPECT() *MockStackServiceIfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStackServiceIface) GetConfig ¶
func (m *MockStackServiceIface) GetConfig() config.HappyConfig
GetConfig mocks base method.
func (*MockStackServiceIface) GetStackWorkspace ¶
func (m *MockStackServiceIface) GetStackWorkspace(arg0 string) (workspace_repo.Workspace, error)
GetStackWorkspace mocks base method.
func (*MockStackServiceIface) GetStacks ¶
func (m *MockStackServiceIface) GetStacks() (map[string]*Stack, error)
GetStacks mocks base method.
func (*MockStackServiceIface) NewStackMeta ¶
func (m *MockStackServiceIface) NewStackMeta(arg0 string) *StackMeta
NewStackMeta mocks base method.
func (*MockStackServiceIface) Remove ¶
func (m *MockStackServiceIface) Remove(arg0 string) error
Remove mocks base method.
type MockStackServiceIfaceMockRecorder ¶
type MockStackServiceIfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockStackServiceIfaceMockRecorder is the mock recorder for MockStackServiceIface.
func (*MockStackServiceIfaceMockRecorder) Add ¶
func (mr *MockStackServiceIfaceMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockStackServiceIfaceMockRecorder) GetConfig ¶
func (mr *MockStackServiceIfaceMockRecorder) GetConfig() *gomock.Call
GetConfig indicates an expected call of GetConfig.
func (*MockStackServiceIfaceMockRecorder) GetStackWorkspace ¶
func (mr *MockStackServiceIfaceMockRecorder) GetStackWorkspace(arg0 interface{}) *gomock.Call
GetStackWorkspace indicates an expected call of GetStackWorkspace.
func (*MockStackServiceIfaceMockRecorder) GetStacks ¶
func (mr *MockStackServiceIfaceMockRecorder) GetStacks() *gomock.Call
GetStacks indicates an expected call of GetStacks.
func (*MockStackServiceIfaceMockRecorder) NewStackMeta ¶
func (mr *MockStackServiceIfaceMockRecorder) NewStackMeta(arg0 interface{}) *gomock.Call
NewStackMeta indicates an expected call of NewStackMeta.
func (*MockStackServiceIfaceMockRecorder) Remove ¶
func (mr *MockStackServiceIfaceMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove.
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
func NewStack ¶ added in v0.4.0
func NewStack( name string, service StackServiceIface, dirProcessor util.DirProcessor, ) *Stack
func (*Stack) PrintOutputs ¶
func (s *Stack) PrintOutputs()
type StackIface ¶
type StackMeta ¶
type StackMeta struct { StackName string Priority int DataMap map[string]string TagMap map[string]string ParamMap map[string]string }
func (*StackMeta) GetParameters ¶
func (*StackMeta) Update ¶
func (s *StackMeta) Update(ctx context.Context, newTag string, stackTags map[string]string, sliceName string, stackSvc *StackService) error
Update the image tag with the given newTag, and set the priority randomly. To not collide, setting priority requirs knowing the the priority of all other stacks from the StackMgr
type StackRepository ¶
type StackRepository struct { }
type StackService ¶
type StackService struct {
// contains filtered or unexported fields
}
func NewStackService ¶
func NewStackService(backend *backend.Backend, workspaceRepo workspace_repo.WorkspaceRepoIface) *StackService
func (*StackService) GetConfig ¶
func (s *StackService) GetConfig() *config.HappyConfig
func (*StackService) GetStack ¶
func (s *StackService) GetStack(stackName string) *Stack
func (*StackService) GetStackWorkspace ¶
func (s *StackService) GetStackWorkspace(stackName string) (workspace_repo.Workspace, error)
pre-format stack name and call workspaceRepo's GetWorkspace method
func (*StackService) NewStackMeta ¶
func (s *StackService) NewStackMeta(stackName string) *StackMeta
type StackServiceIface ¶
type StackServiceIface interface { NewStackMeta(stackName string) *StackMeta Add(ctx context.Context, stackName string) (*Stack, error) Remove(ctx context.Context, stack_name string) error GetStacks(ctx context.Context) (map[string]*Stack, error) GetStackWorkspace(stackName string) (workspace_repo.Workspace, error) GetConfig() *config.HappyConfig }