github.com/lyraproj/hiera@v1.0.0-rc4/api/entry.go (about)

     1  package api
     2  
     3  import (
     4  	"github.com/lyraproj/dgo/dgo"
     5  )
     6  
     7  // An Entry is a definition an entry in the hierarchy.
     8  type Entry interface {
     9  	// Create a copy of this entry for the given Config
    10  	Copy(Config) Entry
    11  
    12  	// Options returns the options
    13  	Options() dgo.Map
    14  
    15  	// DataDir returns datadir
    16  	DataDir() string
    17  
    18  	// PluginDir returns plugindir
    19  	PluginDir() string
    20  
    21  	// PluginFile returns pluginfile
    22  	PluginFile() string
    23  
    24  	// Function returns data_dir, data_hash, or lookup_key function
    25  	Function() Function
    26  
    27  	// Name returns the name
    28  	Name() string
    29  
    30  	// Resolve resolves this configuration on behalf of the given invocation and defaults entry
    31  	Resolve(ic Invocation, defaults Entry) Entry
    32  
    33  	// Locations returns the paths, globs, or uris. The method returns nil if no locations are defined
    34  	Locations() []Location
    35  }