catalog

package
v0.0.0-...-65a2a9e Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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

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

func (*CatalogConfigProvider) Read

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

func (*CatalogConfigProvider) ReadObject

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

func (*CatalogConfigProvider) Remove

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

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)

func (*CatalogConfigProvider) SetObject

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

type CatalogConfigProviderConfig

type CatalogConfigProviderConfig struct {
	User     string `json:"user"`
	Password string `json:"password"`
}

func CatalogConfigProviderConfigFromMap

func CatalogConfigProviderConfigFromMap(properties map[string]string) (CatalogConfigProviderConfig, error)

Jump to

Keyboard shortcuts

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