mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
6fcb36ff14
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
15 lines
590 B
Go
15 lines
590 B
Go
package hashstructure
|
|
|
|
// Includable is an interface that can optionally be implemented by
|
|
// a struct. It will be called for each field in the struct to check whether
|
|
// it should be included in the hash.
|
|
type Includable interface {
|
|
HashInclude(field string, v interface{}) (bool, error)
|
|
}
|
|
|
|
// IncludableMap is an interface that can optionally be implemented by
|
|
// a struct. It will be called when a map-type field is found to ask the
|
|
// struct if the map item should be included in the hash.
|
|
type IncludableMap interface {
|
|
HashIncludeMap(field string, k, v interface{}) (bool, error)
|
|
}
|