Documentation ¶
Index ¶
- type IntervalActionClient
- type IntervalActionRestClient
- func (s *IntervalActionRestClient) Add(ia *models.IntervalAction, ctx context.Context) (string, error)
- func (s *IntervalActionRestClient) Delete(id string, ctx context.Context) error
- func (s *IntervalActionRestClient) DeleteByName(name string, ctx context.Context) error
- func (s *IntervalActionRestClient) IntervalAction(id string, ctx context.Context) (models.IntervalAction, error)
- func (s *IntervalActionRestClient) IntervalActionForName(name string, ctx context.Context) (models.IntervalAction, error)
- func (s *IntervalActionRestClient) IntervalActions(ctx context.Context) ([]models.IntervalAction, error)
- func (s *IntervalActionRestClient) IntervalActionsForTargetByName(name string, ctx context.Context) ([]models.IntervalAction, error)
- func (s *IntervalActionRestClient) Update(ia models.IntervalAction, ctx context.Context) error
- type IntervalClient
- type IntervalRestClient
- func (s *IntervalRestClient) Add(interval *models.Interval, ctx context.Context) (string, error)
- func (s *IntervalRestClient) Delete(id string, ctx context.Context) error
- func (s *IntervalRestClient) DeleteByName(name string, ctx context.Context) error
- func (s *IntervalRestClient) Interval(id string, ctx context.Context) (models.Interval, error)
- func (s *IntervalRestClient) IntervalForName(name string, ctx context.Context) (models.Interval, error)
- func (s *IntervalRestClient) Intervals(ctx context.Context) ([]models.Interval, error)
- func (s *IntervalRestClient) Update(interval models.Interval, ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntervalActionClient ¶
type IntervalActionClient interface { Add(dev *models.IntervalAction, ctx context.Context) (string, error) Delete(id string, ctx context.Context) error DeleteByName(name string, ctx context.Context) error IntervalAction(id string, ctx context.Context) (models.IntervalAction, error) IntervalActionForName(name string, ctx context.Context) (models.IntervalAction, error) IntervalActions(ctx context.Context) ([]models.IntervalAction, error) IntervalActionsForTargetByName(name string, ctx context.Context) ([]models.IntervalAction, error) Update(dev models.IntervalAction, ctx context.Context) error }
func NewIntervalActionClient ¶
func NewIntervalActionClient(url string) IntervalActionClient
type IntervalActionRestClient ¶
type IntervalActionRestClient struct {
// contains filtered or unexported fields
}
receiver for intervalActionClient
func (*IntervalActionRestClient) Add ¶
func (s *IntervalActionRestClient) Add(ia *models.IntervalAction, ctx context.Context) (string, error)
Add a interval action.
func (*IntervalActionRestClient) Delete ¶
func (s *IntervalActionRestClient) Delete(id string, ctx context.Context) error
Delete a interval action (specified by id).
func (*IntervalActionRestClient) DeleteByName ¶
func (s *IntervalActionRestClient) DeleteByName(name string, ctx context.Context) error
Delete a interval action (specified by name).
func (*IntervalActionRestClient) IntervalAction ¶
func (s *IntervalActionRestClient) IntervalAction(id string, ctx context.Context) (models.IntervalAction, error)
IntervalAction returns the IntervalAction specified by id.
func (*IntervalActionRestClient) IntervalActionForName ¶
func (s *IntervalActionRestClient) IntervalActionForName(name string, ctx context.Context) (models.IntervalAction, error)
IntervalActionForName returns the IntervalAction specified by name.
func (*IntervalActionRestClient) IntervalActions ¶
func (s *IntervalActionRestClient) IntervalActions(ctx context.Context) ([]models.IntervalAction, error)
Get a list of all interval actions.
func (*IntervalActionRestClient) IntervalActionsForTargetByName ¶
func (s *IntervalActionRestClient) IntervalActionsForTargetByName(name string, ctx context.Context) ([]models.IntervalAction, error)
Get the interval action for service by name.
func (*IntervalActionRestClient) Update ¶
func (s *IntervalActionRestClient) Update(ia models.IntervalAction, ctx context.Context) error
Update an interval action.
type IntervalClient ¶
type IntervalClient interface { Add(dev *models.Interval, ctx context.Context) (string, error) Delete(id string, ctx context.Context) error DeleteByName(name string, ctx context.Context) error Interval(id string, ctx context.Context) (models.Interval, error) IntervalForName(name string, ctx context.Context) (models.Interval, error) Intervals(ctx context.Context) ([]models.Interval, error) Update(interval models.Interval, ctx context.Context) error }
func NewIntervalClient ¶
func NewIntervalClient(url string) IntervalClient
type IntervalRestClient ¶
type IntervalRestClient struct {
// contains filtered or unexported fields
}
func (*IntervalRestClient) Delete ¶
func (s *IntervalRestClient) Delete(id string, ctx context.Context) error
Delete a interval (specified by id).
func (*IntervalRestClient) DeleteByName ¶
func (s *IntervalRestClient) DeleteByName(name string, ctx context.Context) error
Delete a interval (specified by name).
func (*IntervalRestClient) IntervalForName ¶
func (s *IntervalRestClient) IntervalForName(name string, ctx context.Context) (models.Interval, error)
ScheduleForName returns the Schedule specified by name.
Click to show internal directories.
Click to hide internal directories.