Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archiver ¶
type Archiver interface {
TarGz(destination string, sources []string) error
UnTarGz(source, destination string) error
}
Archiver interface for mocking archive operations
type ConsulClient ¶
type ConsulClient interface {
ListKeys() (consulapi.KVPairs, error)
ListPQs() ([]*consulapi.PreparedQueryDefinition, error)
ListACLs() ([]*consulapi.ACLEntry, error)
PutKV(key string, value []byte) error
CreatePQ(pq *consulapi.PreparedQueryDefinition) error
CreateACL(acl *consulapi.ACLEntry) error
}
ConsulClient interface for mocking consul operations
type FileSystem ¶
type FileSystem interface {
WriteFile(filename string, data []byte, perm int) error
ReadFile(filename string) ([]byte, error)
MkdirAll(path string, perm int) error
Remove(path string) error
RemoveAll(path string) error
}
FileSystem interface for mocking file operations
Click to show internal directories.
Click to hide internal directories.