Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEtcdClient ¶
func CreateEtcdClient(configFile string) (*etcd.BytesConnectionEtcd, error)
CreateEtcdClient uses environment variable ETCD_CONFIG or ETCD config file to establish connection
Types ¶
type HTTPClient ¶
type HTTPClient struct { // Config for this client Config *HTTPClientConfig // contains filtered or unexported fields }
HTTPClient wraps http.Client with configured authorization and url base
func CreateHTTPClient ¶
func CreateHTTPClient(configFile string) (*HTTPClient, error)
CreateHTTPClient uses environment variable HTTP_CONFIG or HTTP config file to establish connection
func (*HTTPClient) Crawl ¶
func (client *HTTPClient) Crawl(base string, cmd string, suffix string) []string
Crawl extracts all http** links from a given webpage (suffix default is
type HTTPClientConfig ¶
type HTTPClientConfig struct { // Port on what targets are listening on Port string `json:"port"` // Basic authorization for client BasicAuth string `json:"basic-auth"` // If https or http should be used UseHTTPS bool `json:"use-https"` // Defines whether server cert should be verified. // Set to false in case of self-signed certificates. VerifyServerCert bool `json:"verify-server-cert"` }
HTTPClientConfig is configuration for http client
Click to show internal directories.
Click to hide internal directories.