utils

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperatorVersion = "0.3.8"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CronRegistry added in v0.3.0

type CronRegistry interface {
	Get(name string) (string, bool)
	Add(name string, schedule string, cmd func()) error
	Remove(name string) error
}

This is to make mocking easier

func NewCronRegistry added in v0.3.0

func NewCronRegistry() CronRegistry

type CronSchedule added in v0.3.0

type CronSchedule struct {
	ID       cron.EntryID
	Schedule string
}

type VersionService added in v0.3.0

type VersionService interface {
	LatestVersions(ctx context.Context, endpoint string,
		versions *koapi.ProductVersions) (*koapi.DetailedProductVersions, error)
}

func NewVersionServiceClient added in v0.3.0

func NewVersionServiceClient() VersionService

Jump to

Keyboard shortcuts

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