scheduler

package
v0.1.116 Latest Latest
Warning

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

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

Documentation

Overview

scheduler provides clients used for integration with the support-scheduler service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntervalActionClient

type IntervalActionClient interface {
	// Add a new schedule interval action
	Add(ctx context.Context, ia *models.IntervalAction) (string, error)
	// Delete a schedule interval action for the specified ID
	Delete(ctx context.Context, id string) error
	// Delete a schedule interval action for the specified name
	DeleteByName(ctx context.Context, name string) error
	// IntervalAction loads a schedule interval action for the specified ID
	IntervalAction(ctx context.Context, id string) (models.IntervalAction, error)
	// IntervalActionForName loads a schedule interval action for the specified name
	IntervalActionForName(ctx context.Context, name string) (models.IntervalAction, error)
	// IntervalActions lists all schedule interval actions
	IntervalActions(ctx context.Context) ([]models.IntervalAction, error)
	// IntervalActionsForTargetByName lists all schedule interval actions that target a particular service
	IntervalActionsForTargetByName(ctx context.Context, name string) ([]models.IntervalAction, error)
	// Update a schedule interval action
	Update(ctx context.Context, ia models.IntervalAction) error
}

IntervalActionClient defines the interface for interactions with the IntervalAction endpoint on support-scheduler.

func NewIntervalActionClient

func NewIntervalActionClient(urlClient interfaces.URLClient) IntervalActionClient

NewIntervalActionClient creates an instance of IntervalActionClient

type IntervalClient

type IntervalClient interface {
	// Add a new scheduling interval
	Add(ctx context.Context, interval *models.Interval) (string, error)
	// Delete eliminates a scheduling interval for the specified ID
	Delete(ctx context.Context, id string) error
	// Delete eliminates a scheduling interval for the specified name
	DeleteByName(ctx context.Context, name string) error
	// Interval loads the scheduling interval for the specified ID
	Interval(ctx context.Context, id string) (models.Interval, error)
	// IntervalForName loads the scheduling interval for the specified name
	IntervalForName(ctx context.Context, name string) (models.Interval, error)
	// Intervals lists all scheduling intervals
	Intervals(ctx context.Context) ([]models.Interval, error)
	// Update a scheduling interval
	Update(ctx context.Context, interval models.Interval) error
}

IntervalClient defines the interface for interactions with the Interval endpoint on support-scheduler.

func NewIntervalClient

func NewIntervalClient(urlClient interfaces.URLClient) IntervalClient

NewIntervalClient creates an instance of IntervalClient

Jump to

Keyboard shortcuts

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