Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func SetConfigurationDefaults ¶
func SetConfigurationDefaults()
func SetConfigurationPaths ¶
func SetConfigurationPaths()
Types ¶
type Config ¶
type Config struct { DefaultTarget string `yaml:"default"` Targets map[string]Target `yaml:"targets"` }
func (*Config) DeleteTarget ¶
func (*Config) GetFilepath ¶
func (*Config) WriteToFile ¶
func (c *Config) WriteToFile(hoverflyDirectory HoverflyDirectory) error
type HoverflyDirectory ¶
type HoverflyDirectory struct {
Path string
}
func NewHoverflyDirectory ¶
func NewHoverflyDirectory(config Config) (HoverflyDirectory, error)
type Target ¶
type Target struct { Name string Host string `yaml:"host,omitempty"` AdminPort int `yaml:"admin.port,omitempty"` ProxyPort int `yaml:"proxy.port,omitempty"` AuthToken string `yaml:"auth.token,omitempty"` Pid int `yaml:"pid,omitempty"` Webserver bool `yaml:",omitempty"` CachePath string `yaml:",omitempty"` DisableCache bool `yaml:",omitempty"` ListenOnHost string `yaml:",omitempty"` CertificatePath string `yaml:",omitempty"` KeyPath string `yaml:",omitempty"` DisableTls bool `yaml:",omitempty"` UpstreamProxyUrl string `yaml:",omitempty"` PACFile string `yaml:",omitempty"` HttpsOnly bool `yaml:",omitempty"` ClientAuthenticationDestination string ClientAuthenticationClientCert string ClientAuthenticationClientKey string ClientAuthenticationCACert string AuthEnabled bool Username string Password string }
func NewDefaultTarget ¶
func NewDefaultTarget() *Target
func (Target) BuildFlags ¶
Click to show internal directories.
Click to hide internal directories.