Documentation ¶
Overview ¶
Package engcontext defines the EngineContext type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithEntityContext ¶
func WithEntityContext(ctx context.Context, c *EntityContext) context.Context
WithEntityContext stores an EntityContext in the current context.
Types ¶
type EntityContext ¶
EntityContext is the context of an entity. This is relevant for getting the full information about an entity.
func EntityFromContext ¶
func EntityFromContext(ctx context.Context) EntityContext
EntityFromContext extracts the current EntityContext, WHICH MAY BE NIL!
func (*EntityContext) Validate ¶
func (c *EntityContext) Validate(ctx context.Context, q db.Querier, providerStore providers.ProviderStore) error
Validate validates that the entity context contains values that are present in the DB
func (*EntityContext) ValidateProject ¶
ValidateProject validates that the entity context contains a project that is present in the DB
Click to show internal directories.
Click to hide internal directories.