Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client struct
type Config ¶
Config struct
func ReadConfig ¶
func ReadConfig(fs interfaces.FileSystem, context string) (*Config, error)
ReadConfig from file
func (*Config) Write ¶
func (c *Config) Write(fs interfaces.FileSystem, context string) error
Write the config file to disk
type FileSystem ¶
type FileSystem struct{}
func NewFileSystem ¶
func NewFileSystem() *FileSystem
func (*FileSystem) Create ¶
func (m *FileSystem) Create(name string) (afero.File, error)
Create creates a mock file
func (*FileSystem) IsNotExist ¶
func (m *FileSystem) IsNotExist(err error) bool
IsNotExist returns true if err if of type FileNotExists
Click to show internal directories.
Click to hide internal directories.