storage

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

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

type ServiceConfig struct {
	Address string
	Secure  bool
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL