config/auth.go
func (c *AuthConfig) Copy() *AuthConfig {
	if c == nil {
		return nil
	}

	var o AuthConfig
	o.Enabled = c.Enabled
	o.Username = c.Username
	o.Password = c.Password
	return &o
}
func (c *AuthConfig) Copy() *AuthConfig {
	if c == nil {
		return nil
	}

	var o AuthConfig
	o.Enabled = c.Enabled
	o.Username = c.Username
	o.Password = c.Password
	return &o
}
// Copy returns a deep copy of this configuration.