Documentation
¶
Overview ¶
Package dagsettings contains server-side DAG settings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidDAGName = errors.New("invalid DAG name") ErrNotFound = errors.New("DAG settings not found") )
ErrProfileStoreUnavailable means a selected runtime profile cannot be checked.
Functions ¶
func ResolveProfile ¶
func ValidateDAGName ¶
Types ¶
type BaseConfigProvider ¶ added in v2.14.0
type BaseConfigProvider func(workspaceName string) (BaseConfigStore, error)
BaseConfigProvider returns the base configuration store for a workspace.
type BaseConfigStore ¶ added in v2.13.0
type BaseConfigStore interface {
// GetSpec returns the raw YAML content, or an empty string when no configuration exists.
GetSpec(ctx context.Context) (string, error)
// UpdateSpec writes the raw YAML content.
UpdateSpec(ctx context.Context, spec []byte) error
}
BaseConfigStore provides access to the base DAG configuration inherited by all DAGs. Implementations must be safe for concurrent use.
type ProfileReferenceError ¶
func (*ProfileReferenceError) Error ¶
func (e *ProfileReferenceError) Error() string
func (*ProfileReferenceError) Unwrap ¶
func (e *ProfileReferenceError) Unwrap() error
type Settings ¶
type Settings struct {
DAGName string
Profile string
CreatedBy string
CreatedAt time.Time
UpdatedBy string
UpdatedAt time.Time
}
func (*Settings) ApplyUpdate ¶
func (s *Settings) ApplyUpdate(input UpdateInput, now time.Time) error
type UpdateInput ¶
Click to show internal directories.
Click to hide internal directories.