memory

package
v0.0.0-...-5ea7d2a Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 (*MemoryConfigProvider) InitWithMap

func (i *MemoryConfigProvider) InitWithMap(properties map[string]string) error

func (*MemoryConfigProvider) Read

func (m *MemoryConfigProvider) Read(ctx context.Context, object string, field string, localContext interface{}) (interface{}, error)

func (*MemoryConfigProvider) ReadObject

func (m *MemoryConfigProvider) ReadObject(ctx context.Context, object string, localContext interface{}) (map[string]interface{}, error)

func (*MemoryConfigProvider) Remove

func (m *MemoryConfigProvider) Remove(ctx context.Context, object string, field string) error

func (*MemoryConfigProvider) RemoveObject

func (m *MemoryConfigProvider) RemoveObject(ctx context.Context, object string) error

func (*MemoryConfigProvider) Set

func (m *MemoryConfigProvider) Set(ctx context.Context, object string, field string, value interface{}) error

func (*MemoryConfigProvider) SetContext

func (a *MemoryConfigProvider) SetContext(context *contexts.ManagerContext)

func (*MemoryConfigProvider) SetObject

func (m *MemoryConfigProvider) SetObject(ctx context.Context, object string, value map[string]interface{}) error

type MemoryConfigProviderConfig

type MemoryConfigProviderConfig struct {
	Name string `json:"name"`
}

func MockConfigProviderConfigFromMap

func MockConfigProviderConfigFromMap(properties map[string]string) (MemoryConfigProviderConfig, error)

Jump to

Keyboard shortcuts

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