model

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorAccessDenied = errors.New("access denied")
View Source
var ErrorIdMissmatch = errors.New("path id does not match body id")
View Source
var ErrorMissingCronExpr = errors.New("missing cron expression")
View Source
var ErrorMissingProcessDeploymentId = errors.New("missing process_deployment_id")
View Source
var ErrorNotFound = errors.New("not found")

Functions

This section is empty.

Types

type ScheduleEntry

type ScheduleEntry struct {
	Id                  string  `json:"id" bson:"id"`
	User                string  `json:"-" bson:"user"`
	Cron                string  `json:"cron" bson:"cron"`
	ProcessDeploymentId string  `json:"process_deployment_id" bson:"process_deployment_id"`
	ProcessAlias        *string `json:"process_alias,omitempty" bson:"process_alias"`
	Disabled            *bool   `json:"disabled,omitempty" bson:"disabled"`
	CreatedBy           *string `json:"created_by,omitempty" bson:"created_by"`
}

func (*ScheduleEntry) Validate

func (this *ScheduleEntry) Validate() error

func (*ScheduleEntry) ValidateAndEnsureId

func (this *ScheduleEntry) ValidateAndEnsureId(pathId string) error

Jump to

Keyboard shortcuts

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