services

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPrescalingEventService

type IPrescalingEventService interface {
	Create(prescalingevent *v1.PrescalingEvent) (*PrescalingEventOutput, error)
	Delete(name string) error
	List() (*PrescalingEventListOutput, error)
	Get(name string) (*PrescalingEventOutput, error)
	Update(prescalingevent *v1.PrescalingEvent) (*PrescalingEventOutput, error)
	Current() (*PrescalingEventOutput, error)
	Clean(retentionDays int) error
	GetClock() clock.PassiveClock
}

func NewEventService

func NewEventService(prescalingEventRepository prescalingv1.PrescalingEventInterface, clock clock.PassiveClock) IPrescalingEventService

type PrescalingEventListOutput

type PrescalingEventListOutput []PrescalingEventOutput

type PrescalingEventOutput

type PrescalingEventOutput struct {
	Name string `json:"name"`
	v1.PrescalingEventSpec
}

type PrescalingEventService

type PrescalingEventService struct {
	// contains filtered or unexported fields
}

func (*PrescalingEventService) Clean

func (e *PrescalingEventService) Clean(retentionDays int) error

func (*PrescalingEventService) Create

func (e *PrescalingEventService) Create(prescalingevent *v1.PrescalingEvent) (*PrescalingEventOutput, error)

func (*PrescalingEventService) Current

func (*PrescalingEventService) Delete

func (e *PrescalingEventService) Delete(name string) error

func (*PrescalingEventService) Get

func (*PrescalingEventService) GetClock

func (*PrescalingEventService) List

func (*PrescalingEventService) Update

func (e *PrescalingEventService) Update(prescalingevent *v1.PrescalingEvent) (*PrescalingEventOutput, error)

Jump to

Keyboard shortcuts

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