config/auth.go
func (c *AuthConfig) String() string {
	if !BoolVal(c.Enabled) {
		return ""
	}

	if c.Password != nil {
		return fmt.Sprintf("%s:%s", StringVal(c.Username), StringVal(c.Password))
	}

	return StringVal(c.Username)
}
func (c *AuthConfig) String() string {
	if !BoolVal(c.Enabled) {
		return ""
	}

	if c.Password != nil {
		return fmt.Sprintf("%s:%s", StringVal(c.Username), StringVal(c.Password))
	}

	return StringVal(c.Username)
}
func ( c * AuthConfig ) String ( ) string { if ! BoolVal ( c . Enabled ) { return " " } if c . Password != nil { return fmt . Sprintf ( " " , StringVal ( c . Username ) , StringVal ( c . Password ) ) } return StringVal ( c . Username ) }
// String is the string representation of this authentication. If authentication
// is not enabled, this returns the empty string. The username and password will
// be separated by a colon.
String is the string representation of this authentication . If authentication is not enabled this returns the empty string . The username and password will be separated by a colon .