catalog_manager

package
v1.0.0-rc12 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mock

func Mock()

Mock is a place holder to unify all mock generators.

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

Add a new application in the catalog

func (*Handler) Download

Download an application from catalog

func (*Handler) Info

Info returns the detail of a given application

func (*Handler) List

List returns a list with all the applications

func (*Handler) Remove

Remove an application from the catalog

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

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

func (*MockCatalog_AddServer) Recv

Recv mocks base method

func (*MockCatalog_AddServer) RecvMsg

func (m *MockCatalog_AddServer) RecvMsg(arg0 interface{}) error

RecvMsg mocks base method

func (*MockCatalog_AddServer) SendAndClose

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

Context indicates an expected call of Context

func (*MockCatalog_AddServerMockRecorder) Recv

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

func (m *MockManager) Download(arg0 string, arg1 bool) ([]*entities.FileInfo, error)

Download 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

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

func (*MockManager) Summary

func (m *MockManager) Summary() (*entities.Summary, error)

Summary 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

Add mocks base method

func (*MockMetadataProvider) EXPECT

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

func (*MockMetadataProvider) Exists

Exists mocks base method

func (*MockMetadataProvider) Get

Get mocks base method

func (*MockMetadataProvider) GetSummary

func (m *MockMetadataProvider) GetSummary() (*entities.Summary, error)

GetSummary mocks base method

func (*MockMetadataProvider) List

List mocks base method

func (*MockMetadataProvider) ListSummary

func (m *MockMetadataProvider) ListSummary(arg0 string) ([]*entities.AppSummary, error)

ListSummary mocks base method

func (*MockMetadataProvider) Remove

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

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

Jump to

Keyboard shortcuts

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