Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEnterpriseUserQuietHoursScheduleStore ¶
func NewEnterpriseUserQuietHoursScheduleStore(defaultSchedule string) (agpl.UserQuietHoursScheduleStore, error)
Types ¶
type EnterpriseTemplateScheduleStore ¶
type EnterpriseTemplateScheduleStore struct { // UseAutostopRequirement decides whether the AutostopRequirement field // should be used instead of the MaxTTL field for determining the max // deadline of a workspace build. This value is determined by a feature // flag, licensing, and whether a default user quiet hours schedule is set. UseAutostopRequirement atomic.Bool // UserQuietHoursScheduleStore is used when recalculating build deadlines on // update. UserQuietHoursScheduleStore *atomic.Pointer[agpl.UserQuietHoursScheduleStore] // Custom time.Now() function to use in tests. Defaults to dbtime.Now(). TimeNowFn func() time.Time }
EnterpriseTemplateScheduleStore provides an agpl.TemplateScheduleStore that has all fields implemented for enterprise customers.
func NewEnterpriseTemplateScheduleStore ¶
func NewEnterpriseTemplateScheduleStore(userQuietHoursStore *atomic.Pointer[agpl.UserQuietHoursScheduleStore]) *EnterpriseTemplateScheduleStore
Click to show internal directories.
Click to hide internal directories.