github.com/sap/cf-mta-plugin@v2.6.3+incompatible/configuration/properties/configurable_property.go (about)

     1  package properties
     2  
     3  type ConfigurableProperty struct {
     4  	Name                  string
     5  	DeprecatedNames       []string
     6  	Parser                Parser
     7  	ParsingSuccessMessage string
     8  	ParsingFailureMessage string
     9  	DefaultValue          interface{}
    10  }
    11  
    12  type Parser interface {
    13  	Parse(value string) (interface{}, error)
    14  }
    15  
    16  type noOpParser struct {
    17  }
    18  
    19  func (p noOpParser) Parse(value string) (interface{}, error) {
    20  	return value, nil
    21  }