Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
//MAPPING is the elastic mapping for a service
MAPPING, _ = elastic.NewMapping(mappingString)
)
Functions ¶
Types ¶
type Store ¶
type Store interface { datastore.EntityStore GetConfigFiles(ctx datastore.Context, tenantID string, svcPath string) ([]*SvcConfigFile, error) GetConfigFile(ctx datastore.Context, tenantID, svcPath, filename string) (*SvcConfigFile, error) }
Store type for interacting with Service Config File persistent storage
type SvcConfigFile ¶
type SvcConfigFile struct { ID string ServiceTenantID string ServicePath string ConfFile servicedefinition.ConfigFile datastore.VersionedEntity }
SvcConfigFile is used to store and track service config files that have been modified
func New ¶
func New(tenantID string, svcPath string, conf servicedefinition.ConfigFile) (*SvcConfigFile, error)
New creates a SvcConfigFile
func (SvcConfigFile) ValidEntity ¶
func (scf SvcConfigFile) ValidEntity() error
ValidEntity check if fields are valid
Source Files ¶
Click to show internal directories.
Click to hide internal directories.