applylist

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	RepoPath      string
	BlacklistPath string
	FileSystem    sysutil.FileSystemInterface
}

Factory handles constructing the list of files to apply and the blacklist.

func (*Factory) Create

func (f *Factory) Create() ([]string, []string, error)

Create returns two alphabetically sorted lists: the list of files to apply, and the blacklist of files to skip.

type FactoryInterface

type FactoryInterface interface {
	Create() ([]string, []string, 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
}

Mock of FactoryInterface interface

func NewMockFactoryInterface

func NewMockFactoryInterface(ctrl *gomock.Controller) *MockFactoryInterface

func (*MockFactoryInterface) Create

func (_m *MockFactoryInterface) Create() ([]string, []string, error)

func (*MockFactoryInterface) EXPECT

func (_m *MockFactoryInterface) EXPECT() *_MockFactoryInterfaceRecorder

Jump to

Keyboard shortcuts

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