stack_mgr

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package stack_mgr is a generated GoMock package.

Package stack_mgr is a generated GoMock package.

Index

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) Apply

func (m *MockStackIface) Apply() error

Apply mocks base method.

func (*MockStackIface) Destroy

func (m *MockStackIface) Destroy() error

Destroy mocks base method.

func (*MockStackIface) EXPECT

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStackServiceIface) GetConfig

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

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

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 (*Stack) Apply

func (s *Stack) Apply(wait bool) error

func (*Stack) Destroy

func (s *Stack) Destroy() error

func (*Stack) GetName

func (s *Stack) GetName() string

func (*Stack) GetOutputs

func (s *Stack) GetOutputs() (map[string]string, error)

func (*Stack) GetStatus

func (s *Stack) GetStatus() string

func (*Stack) Meta

func (s *Stack) Meta() (*StackMeta, error)

func (*Stack) PrintOutputs

func (s *Stack) PrintOutputs()

func (*Stack) SetMeta

func (s *Stack) SetMeta(meta *StackMeta)

type StackIface

type StackIface interface {
	GetName() string
	SetMeta(meta *StackMeta)
	Meta() (*StackMeta, error)
	GetStatus() string
	GetOutputs() (map[string]string, error)
	Apply() error
	Destroy() error
	PrintOutputs()
}

type StackMeta

type StackMeta struct {
	DataMap map[string]string
	TagMap  map[string]string
	// contains filtered or unexported fields
}

func (*StackMeta) GetParameters

func (s *StackMeta) GetParameters() map[string]string

func (*StackMeta) GetTags

func (s *StackMeta) GetTags() map[string]string

func (*StackMeta) Load

func (s *StackMeta) Load(existingTags map[string]string) error

func (*StackMeta) Update

func (s *StackMeta) Update(newTag 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(config config.HappyConfigIface, paramStore backend.ParamStoreBackend, workspaceRepo workspace_repo.WorkspaceRepoIface) *StackService

func (*StackService) Add

func (s *StackService) Add(stackName string) (*Stack, error)

func (*StackService) GetConfig

func (s *StackService) GetConfig() config.HappyConfigIface

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) GetStacks

func (s *StackService) GetStacks() (map[string]*Stack, error)

func (*StackService) NewStackMeta

func (s *StackService) NewStackMeta(stackName string) *StackMeta

func (*StackService) Remove

func (s *StackService) Remove(stackName string) error

type StackServiceIface

type StackServiceIface interface {
	NewStackMeta(stackName string) *StackMeta
	Add(stackName string) (*Stack, error)
	Remove(stack_name string) error
	GetStacks() (map[string]*Stack, error)
	GetStackWorkspace(stackName string) (workspace_repo.Workspace, error)
	GetConfig() config.HappyConfigIface
}

Jump to

Keyboard shortcuts

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