serviceconfigfile

package
Version: v0.0.0-...-45f56e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2021 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	//MAPPING is the elastic mapping for a service
	MAPPING, _ = elastic.NewMapping(mappingString)
)

Functions

func Key

func Key(id string) datastore.Key

Key creates a Key suitable for getting, putting and deleting SvcConfigFile

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

func NewStore

func NewStore() Store

NewStore creates a Service Config File store

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL