Documentation ¶
Index ¶
- type MemoryConfigProvider
- func (m *MemoryConfigProvider) ID() string
- func (m *MemoryConfigProvider) Init(config providers.IProviderConfig) error
- func (i *MemoryConfigProvider) InitWithMap(properties map[string]string) error
- func (m *MemoryConfigProvider) Read(ctx context.Context, object string, field string, localContext interface{}) (interface{}, error)
- func (m *MemoryConfigProvider) ReadObject(ctx context.Context, object string, localContext interface{}) (map[string]interface{}, error)
- func (m *MemoryConfigProvider) Remove(ctx context.Context, object string, field string) error
- func (m *MemoryConfigProvider) RemoveObject(ctx context.Context, object string) error
- func (m *MemoryConfigProvider) Set(ctx context.Context, object string, field string, value interface{}) error
- func (a *MemoryConfigProvider) SetContext(context *contexts.ManagerContext)
- func (m *MemoryConfigProvider) SetObject(ctx context.Context, object string, value map[string]interface{}) error
- type MemoryConfigProviderConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryConfigProvider ¶
type MemoryConfigProvider struct { Config MemoryConfigProviderConfig Context *contexts.ManagerContext ConfigData map[string]map[string]interface{} Lock *sync.Mutex }
func (*MemoryConfigProvider) ID ¶
func (m *MemoryConfigProvider) ID() string
func (*MemoryConfigProvider) Init ¶
func (m *MemoryConfigProvider) Init(config providers.IProviderConfig) error
func (*MemoryConfigProvider) InitWithMap ¶
func (i *MemoryConfigProvider) InitWithMap(properties map[string]string) error
func (*MemoryConfigProvider) ReadObject ¶
func (*MemoryConfigProvider) RemoveObject ¶
func (m *MemoryConfigProvider) RemoveObject(ctx context.Context, object string) error
func (*MemoryConfigProvider) SetContext ¶
func (a *MemoryConfigProvider) SetContext(context *contexts.ManagerContext)
type MemoryConfigProviderConfig ¶
type MemoryConfigProviderConfig struct {
Name string `json:"name"`
}
func MockConfigProviderConfigFromMap ¶
func MockConfigProviderConfigFromMap(properties map[string]string) (MemoryConfigProviderConfig, error)
Click to show internal directories.
Click to hide internal directories.