Documentation ¶
Index ¶
- type CatalogConfigProvider
- func (s *CatalogConfigProvider) Init(config providers.IProviderConfig) error
- func (i *CatalogConfigProvider) InitWithMap(properties map[string]string) error
- func (m *CatalogConfigProvider) Read(ctx context.Context, object string, field string, localcontext interface{}) (interface{}, error)
- func (m *CatalogConfigProvider) ReadObject(ctx context.Context, object string, localcontext interface{}) (map[string]interface{}, error)
- func (m *CatalogConfigProvider) Remove(ctx context.Context, object string, field string) error
- func (m *CatalogConfigProvider) RemoveObject(ctx context.Context, object string) error
- func (m *CatalogConfigProvider) Set(ctx context.Context, object string, field string, value interface{}) error
- func (s *CatalogConfigProvider) SetContext(ctx *contexts.ManagerContext)
- func (m *CatalogConfigProvider) SetObject(ctx context.Context, object string, value map[string]interface{}) error
- type CatalogConfigProviderConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatalogConfigProvider ¶
type CatalogConfigProvider struct { Config CatalogConfigProviderConfig Context *contexts.ManagerContext ApiClient utils.ApiClient }
func (*CatalogConfigProvider) Init ¶
func (s *CatalogConfigProvider) Init(config providers.IProviderConfig) error
func (*CatalogConfigProvider) InitWithMap ¶
func (i *CatalogConfigProvider) InitWithMap(properties map[string]string) error
func (*CatalogConfigProvider) ReadObject ¶
func (*CatalogConfigProvider) RemoveObject ¶
func (m *CatalogConfigProvider) RemoveObject(ctx context.Context, object string) error
func (*CatalogConfigProvider) Set ¶
func (m *CatalogConfigProvider) Set(ctx context.Context, object string, field string, value interface{}) error
TODO: IConfigProvider interface methods should be enhanced to accept namespace as a parameter so we can get rid of getCatalogInDefaultNamespace.
func (*CatalogConfigProvider) SetContext ¶
func (s *CatalogConfigProvider) SetContext(ctx *contexts.ManagerContext)
type CatalogConfigProviderConfig ¶
type CatalogConfigProviderConfig struct { User string `json:"user"` Password string `json:"password"` }
func CatalogConfigProviderConfigFromMap ¶
func CatalogConfigProviderConfigFromMap(properties map[string]string) (CatalogConfigProviderConfig, error)
Click to show internal directories.
Click to hide internal directories.