Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrependToEachPath ¶ added in v0.2.0
PrependToEachPath prepends the specified prefix path to the base path, using path.Join to handle slashes.
Types ¶
type Factory ¶
type Factory struct { RepoPath string BlacklistPath string WhitelistPath string FileSystem sysutil.FileSystemInterface }
Factory handles constructing the list of files to apply and the blacklist.
type FactoryInterface ¶
type FactoryInterface interface {
Create([]string) (applyList, blacklist, whitelist []string, err error)
}
FactoryInterface allows for mocking out the functionality of Factory when testing the full process of an apply run.
type MockFactoryInterface ¶
type MockFactoryInterface struct {
// contains filtered or unexported fields
}
MockFactoryInterface is a mock of FactoryInterface interface
func NewMockFactoryInterface ¶
func NewMockFactoryInterface(ctrl *gomock.Controller) *MockFactoryInterface
NewMockFactoryInterface creates a new mock instance
func (*MockFactoryInterface) EXPECT ¶
func (_m *MockFactoryInterface) EXPECT() *MockFactoryInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockFactoryInterfaceMockRecorder ¶ added in v0.2.0
type MockFactoryInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockFactoryInterfaceMockRecorder is the mock recorder for MockFactoryInterface
func (*MockFactoryInterfaceMockRecorder) Create ¶ added in v0.2.0
func (_mr *MockFactoryInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create
Click to show internal directories.
Click to hide internal directories.