Documentation
¶
Index ¶
- type ComponentSecrets
- type Store
- func (s *Store) CreateExecution(defUID uuid.UUID, sysVars map[string]any, setup *structpb.Struct, task string) (*base.ExecutionWrapper, error)
- func (s *Store) GetDefinitionByID(defID string, sysVars map[string]any, compConfig *base.ComponentConfig) (*pb.ComponentDefinition, error)
- func (s *Store) GetDefinitionByUID(defUID uuid.UUID, sysVars map[string]any, compConfig *base.ComponentConfig) (*pb.ComponentDefinition, error)
- func (s *Store) Import(comp base.IComponent)
- func (s *Store) IsSecretField(defUID uuid.UUID, target string) (bool, error)
- func (s *Store) ListDefinitions(sysVars map[string]any, returnTombstone bool) []*pb.ComponentDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentSecrets ¶
ComponentSecrets contains the global config secrets of each implemented component (referenced by ID). Components may use these secrets to skip the component configuration step and have a ready-to-run config.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store holds in-memory information about the initialized components.
func Init ¶
func Init( logger *zap.Logger, secrets ComponentSecrets, usageHandlerCreator base.UsageHandlerCreator, ) *Store
Init initializes the components implemented in this repository and loads their information to memory.
func (*Store) CreateExecution ¶
func (s *Store) CreateExecution(defUID uuid.UUID, sysVars map[string]any, setup *structpb.Struct, task string) (*base.ExecutionWrapper, error)
CreateExecution initializes the execution of a component given its UID.
func (*Store) GetDefinitionByID ¶
func (s *Store) GetDefinitionByID(defID string, sysVars map[string]any, compConfig *base.ComponentConfig) (*pb.ComponentDefinition, error)
GetDefinitionByID returns a component definition by its ID.
func (*Store) GetDefinitionByUID ¶
func (s *Store) GetDefinitionByUID(defUID uuid.UUID, sysVars map[string]any, compConfig *base.ComponentConfig) (*pb.ComponentDefinition, error)
GetDefinitionByUID returns a component definition by its UID.
func (*Store) Import ¶
func (s *Store) Import(comp base.IComponent)
Import loads the component definitions into memory.
func (*Store) IsSecretField ¶
func (*Store) ListDefinitions ¶
func (s *Store) ListDefinitions(sysVars map[string]any, returnTombstone bool) []*pb.ComponentDefinition
ListDefinitions returns all the loaded component definitions.