func (c *DockerSDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error {
	*c = DefaultDockerSDConfig
	type plain DockerSDConfig
	err := unmarshal((*plain)(c))
	if err != nil {
		return err
	}
	if c.Host == "" {
		return fmt.Errorf("host missing")
	}
	if _, err = url.Parse(c.Host); err != nil {
		return err
	}
	return c.HTTPClientConfig.Validate()
}
// UnmarshalYAML implements the yaml.Unmarshaler interface.
UnmarshalYAML implements the yaml.Unmarshaler interface.
// UnmarshalYAML implements the yaml . Unmarshaler interface .
func (c *DockerSDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error {
	*c = DefaultDockerSDConfig
	type plain DockerSDConfig
	err := unmarshal((*plain)(c))
	if err != nil {
		return err
	}
	if c.Host == "" {
		return fmt.Errorf("host missing")
	}
	if _, err = url.Parse(c.Host); err != nil {
		return err
	}
	return c.HTTPClientConfig.Validate()
}
func ( c * DockerSDConfig ) UnmarshalYAML ( unmarshal func ( interface { } ) error ) error { * c = DefaultDockerSDConfig type plain DockerSDConfig err := unmarshal ( ( * plain ) ( c ) ) if err != nil { return err } if c . Host == " " { return fmt . Errorf ( " " ) } if _ , err = url . Parse ( c . Host ) ; err != nil { return err } return c . HTTPClientConfig . Validate ( ) }
UnmarshalYAML implements the yaml.Unmarshaler interface.
UnmarshalYAML implements the yaml . Unmarshaler interface .