Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayServiceConfigStore ¶
type ArrayServiceConfigStore struct {
// contains filtered or unexported fields
}
ArrayServiceConfigStore provides service config information from an in memory array. These services must all implement the DataLifeCycleManageable interface
func NewArrayServiceConfigStore ¶
func NewArrayServiceConfigStore(services map[string]ServiceConfig) *ArrayServiceConfigStore
NewArrayServiceConfigStore returns a ConfigStore that returns service configuration information from the provided services map
func (*ArrayServiceConfigStore) GetServiceConfig ¶
func (store *ArrayServiceConfigStore) GetServiceConfig(serviceName string) (*ServiceConfig, error)
GetServiceConfig returns the service configuration for the requested service. If the configuration is not found, an error is returned.
func (*ArrayServiceConfigStore) ListServices ¶
func (store *ArrayServiceConfigStore) ListServices() []string
ListServices returns a list of configured services by name
type ServiceConfig ¶
ServiceConfig describes how to connect to a service
type ServiceConfigStore ¶
type ServiceConfigStore interface { // GetServiceConfig returns the service configuration for the requested service. If the configuration // is not found, an error is returned. GetServiceConfig(serviceName string) (*ServiceConfig, error) // ListServices returns a list of configured services by name ListServices() []string }
ServiceConfigStore provides an interface to get information required for the data lifecycle service to manage the data lifecycle of a service. This data is not runtime configurable.