Documentation ¶
Overview ¶
Package mock_yamlcreator is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetailConfig ¶
type DetailConfig struct {
Name string `yaml:"name"`
}
DetailConfig sets the default properties to be set replace in each json file
type MockYamlCreator ¶
type MockYamlCreator struct {
// contains filtered or unexported fields
}
MockYamlCreator is a mock of YamlCreator interface
func CreateYamlCreatorMock ¶
func CreateYamlCreatorMock(t *testing.T) *MockYamlCreator
func NewMockYamlCreator ¶
func NewMockYamlCreator(ctrl *gomock.Controller) *MockYamlCreator
NewMockYamlCreator creates a new mock instance
func (*MockYamlCreator) AddConfig ¶
func (m *MockYamlCreator) AddConfig(arg0, arg1 string)
AddConfig mocks base method
func (*MockYamlCreator) CreateYamlFile ¶
func (m *MockYamlCreator) CreateYamlFile(arg0 files.FileCreator, arg1, arg2 string) error
CreateYamlFile mocks base method
func (*MockYamlCreator) EXPECT ¶
func (m *MockYamlCreator) EXPECT() *MockYamlCreatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockYamlCreator) NewYamlConfig ¶
func (m *MockYamlCreator) NewYamlConfig()
NewYamlConfig mocks base method
type MockYamlCreatorMockRecorder ¶
type MockYamlCreatorMockRecorder struct {
// contains filtered or unexported fields
}
MockYamlCreatorMockRecorder is the mock recorder for MockYamlCreator
func (*MockYamlCreatorMockRecorder) AddConfig ¶
func (mr *MockYamlCreatorMockRecorder) AddConfig(arg0, arg1 interface{}) *gomock.Call
AddConfig indicates an expected call of AddConfig
func (*MockYamlCreatorMockRecorder) CreateYamlFile ¶
func (mr *MockYamlCreatorMockRecorder) CreateYamlFile(arg0, arg1, arg2 interface{}) *gomock.Call
CreateYamlFile indicates an expected call of CreateYamlFile
func (*MockYamlCreatorMockRecorder) NewYamlConfig ¶
func (mr *MockYamlCreatorMockRecorder) NewYamlConfig() *gomock.Call
NewYamlConfig indicates an expected call of NewYamlConfig
type YamlConfig ¶
type YamlConfig struct { Config []map[string]string Detail map[string][]DetailConfig `yaml:",inline"` }
YamlConfig defines the structure for the config file for each API
func NewYamlConfig ¶
func NewYamlConfig() *YamlConfig
NewYamlConfig return a new yaml struct with Config and Detail as fields
func (*YamlConfig) AddConfig ¶
func (yc *YamlConfig) AddConfig(name string, rawName string)
AddConfig allows to add new configs to the yaml file
func (*YamlConfig) CreateYamlFile ¶
func (yc *YamlConfig) CreateYamlFile(creator files.FileCreator, path string, name string) error
CreateYamlFile transforms the struct into a physical file on disk
type YamlCreator ¶
type YamlCreator interface { CreateYamlFile(creator files.FileCreator, path string, name string) error AddConfig(name string, rawName string) }
YamlCreator implements method to create the yaml configuration file