cronjobs

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFetchingCronJobs = errors.New("error fetching cronjobs")
)

Functions

func GetMock

func GetMock(opts MockSpec) unstructured.Unstructured

func NewResource

func NewResource(ctx context.Context, res resource.ResourceClient, namespace string, originalSuspendStatus map[string]bool) (resource.Resource, error)

Types

type MockSpec

type MockSpec struct {
	Namespace       string
	Name            string
	Labels          map[string]string
	ResourceVersion string
	Schedule        string
	Suspend         *bool
	Version         string
}

type OriginalCronJobStatus

type OriginalCronJobStatus struct {
	Name    string `json:"name"`
	Suspend bool   `json:"suspend"`
}

type OriginalSuspendStatus

type OriginalSuspendStatus map[string]bool

func GetOriginalInfoToRestore

func GetOriginalInfoToRestore(savedData []byte) (OriginalSuspendStatus, error)

Jump to

Keyboard shortcuts

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