github.com/Datadog/cnab-go@v0.3.3-beta1.0.20191007143216-bba4b7e723d0/bundle/replacement/replacer.go (about)

     1  package replacement
     2  
     3  import "errors"
     4  
     5  // Replacer replaces the values of fields matched by a selector.
     6  type Replacer interface {
     7  	Replace(source string, selector string, value string) (string, error)
     8  }
     9  
    10  var (
    11  	// ErrSelectorNotFound is reported when the document does not
    12  	// contain a field matching the selector.
    13  	ErrSelectorNotFound = errors.New("Selector not found")
    14  )