Movatterモバイル変換


[0]ホーム

URL:


helpers

package
v2.8.0Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License:MPL-2.0Imports:5Imported by:0

Details

Repository

github.com/coder/terraform-provider-coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcCheckOverlapadded inv2.6.0

func CheckOverlap(range1, range2string, maxValueint) (bool,error)

CheckOverlap is a function to check if two ranges overlap

funcDaysOverlapadded inv2.6.0

func DaysOverlap(dom1, dow1, dom2, dow2string) (bool,error)

DaysOverlap checks if two day ranges overlap, considering both DOM and DOW.Returns true if both DOM and DOW overlap, or if one is * and the other overlaps.

funcDomOverlapadded inv2.6.0

func DomOverlap(dom1, dom2string) (bool,error)

DomOverlap checks if two day-of-month ranges overlap

funcDowOverlapadded inv2.6.0

func DowOverlap(dow1, dow2string) (bool,error)

DowOverlap checks if two day-of-week ranges overlap

funcHoursOverlapadded inv2.6.0

func HoursOverlap(hours1, hours2string) (bool,error)

HoursOverlap checks if two hour ranges overlap

funcMonthsOverlapadded inv2.6.0

func MonthsOverlap(months1, months2string) (bool,error)

MonthsOverlap checks if two month ranges overlap

funcOptionalEnv

func OptionalEnv(namestring)string

OptionalEnv returns the value for environment variable if it exists,otherwise returns an empty string.

funcOptionalEnvOrDefault

func OptionalEnvOrDefault(name, defaultValuestring)string

OptionalEnvOrDefault returns the value for environment variable if it exists,otherwise returns the default value.

funcParseRangeadded inv2.6.0

func ParseRange(inputstring, maxValueint) (map[int]bool,error)

ParseRange converts a cron range to a set of integersmaxValue is the maximum allowed value (e.g., 23 for hours, 6 for DOW, 12 for months, 31 for DOM)

funcRequireEnv

func RequireEnv(namestring) (string,error)

RequireEnv requires environment variable to be present.The constraint can be verified only during execution of the workspace build(determined with env `CODER_WORKSPACE_BUILD_ID`).

funcSchedulesOverlapadded inv2.6.0

func SchedulesOverlap(schedule1, schedule2string) (bool,error)

SchedulesOverlap checks if two schedules overlap by checkingall cron fields separately

funcValidateSchedulesadded inv2.6.0

func ValidateSchedules(schedules []string)error

ValidateSchedules checks if any schedules overlap

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp