mold

package
v0.0.0-...-994a6d8 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mold is a generated GoMock package.

Package mold is a generated GoMock package.

Package mold is a generated GoMock package.

Package mold is a generated GoMock package.

Package mold is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	Path     string
	Contents string
}

func NewComponent

func NewComponent(path string, contents string) *Component

type Material

type Material interface {
	Parameters() map[string]string
}

type MaterialRequirement

type MaterialRequirement struct {
	// contains filtered or unexported fields
}

func NewMaterialRequirement

func NewMaterialRequirement(name string, description string) *MaterialRequirement

func (*MaterialRequirement) Description

func (m *MaterialRequirement) Description() string

func (*MaterialRequirement) Name

func (m *MaterialRequirement) Name() string

type MaterialService

type MaterialService interface {
	GetMaterial(requirements []*MaterialRequirement) (Material, error)
}

type MockMaterial

type MockMaterial struct {
	// contains filtered or unexported fields
}

MockMaterial is a mock of Material interface

func NewMockMaterial

func NewMockMaterial(ctrl *gomock.Controller) *MockMaterial

NewMockMaterial creates a new mock instance

func (*MockMaterial) EXPECT

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

func (*MockMaterial) Parameters

func (m *MockMaterial) Parameters() map[string]string

Parameters mocks base method

type MockMaterialMockRecorder

type MockMaterialMockRecorder struct {
	// contains filtered or unexported fields
}

MockMaterialMockRecorder is the mock recorder for MockMaterial

func (*MockMaterialMockRecorder) Parameters

func (mr *MockMaterialMockRecorder) Parameters() *gomock.Call

Parameters indicates an expected call of Parameters

type MockMaterialService

type MockMaterialService struct {
	// contains filtered or unexported fields
}

MockMaterialService is a mock of MaterialService interface

func NewMockMaterialService

func NewMockMaterialService(ctrl *gomock.Controller) *MockMaterialService

NewMockMaterialService creates a new mock instance

func (*MockMaterialService) EXPECT

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

func (*MockMaterialService) GetMaterial

func (m *MockMaterialService) GetMaterial(requirements []*MaterialRequirement) (Material, error)

GetMaterial mocks base method

type MockMaterialServiceMockRecorder

type MockMaterialServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockMaterialServiceMockRecorder is the mock recorder for MockMaterialService

func (*MockMaterialServiceMockRecorder) GetMaterial

func (mr *MockMaterialServiceMockRecorder) GetMaterial(requirements interface{}) *gomock.Call

GetMaterial indicates an expected call of GetMaterial

type MockProductService

type MockProductService struct {
	// contains filtered or unexported fields
}

MockProductService is a mock of ProductService interface

func NewMockProductService

func NewMockProductService(ctrl *gomock.Controller) *MockProductService

NewMockProductService creates a new mock instance

func (*MockProductService) EXPECT

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

func (*MockProductService) SaveProduct

func (m *MockProductService) SaveProduct(destDir string, product *Product) error

SaveProduct mocks base method

type MockProductServiceMockRecorder

type MockProductServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockProductServiceMockRecorder is the mock recorder for MockProductService

func (*MockProductServiceMockRecorder) SaveProduct

func (mr *MockProductServiceMockRecorder) SaveProduct(destDir, product interface{}) *gomock.Call

SaveProduct indicates an expected call of SaveProduct

type MockRepository

type MockRepository struct {
	// contains filtered or unexported fields
}

MockRepository is a mock of Repository interface

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance

func (*MockRepository) EXPECT

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

func (*MockRepository) FindByName

func (m *MockRepository) FindByName(name string) (*Mold, error)

FindByName mocks base method

func (*MockRepository) Save

func (m_2 *MockRepository) Save(m *Mold) error

Save mocks base method

type MockRepositoryMockRecorder

type MockRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockRepositoryMockRecorder is the mock recorder for MockRepository

func (*MockRepositoryMockRecorder) FindByName

func (mr *MockRepositoryMockRecorder) FindByName(name interface{}) *gomock.Call

FindByName indicates an expected call of FindByName

func (*MockRepositoryMockRecorder) Save

func (mr *MockRepositoryMockRecorder) Save(m interface{}) *gomock.Call

Save indicates an expected call of Save

type MockService

type MockService struct {
	// contains filtered or unexported fields
}

MockService is a mock of Service interface

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

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

func (*MockService) ImportFrom

func (m *MockService) ImportFrom(path, dstName string) (*Mold, error)

ImportFrom mocks base method

type MockServiceMockRecorder

type MockServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockServiceMockRecorder is the mock recorder for MockService

func (*MockServiceMockRecorder) ImportFrom

func (mr *MockServiceMockRecorder) ImportFrom(path, dstName interface{}) *gomock.Call

ImportFrom indicates an expected call of ImportFrom

type Mold

type Mold struct {
	// contains filtered or unexported fields
}

Mold is aggregation root.

func New

func New(name string, components []*Component, requirements []*MaterialRequirement) *Mold

New creates new Mold instance.

func (*Mold) Components

func (m *Mold) Components() []*Component

func (*Mold) Name

func (m *Mold) Name() string

func (*Mold) Pour

func (m *Mold) Pour(destDir string, material Material) (*Product, error)

func (*Mold) Requirements

func (m *Mold) Requirements() []*MaterialRequirement

type Product

type Product struct {
	// contains filtered or unexported fields
}

func (*Product) Components

func (p *Product) Components() []*ProductComponent

type ProductComponent

type ProductComponent struct {
	// contains filtered or unexported fields
}

func (*ProductComponent) Contents

func (p *ProductComponent) Contents() string

func (*ProductComponent) Path

func (p *ProductComponent) Path() string

type ProductService

type ProductService interface {
	SaveProduct(destDir string, product *Product) error
}

type Repository

type Repository interface {
	Save(m *Mold) error
	FindByName(name string) (*Mold, error)
}

type Service

type Service interface {
	ImportFrom(path string, dstName string) (*Mold, error)
}

Jump to

Keyboard shortcuts

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