Documentation ¶
Index ¶
- type ContinuousDailyScheduledTriggerFilter
- type CronScheduledTriggerFilter
- type DailyScheduledInterval
- type DailyScheduledTriggerFilter
- type DateOfMonthScheduledTriggerFilter
- type DayOfWeekScheduledTriggerFilter
- type DeploymentTargetFilter
- type FilterType
- type ITriggerFilter
- type MonthlySchedule
- type OnceDailyScheduledTriggerFilter
- type ProjectTriggerFilter
- type ScheduledTriggerFilterRunType
- type Weekday
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContinuousDailyScheduledTriggerFilter ¶
type ContinuousDailyScheduledTriggerFilter struct { Days []Weekday `json:"DaysOfWeek,omitempty"` HourInterval *int16 `json:"HourInterval,omitempty"` Interval *DailyScheduledInterval `json:"Interval,omitempty"` MinuteInterval *int16 `json:"MinuteInterval,omitempty"` RunAfter *time.Time `json:"RunAfter,omitempty"` RunUntil *time.Time `json:"RunUntil,omitempty"` // contains filtered or unexported fields }
func NewContinuousDailyScheduledTriggerFilter ¶
func NewContinuousDailyScheduledTriggerFilter(days []Weekday, timeZone *time.Location) *ContinuousDailyScheduledTriggerFilter
func (*ContinuousDailyScheduledTriggerFilter) GetFilterType ¶
func (t *ContinuousDailyScheduledTriggerFilter) GetFilterType() FilterType
func (*ContinuousDailyScheduledTriggerFilter) SetFilterType ¶
func (t *ContinuousDailyScheduledTriggerFilter) SetFilterType(filterType FilterType)
type CronScheduledTriggerFilter ¶
type CronScheduledTriggerFilter struct { CronExpression string `json:"CronExpression,omitempty"` // contains filtered or unexported fields }
func NewCronScheduledTriggerFilter ¶
func NewCronScheduledTriggerFilter(cronExpression string, timeZone *time.Location) *CronScheduledTriggerFilter
func (*CronScheduledTriggerFilter) GetFilterType ¶
func (t *CronScheduledTriggerFilter) GetFilterType() FilterType
func (*CronScheduledTriggerFilter) SetFilterType ¶
func (t *CronScheduledTriggerFilter) SetFilterType(filterType FilterType)
type DailyScheduledInterval ¶
type DailyScheduledInterval int
const ( OnceDaily DailyScheduledInterval = iota OnceHourly OnceEveryMinute )
func DailyScheduledIntervalString ¶
func DailyScheduledIntervalString(s string) (DailyScheduledInterval, error)
DailyScheduledIntervalString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func DailyScheduledIntervalValues ¶
func DailyScheduledIntervalValues() []DailyScheduledInterval
DailyScheduledIntervalValues returns all values of the enum
func (DailyScheduledInterval) IsADailyScheduledInterval ¶
func (i DailyScheduledInterval) IsADailyScheduledInterval() bool
IsADailyScheduledInterval returns "true" if the value is listed in the enum definition. "false" otherwise
func (DailyScheduledInterval) MarshalJSON ¶
func (i DailyScheduledInterval) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface for DailyScheduledInterval
func (DailyScheduledInterval) String ¶
func (i DailyScheduledInterval) String() string
func (*DailyScheduledInterval) UnmarshalJSON ¶
func (i *DailyScheduledInterval) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for DailyScheduledInterval
type DailyScheduledTriggerFilter ¶
type DailyScheduledTriggerFilter struct { HourInterval int16 `json:"HourInterval,omitempty"` Interval DailyScheduledInterval `json:"Interval"` MinuteInterval int16 `json:"MinuteInterval,omitempty"` RunType ScheduledTriggerFilterRunType `json:"RunType"` // contains filtered or unexported fields }
func NewDailyScheduledTriggerFilter ¶
func NewDailyScheduledTriggerFilter(start time.Time) *DailyScheduledTriggerFilter
func (*DailyScheduledTriggerFilter) GetFilterType ¶
func (t *DailyScheduledTriggerFilter) GetFilterType() FilterType
func (*DailyScheduledTriggerFilter) SetFilterType ¶
func (t *DailyScheduledTriggerFilter) SetFilterType(filterType FilterType)
type DateOfMonthScheduledTriggerFilter ¶
type DateOfMonthScheduledTriggerFilter struct { DateOfMonth string `json:"DateOfMonth,omitempty"` // contains filtered or unexported fields }
func NewDateOfMonthScheduledTriggerFilter ¶
func NewDateOfMonthScheduledTriggerFilter(dateOfMonth string, start time.Time) *DateOfMonthScheduledTriggerFilter
type DayOfWeekScheduledTriggerFilter ¶
type DayOfWeekScheduledTriggerFilter struct { Day Weekday `json:"DayOfWeek,omitempty"` Ordinal string `json:"DayNumberOfMonth,omitempty"` // contains filtered or unexported fields }
func NewDayOfWeekScheduledTriggerFilter ¶
func NewDayOfWeekScheduledTriggerFilter(ordinal string, day Weekday, start time.Time) *DayOfWeekScheduledTriggerFilter
type DeploymentTargetFilter ¶
type DeploymentTargetFilter struct { Environments []string `json:"EnvironmentIds,omitempty"` EventCategories []string `json:"EventCategories,omitempty"` EventGroups []string `json:"EventGroups,omitempty"` Roles []string `json:"Roles,omitempty"` // contains filtered or unexported fields }
func NewDeploymentTargetFilter ¶
func NewDeploymentTargetFilter(environments []string, eventCategories []string, eventGroups []string, roles []string) *DeploymentTargetFilter
func (*DeploymentTargetFilter) GetFilterType ¶
func (f *DeploymentTargetFilter) GetFilterType() FilterType
func (*DeploymentTargetFilter) SetFilterType ¶
func (f *DeploymentTargetFilter) SetFilterType(filterType FilterType)
func (*DeploymentTargetFilter) Validate ¶
func (f *DeploymentTargetFilter) Validate() error
type FilterType ¶
type FilterType int
const ( ContinuousDailySchedule FilterType = iota CronExpressionSchedule DailySchedule DaysPerMonthSchedule DaysPerWeekSchedule MachineFilter OnceDailySchedule )
func FilterTypeString ¶
func FilterTypeString(s string) (FilterType, error)
FilterTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func FilterTypeValues ¶
func FilterTypeValues() []FilterType
FilterTypeValues returns all values of the enum
func (FilterType) IsAFilterType ¶
func (i FilterType) IsAFilterType() bool
IsAFilterType returns "true" if the value is listed in the enum definition. "false" otherwise
func (FilterType) MarshalJSON ¶
func (i FilterType) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface for FilterType
func (FilterType) String ¶
func (i FilterType) String() string
func (*FilterType) UnmarshalJSON ¶
func (i *FilterType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for FilterType
type ITriggerFilter ¶
type ITriggerFilter interface { GetFilterType() FilterType SetFilterType(filterType FilterType) }
ITriggerFilter defines the interface for trigger filters.
func FromJson ¶
func FromJson(rawMessage *json.RawMessage) (ITriggerFilter, error)
type MonthlySchedule ¶
type MonthlySchedule int
const ( DateOfMonth MonthlySchedule = iota DayOfMonth )
func MonthlyScheduleString ¶
func MonthlyScheduleString(s string) (MonthlySchedule, error)
MonthlyScheduleString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func MonthlyScheduleValues ¶
func MonthlyScheduleValues() []MonthlySchedule
MonthlyScheduleValues returns all values of the enum
func (MonthlySchedule) IsAMonthlySchedule ¶
func (i MonthlySchedule) IsAMonthlySchedule() bool
IsAMonthlySchedule returns "true" if the value is listed in the enum definition. "false" otherwise
func (MonthlySchedule) MarshalJSON ¶
func (i MonthlySchedule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface for MonthlySchedule
func (MonthlySchedule) String ¶
func (i MonthlySchedule) String() string
func (*MonthlySchedule) UnmarshalJSON ¶
func (i *MonthlySchedule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for MonthlySchedule
type OnceDailyScheduledTriggerFilter ¶
type OnceDailyScheduledTriggerFilter struct { Days []Weekday `json:"DaysOfWeek,omitempty"` // contains filtered or unexported fields }
func NewOnceDailyScheduledTriggerFilter ¶
func NewOnceDailyScheduledTriggerFilter(days []Weekday, start time.Time) *OnceDailyScheduledTriggerFilter
func (*OnceDailyScheduledTriggerFilter) GetFilterType ¶
func (t *OnceDailyScheduledTriggerFilter) GetFilterType() FilterType
func (*OnceDailyScheduledTriggerFilter) SetFilterType ¶
func (t *OnceDailyScheduledTriggerFilter) SetFilterType(filterType FilterType)
type ProjectTriggerFilter ¶
type ProjectTriggerFilter struct { DateOfMonth string `json:"DateOfMonth"` DayNumberOfMonth string `json:"DayNumberOfMonth"` DayOfWeek string `json:"DayOfWeek"` EnvironmentIDs []string `json:"EnvironmentIds,omitempty"` EventCategories []string `json:"EventCategories,omitempty"` EventGroups []string `json:"EventGroups,omitempty"` FilterType string `json:"FilterType"` MonthlyScheduleType string `json:"MonthlyScheduleType"` Roles []string `json:"Roles"` StartTime string `json:"StartTime"` Timezone string `json:"Timezone"` }
func (*ProjectTriggerFilter) GetFilterType ¶
func (f *ProjectTriggerFilter) GetFilterType() FilterType
func (*ProjectTriggerFilter) SetFilterType ¶
func (f *ProjectTriggerFilter) SetFilterType(filterType FilterType)
func (*ProjectTriggerFilter) Validate ¶
func (f *ProjectTriggerFilter) Validate() error
type ScheduledTriggerFilterRunType ¶
type ScheduledTriggerFilterRunType int
const ( ScheduledTime ScheduledTriggerFilterRunType = iota Continuously )
func ScheduledTriggerFilterRunTypeString ¶
func ScheduledTriggerFilterRunTypeString(s string) (ScheduledTriggerFilterRunType, error)
ScheduledTriggerFilterRunTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func ScheduledTriggerFilterRunTypeValues ¶
func ScheduledTriggerFilterRunTypeValues() []ScheduledTriggerFilterRunType
ScheduledTriggerFilterRunTypeValues returns all values of the enum
func (ScheduledTriggerFilterRunType) IsAScheduledTriggerFilterRunType ¶
func (i ScheduledTriggerFilterRunType) IsAScheduledTriggerFilterRunType() bool
IsAScheduledTriggerFilterRunType returns "true" if the value is listed in the enum definition. "false" otherwise
func (ScheduledTriggerFilterRunType) MarshalJSON ¶
func (i ScheduledTriggerFilterRunType) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface for ScheduledTriggerFilterRunType
func (ScheduledTriggerFilterRunType) String ¶
func (i ScheduledTriggerFilterRunType) String() string
func (*ScheduledTriggerFilterRunType) UnmarshalJSON ¶
func (i *ScheduledTriggerFilterRunType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for ScheduledTriggerFilterRunType
type Weekday ¶
type Weekday int
func WeekdayString ¶
WeekdayString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (Weekday) IsAWeekday ¶
IsAWeekday returns "true" if the value is listed in the enum definition. "false" otherwise
func (Weekday) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for Weekday
func (*Weekday) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for Weekday
Source Files ¶
- continuous_daily_scheduled_trigger_filter.go
- cron_scheduled_trigger_filter.go
- daily_scheduled_trigger_filter.go
- daily_scheduled_trigger_interval.go
- daily_scheduled_trigger_interval_string.go
- date_of_month_scheduled_trigger_filter.go
- day_of_week_scheduled_trigger_filter.go
- deployment_target_filter.go
- filter_type.go
- filter_type_string.go
- json.go
- monthly_schedule.go
- monthly_schedule_string.go
- monthly_scheduled_trigger_filter.go
- once_daily_scheduled_trigger_filter.go
- project_trigger_filter.go
- schedule_trigger_filter.go
- scheduled_trigger_filter.go
- scheduled_trigger_filter_run_type.go
- scheduled_trigger_filter_run_type_string.go
- trigger_filter.go
- weekday.go
- weekday_string.go