Documentation ¶
Overview ¶
Package catalog_manager is a generated GoMock package.
Package catalog_manager is a generated GoMock package.
Package catalog_manager is a generated GoMock package.
*
- Copyright 2021 Napptive *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- https://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
Package catalog_manager is a generated GoMock package.
Index ¶
- func Mock()
- type Handler
- func (h *Handler) Add(server grpc_catalog_go.Catalog_AddServer) error
- func (h *Handler) Download(request *grpc_catalog_go.DownloadApplicationRequest, ...) error
- func (h *Handler) Info(ctx context.Context, request *grpc_catalog_go.InfoApplicationRequest) (*grpc_catalog_go.InfoApplicationResponse, error)
- func (h *Handler) List(ctx context.Context, request *grpc_catalog_go.ListApplicationsRequest) (*grpc_catalog_go.ApplicationList, error)
- func (h *Handler) Remove(ctx context.Context, request *grpc_catalog_go.RemoveApplicationRequest) (*grpc_catalog_common_go.OpResponse, error)
- func (h *Handler) Summary(ctx context.Context, request *grpc_catalog_common_go.EmptyRequest) (*grpc_catalog_go.SummaryResponse, error)
- type Manager
- type MockCatalog_AddServer
- func (m *MockCatalog_AddServer) Context() context.Context
- func (m *MockCatalog_AddServer) EXPECT() *MockCatalog_AddServerMockRecorder
- func (m *MockCatalog_AddServer) Recv() (*grpc_catalog_go.AddApplicationRequest, error)
- func (m *MockCatalog_AddServer) RecvMsg(arg0 interface{}) error
- func (m *MockCatalog_AddServer) SendAndClose(arg0 *grpc_catalog_common_go.OpResponse) error
- func (m *MockCatalog_AddServer) SendHeader(arg0 metadata.MD) error
- func (m *MockCatalog_AddServer) SendMsg(arg0 interface{}) error
- func (m *MockCatalog_AddServer) SetHeader(arg0 metadata.MD) error
- func (m *MockCatalog_AddServer) SetTrailer(arg0 metadata.MD)
- type MockCatalog_AddServerMockRecorder
- func (mr *MockCatalog_AddServerMockRecorder) Context() *gomock.Call
- func (mr *MockCatalog_AddServerMockRecorder) Recv() *gomock.Call
- func (mr *MockCatalog_AddServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
- func (mr *MockCatalog_AddServerMockRecorder) SendAndClose(arg0 interface{}) *gomock.Call
- func (mr *MockCatalog_AddServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
- func (mr *MockCatalog_AddServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
- func (mr *MockCatalog_AddServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
- func (mr *MockCatalog_AddServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
- type MockManager
- func (m *MockManager) Add(arg0 string, arg1 []*entities.FileInfo) error
- func (m *MockManager) Download(arg0 string, arg1 bool) ([]*entities.FileInfo, error)
- func (m *MockManager) EXPECT() *MockManagerMockRecorder
- func (m *MockManager) Get(arg0 string) (*entities.ExtendedApplicationMetadata, error)
- func (m *MockManager) List(arg0 string) ([]*entities.AppSummary, error)
- func (m *MockManager) Remove(arg0 string) error
- func (m *MockManager) Summary() (*entities.Summary, error)
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) Download(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) List(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) Remove(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) Summary() *gomock.Call
- 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 NewHandler(manager Manager, authEnabled bool, teamConfig config.TeamConfig) *Handler
func (*Handler) Add ¶
func (h *Handler) Add(server grpc_catalog_go.Catalog_AddServer) error
Add a new application in the catalog
func (*Handler) Download ¶
func (h *Handler) Download(request *grpc_catalog_go.DownloadApplicationRequest, server grpc_catalog_go.Catalog_DownloadServer) error
Download an application from catalog
func (*Handler) Info ¶
func (h *Handler) Info(ctx context.Context, request *grpc_catalog_go.InfoApplicationRequest) (*grpc_catalog_go.InfoApplicationResponse, error)
Info returns the detail of a given application
func (*Handler) List ¶
func (h *Handler) List(ctx context.Context, request *grpc_catalog_go.ListApplicationsRequest) (*grpc_catalog_go.ApplicationList, error)
List returns a list with all the applications
func (*Handler) Remove ¶
func (h *Handler) Remove(ctx context.Context, request *grpc_catalog_go.RemoveApplicationRequest) (*grpc_catalog_common_go.OpResponse, error)
Remove an application from the catalog
func (*Handler) Summary ¶
func (h *Handler) Summary(ctx context.Context, request *grpc_catalog_common_go.EmptyRequest) (*grpc_catalog_go.SummaryResponse, error)
type Manager ¶
type Manager interface { // Add Adds a new application in the repository. Add(requestedAppID string, files []*entities.FileInfo) error // Download returns the files of an application Download(requestedAppID string, compressed bool) ([]*entities.FileInfo, error) // Remove removes an application from the repository Remove(requestedAppID string) error // Get returns a given application metadata Get(requestedAppID string) (*entities.ExtendedApplicationMetadata, error) // List returns a list of applications (without metadata and readme content) List(namespace string) ([]*entities.AppSummary, error) // Summary returns catalog summary Summary() (*entities.Summary, error) }
func NewManager ¶
func NewManager(stManager storage.StorageManager, provider metadata.MetadataProvider, catalogURL string) Manager
NewManager returns a new object of manager
type MockCatalog_AddServer ¶
type MockCatalog_AddServer struct {
// contains filtered or unexported fields
}
MockCatalog_AddServer is a mock of Catalog_AddServer interface
func NewMockCatalog_AddServer ¶
func NewMockCatalog_AddServer(ctrl *gomock.Controller) *MockCatalog_AddServer
NewMockCatalog_AddServer creates a new mock instance
func (*MockCatalog_AddServer) Context ¶
func (m *MockCatalog_AddServer) Context() context.Context
Context mocks base method
func (*MockCatalog_AddServer) EXPECT ¶
func (m *MockCatalog_AddServer) EXPECT() *MockCatalog_AddServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCatalog_AddServer) Recv ¶
func (m *MockCatalog_AddServer) Recv() (*grpc_catalog_go.AddApplicationRequest, error)
Recv mocks base method
func (*MockCatalog_AddServer) RecvMsg ¶
func (m *MockCatalog_AddServer) RecvMsg(arg0 interface{}) error
RecvMsg mocks base method
func (*MockCatalog_AddServer) SendAndClose ¶
func (m *MockCatalog_AddServer) SendAndClose(arg0 *grpc_catalog_common_go.OpResponse) error
SendAndClose mocks base method
func (*MockCatalog_AddServer) SendHeader ¶
func (m *MockCatalog_AddServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method
func (*MockCatalog_AddServer) SendMsg ¶
func (m *MockCatalog_AddServer) SendMsg(arg0 interface{}) error
SendMsg mocks base method
func (*MockCatalog_AddServer) SetHeader ¶
func (m *MockCatalog_AddServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method
func (*MockCatalog_AddServer) SetTrailer ¶
func (m *MockCatalog_AddServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method
type MockCatalog_AddServerMockRecorder ¶
type MockCatalog_AddServerMockRecorder struct {
// contains filtered or unexported fields
}
MockCatalog_AddServerMockRecorder is the mock recorder for MockCatalog_AddServer
func (*MockCatalog_AddServerMockRecorder) Context ¶
func (mr *MockCatalog_AddServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context
func (*MockCatalog_AddServerMockRecorder) Recv ¶
func (mr *MockCatalog_AddServerMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv
func (*MockCatalog_AddServerMockRecorder) RecvMsg ¶
func (mr *MockCatalog_AddServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg
func (*MockCatalog_AddServerMockRecorder) SendAndClose ¶
func (mr *MockCatalog_AddServerMockRecorder) SendAndClose(arg0 interface{}) *gomock.Call
SendAndClose indicates an expected call of SendAndClose
func (*MockCatalog_AddServerMockRecorder) SendHeader ¶
func (mr *MockCatalog_AddServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
SendHeader indicates an expected call of SendHeader
func (*MockCatalog_AddServerMockRecorder) SendMsg ¶
func (mr *MockCatalog_AddServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg
func (*MockCatalog_AddServerMockRecorder) SetHeader ¶
func (mr *MockCatalog_AddServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
SetHeader indicates an expected call of SetHeader
func (*MockCatalog_AddServerMockRecorder) SetTrailer ¶
func (mr *MockCatalog_AddServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
SetTrailer indicates an expected call of SetTrailer
type MockManager ¶
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface
func NewMockManager ¶
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance
func (*MockManager) Add ¶
func (m *MockManager) Add(arg0 string, arg1 []*entities.FileInfo) error
Add mocks base method
func (*MockManager) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockManager) Get ¶
func (m *MockManager) Get(arg0 string) (*entities.ExtendedApplicationMetadata, error)
Get mocks base method
func (*MockManager) List ¶
func (m *MockManager) List(arg0 string) ([]*entities.AppSummary, error)
List mocks base method
func (*MockManager) Remove ¶
func (m *MockManager) Remove(arg0 string) error
Remove mocks base method
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager
func (*MockManagerMockRecorder) Add ¶
func (mr *MockManagerMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockManagerMockRecorder) Download ¶
func (mr *MockManagerMockRecorder) Download(arg0, arg1 interface{}) *gomock.Call
Download indicates an expected call of Download
func (*MockManagerMockRecorder) Get ¶
func (mr *MockManagerMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockManagerMockRecorder) List ¶
func (mr *MockManagerMockRecorder) List(arg0 interface{}) *gomock.Call
List indicates an expected call of List
func (*MockManagerMockRecorder) Remove ¶
func (mr *MockManagerMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove
func (*MockManagerMockRecorder) Summary ¶
func (mr *MockManagerMockRecorder) Summary() *gomock.Call
Summary indicates an expected call of Summary
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