Documentation
¶
Overview ¶
Package process_binding provides CRUD helpers for process bindings in the platform-account ObjectStore.
Index ¶
- Constants
- func GetProcessBinding(ctx context.Context, store kvtx.Store, spaceID, objectKey string) (*s4wave_process.ProcessBinding, error)
- func ListProcessBindings(ctx context.Context, store kvtx.Store, spaceID string) ([]*s4wave_process.ProcessBinding, error)
- func ProcessBindingKey(spaceID, objectKey string) []byte
- func SetProcessBinding(ctx context.Context, store kvtx.Store, spaceID, objectKey string, ...) error
Constants ¶
View Source
const ProcessBindingKeyPrefix = "process-binding"
ProcessBindingKeyPrefix is the prefix for process binding keys.
Variables ¶
This section is empty.
Functions ¶
func GetProcessBinding ¶
func GetProcessBinding(ctx context.Context, store kvtx.Store, spaceID, objectKey string) (*s4wave_process.ProcessBinding, error)
GetProcessBinding reads the ProcessBinding from the store. Returns nil, nil if the key is not found.
func ListProcessBindings ¶
func ListProcessBindings(ctx context.Context, store kvtx.Store, spaceID string) ([]*s4wave_process.ProcessBinding, error)
ListProcessBindings lists all process bindings for a given space.
func ProcessBindingKey ¶
ProcessBindingKey returns the KV key for a process binding. Key format: process-binding/{spaceID}/{objectKey}
func SetProcessBinding ¶
func SetProcessBinding(ctx context.Context, store kvtx.Store, spaceID, objectKey string, binding *s4wave_process.ProcessBinding) error
SetProcessBinding writes the ProcessBinding to the store.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.