Documentation ¶
Index ¶
- Constants
- func FilterTypeStrings() []string
- type ContinuousDailyScheduledTriggerFilter
- type CronScheduledTriggerFilter
- type DailyScheduledInterval
- type DailyScheduledTriggerFilter
- type DateOfMonthScheduledTriggerFilter
- type DaysPerMonthScheduledTriggerFilter
- type DeploymentTargetFilter
- type FeedTriggerFilter
- type FilterType
- type ITriggerFilter
- type MonthlySchedule
- type OnceDailyScheduledTriggerFilter
- type ProjectTriggerFilter
- type ScheduledTriggerFilterRunType
- type Weekday
Constants ¶
const RFC3339NanoNoZone = "2006-01-02T15:04:05.999999999"
Variables ¶
This section is empty.
Functions ¶
func FilterTypeStrings ¶ added in v2.39.0
func FilterTypeStrings() []string
FilterTypeStrings returns a slice of all String values of the enum
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 string) *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 string) *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)
func (*DailyScheduledTriggerFilter) UnmarshalJSON ¶ added in v2.4.1
func (a *DailyScheduledTriggerFilter) UnmarshalJSON(b []byte) error
UnmarshalJSON sets this DailyScheduledTriggerFilter struct to its representation in JSON.
type DateOfMonthScheduledTriggerFilter ¶
type DateOfMonthScheduledTriggerFilter struct { DateOfMonth string `json:"DateOfMonth,omitempty"` DaysPerMonthScheduledTriggerFilter }
func NewDateOfMonthScheduledTriggerFilter ¶
func NewDateOfMonthScheduledTriggerFilter(dateOfMonth string, start time.Time) *DateOfMonthScheduledTriggerFilter
func (*DateOfMonthScheduledTriggerFilter) GetFilterType ¶ added in v2.4.1
func (t *DateOfMonthScheduledTriggerFilter) GetFilterType() FilterType
func (*DateOfMonthScheduledTriggerFilter) SetFilterType ¶ added in v2.4.1
func (t *DateOfMonthScheduledTriggerFilter) SetFilterType(filterType FilterType)
func (*DateOfMonthScheduledTriggerFilter) UnmarshalJSON ¶ added in v2.4.1
func (a *DateOfMonthScheduledTriggerFilter) UnmarshalJSON(b []byte) error
UnmarshalJSON sets this DateOfMonthScheduledTriggerFilter struct to its representation in JSON.
type DaysPerMonthScheduledTriggerFilter ¶ added in v2.4.1
type DaysPerMonthScheduledTriggerFilter struct { MonthlySchedule MonthlySchedule `json:"MonthlyScheduleType"` DateOfMonth string `json:"DateOfMonth,omitempty"` DayNumberOfMonth string `json:"DayNumberOfMonth,omitempty"` Day *Weekday `json:"DayOfWeek,omitempty"` // must be a pointer because it's optional // contains filtered or unexported fields }
func NewDaysPerMonthScheduledTriggerFilter ¶ added in v2.4.1
func NewDaysPerMonthScheduledTriggerFilter(monthlySchedule MonthlySchedule, start time.Time) *DaysPerMonthScheduledTriggerFilter
func (*DaysPerMonthScheduledTriggerFilter) GetFilterType ¶ added in v2.4.1
func (t *DaysPerMonthScheduledTriggerFilter) GetFilterType() FilterType
func (*DaysPerMonthScheduledTriggerFilter) SetFilterType ¶ added in v2.4.1
func (t *DaysPerMonthScheduledTriggerFilter) SetFilterType(filterType FilterType)
func (*DaysPerMonthScheduledTriggerFilter) UnmarshalJSON ¶ added in v2.4.1
func (a *DaysPerMonthScheduledTriggerFilter) UnmarshalJSON(b []byte) error
UnmarshalJSON sets this DaysPerMonthScheduledTriggerFilter struct to its representation in JSON.
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 FeedTriggerFilter ¶ added in v2.39.0
type FeedTriggerFilter struct { Packages []packages.DeploymentActionSlugPackage `json:"Packages,omitempty"` // contains filtered or unexported fields }
func NewFeedTriggerFilter ¶ added in v2.39.0
func NewFeedTriggerFilter(packages []packages.DeploymentActionSlugPackage) *FeedTriggerFilter
func (*FeedTriggerFilter) GetFilterType ¶ added in v2.39.0
func (t *FeedTriggerFilter) GetFilterType() FilterType
func (*FeedTriggerFilter) SetFilterType ¶ added in v2.39.0
func (t *FeedTriggerFilter) SetFilterType(filterType FilterType)
type FilterType ¶
type FilterType int
const ( ContinuousDailySchedule FilterType = iota CronExpressionSchedule DailySchedule DaysPerMonthSchedule DaysPerWeekSchedule MachineFilter OnceDailySchedule FeedFilter )
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)
func (*OnceDailyScheduledTriggerFilter) UnmarshalJSON ¶ added in v2.4.1
func (a *OnceDailyScheduledTriggerFilter) UnmarshalJSON(b []byte) error
UnmarshalJSON sets this OnceDailyScheduledTriggerFilter struct to its representation in JSON.
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
- days_per_month_scheduled_trigger_filter.go
- deployment_target_filter.go
- feed_trigger_filter.go
- filter_type.go
- filter_type_string.go
- json.go
- monthly_schedule.go
- monthly_schedule_string.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