scheduler

package
v0.0.0-...-7b61fee Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Add a interval action.

func (*IntervalActionRestClient) Delete

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

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

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) Add

func (s *IntervalRestClient) Add(interval *models.Interval, ctx context.Context) (string, error)

interface implementations

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) Interval

func (s *IntervalRestClient) Interval(id string, ctx context.Context) (models.Interval, error)

support-scheduler returns the interval specified by id.

func (*IntervalRestClient) IntervalForName

func (s *IntervalRestClient) IntervalForName(name string, ctx context.Context) (models.Interval, error)

ScheduleForName returns the Schedule specified by name.

func (*IntervalRestClient) Intervals

func (s *IntervalRestClient) Intervals(ctx context.Context) ([]models.Interval, error)

Schedules returns the list of all schedules.

func (*IntervalRestClient) Update

func (s *IntervalRestClient) Update(interval models.Interval, ctx context.Context) error

Update a schedule.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL