Documentation ¶
Overview ¶
Package admin is a generated GoMock package.
Package admin is a generated GoMock package.
Index ¶
- func Mock()
- type Handler
- type Manager
- type MockMetadataProvider
- func (m *MockMetadataProvider) Add(arg0 *entities.ApplicationInfo) (*entities.ApplicationInfo, error)
- func (m *MockMetadataProvider) EXPECT() *MockMetadataProviderMockRecorder
- func (m *MockMetadataProvider) Exists(arg0 *entities.ApplicationID) (bool, error)
- func (m *MockMetadataProvider) Get(arg0 entities.ApplicationID) (*entities.ApplicationInfo, error)
- func (m *MockMetadataProvider) GetSummary() (*entities.Summary, error)
- func (m *MockMetadataProvider) List(arg0 string) ([]*entities.ApplicationInfo, error)
- func (m *MockMetadataProvider) ListSummary(arg0 string) ([]*entities.AppSummary, error)
- func (m *MockMetadataProvider) Remove(arg0 *entities.ApplicationID) error
- type MockMetadataProviderMockRecorder
- func (mr *MockMetadataProviderMockRecorder) Add(arg0 interface{}) *gomock.Call
- func (mr *MockMetadataProviderMockRecorder) Exists(arg0 interface{}) *gomock.Call
- func (mr *MockMetadataProviderMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockMetadataProviderMockRecorder) GetSummary() *gomock.Call
- func (mr *MockMetadataProviderMockRecorder) List(arg0 interface{}) *gomock.Call
- func (mr *MockMetadataProviderMockRecorder) ListSummary(arg0 interface{}) *gomock.Call
- func (mr *MockMetadataProviderMockRecorder) Remove(arg0 interface{}) *gomock.Call
- type MockStorageManager
- func (m *MockStorageManager) ApplicationExists(arg0, arg1, arg2 string) (bool, error)
- func (m *MockStorageManager) CreateRepository(arg0 string) error
- func (m *MockStorageManager) EXPECT() *MockStorageManagerMockRecorder
- func (m *MockStorageManager) GetApplication(arg0, arg1, arg2 string, arg3 bool) ([]*entities.FileInfo, error)
- func (m *MockStorageManager) RemoveApplication(arg0, arg1, arg2 string) error
- func (m *MockStorageManager) RemoveRepository(arg0 string) error
- func (m *MockStorageManager) RepositoryExists(arg0 string) (bool, error)
- func (m *MockStorageManager) StoreApplication(arg0, arg1, arg2 string, arg3 []*entities.FileInfo) error
- type MockStorageManagerMockRecorder
- func (mr *MockStorageManagerMockRecorder) ApplicationExists(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageManagerMockRecorder) CreateRepository(arg0 interface{}) *gomock.Call
- func (mr *MockStorageManagerMockRecorder) GetApplication(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockStorageManagerMockRecorder) RemoveApplication(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageManagerMockRecorder) RemoveRepository(arg0 interface{}) *gomock.Call
- func (mr *MockStorageManagerMockRecorder) RepositoryExists(arg0 interface{}) *gomock.Call
- func (mr *MockStorageManagerMockRecorder) StoreApplication(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) Delete ¶
func (h *Handler) Delete(_ context.Context, request *grpc_catalog_go.DeleteNamespaceRequest) (*grpc_catalog_common_go.OpResponse, error)
Delete a namespace so that the applications contained on it are not longer available.
type Manager ¶
type Manager interface { // DeleteNamespace deletes a namespace so that the applications contained on it are not longer available. DeleteNamespace(namespace string) error }
func NewManager ¶
func NewManager(stManager storage.StorageManager, metadataProvider metadata.MetadataProvider) Manager
type MockMetadataProvider ¶
type MockMetadataProvider struct {
// contains filtered or unexported fields
}
MockMetadataProvider is a mock of MetadataProvider interface
func NewMockMetadataProvider ¶
func NewMockMetadataProvider(ctrl *gomock.Controller) *MockMetadataProvider
NewMockMetadataProvider creates a new mock instance
func (*MockMetadataProvider) Add ¶
func (m *MockMetadataProvider) Add(arg0 *entities.ApplicationInfo) (*entities.ApplicationInfo, error)
Add mocks base method
func (*MockMetadataProvider) EXPECT ¶
func (m *MockMetadataProvider) EXPECT() *MockMetadataProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMetadataProvider) Exists ¶
func (m *MockMetadataProvider) Exists(arg0 *entities.ApplicationID) (bool, error)
Exists mocks base method
func (*MockMetadataProvider) Get ¶
func (m *MockMetadataProvider) Get(arg0 entities.ApplicationID) (*entities.ApplicationInfo, error)
Get mocks base method
func (*MockMetadataProvider) GetSummary ¶
func (m *MockMetadataProvider) GetSummary() (*entities.Summary, error)
GetSummary mocks base method
func (*MockMetadataProvider) List ¶
func (m *MockMetadataProvider) List(arg0 string) ([]*entities.ApplicationInfo, error)
List mocks base method
func (*MockMetadataProvider) ListSummary ¶
func (m *MockMetadataProvider) ListSummary(arg0 string) ([]*entities.AppSummary, error)
ListSummary mocks base method
func (*MockMetadataProvider) Remove ¶
func (m *MockMetadataProvider) Remove(arg0 *entities.ApplicationID) error
Remove mocks base method
type MockMetadataProviderMockRecorder ¶
type MockMetadataProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockMetadataProviderMockRecorder is the mock recorder for MockMetadataProvider
func (*MockMetadataProviderMockRecorder) Add ¶
func (mr *MockMetadataProviderMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockMetadataProviderMockRecorder) Exists ¶
func (mr *MockMetadataProviderMockRecorder) Exists(arg0 interface{}) *gomock.Call
Exists indicates an expected call of Exists
func (*MockMetadataProviderMockRecorder) Get ¶
func (mr *MockMetadataProviderMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockMetadataProviderMockRecorder) GetSummary ¶
func (mr *MockMetadataProviderMockRecorder) GetSummary() *gomock.Call
GetSummary indicates an expected call of GetSummary
func (*MockMetadataProviderMockRecorder) List ¶
func (mr *MockMetadataProviderMockRecorder) List(arg0 interface{}) *gomock.Call
List indicates an expected call of List
func (*MockMetadataProviderMockRecorder) ListSummary ¶
func (mr *MockMetadataProviderMockRecorder) ListSummary(arg0 interface{}) *gomock.Call
ListSummary indicates an expected call of ListSummary
func (*MockMetadataProviderMockRecorder) Remove ¶
func (mr *MockMetadataProviderMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove
type MockStorageManager ¶
type MockStorageManager struct {
// contains filtered or unexported fields
}
MockStorageManager is a mock of StorageManager interface
func NewMockStorageManager ¶
func NewMockStorageManager(ctrl *gomock.Controller) *MockStorageManager
NewMockStorageManager creates a new mock instance
func (*MockStorageManager) ApplicationExists ¶
func (m *MockStorageManager) ApplicationExists(arg0, arg1, arg2 string) (bool, error)
ApplicationExists mocks base method
func (*MockStorageManager) CreateRepository ¶
func (m *MockStorageManager) CreateRepository(arg0 string) error
CreateRepository mocks base method
func (*MockStorageManager) EXPECT ¶
func (m *MockStorageManager) EXPECT() *MockStorageManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockStorageManager) GetApplication ¶
func (m *MockStorageManager) GetApplication(arg0, arg1, arg2 string, arg3 bool) ([]*entities.FileInfo, error)
GetApplication mocks base method
func (*MockStorageManager) RemoveApplication ¶
func (m *MockStorageManager) RemoveApplication(arg0, arg1, arg2 string) error
RemoveApplication mocks base method
func (*MockStorageManager) RemoveRepository ¶
func (m *MockStorageManager) RemoveRepository(arg0 string) error
RemoveRepository mocks base method
func (*MockStorageManager) RepositoryExists ¶
func (m *MockStorageManager) RepositoryExists(arg0 string) (bool, error)
RepositoryExists mocks base method
func (*MockStorageManager) StoreApplication ¶
func (m *MockStorageManager) StoreApplication(arg0, arg1, arg2 string, arg3 []*entities.FileInfo) error
StoreApplication mocks base method
type MockStorageManagerMockRecorder ¶
type MockStorageManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageManagerMockRecorder is the mock recorder for MockStorageManager
func (*MockStorageManagerMockRecorder) ApplicationExists ¶
func (mr *MockStorageManagerMockRecorder) ApplicationExists(arg0, arg1, arg2 interface{}) *gomock.Call
ApplicationExists indicates an expected call of ApplicationExists
func (*MockStorageManagerMockRecorder) CreateRepository ¶
func (mr *MockStorageManagerMockRecorder) CreateRepository(arg0 interface{}) *gomock.Call
CreateRepository indicates an expected call of CreateRepository
func (*MockStorageManagerMockRecorder) GetApplication ¶
func (mr *MockStorageManagerMockRecorder) GetApplication(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetApplication indicates an expected call of GetApplication
func (*MockStorageManagerMockRecorder) RemoveApplication ¶
func (mr *MockStorageManagerMockRecorder) RemoveApplication(arg0, arg1, arg2 interface{}) *gomock.Call
RemoveApplication indicates an expected call of RemoveApplication
func (*MockStorageManagerMockRecorder) RemoveRepository ¶
func (mr *MockStorageManagerMockRecorder) RemoveRepository(arg0 interface{}) *gomock.Call
RemoveRepository indicates an expected call of RemoveRepository
func (*MockStorageManagerMockRecorder) RepositoryExists ¶
func (mr *MockStorageManagerMockRecorder) RepositoryExists(arg0 interface{}) *gomock.Call
RepositoryExists indicates an expected call of RepositoryExists
func (*MockStorageManagerMockRecorder) StoreApplication ¶
func (mr *MockStorageManagerMockRecorder) StoreApplication(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
StoreApplication indicates an expected call of StoreApplication