syncer

package
v1.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomSyncer

type CustomSyncer struct {
	upgradev1.ContainerSpec
	MountPath  string `json:"mountPath"`
	OutputFile string `json:"outputFile"`
	// contains filtered or unexported fields
}

func (*CustomSyncer) Sync

Sync attemps to get a list of managed os versions based on the managed os version channel configuration, on success it updates the ready condition

type DefaultProvider

type DefaultProvider struct{}

func (DefaultProvider) NewOSVersionsSyncer

func (sp DefaultProvider) NewOSVersionsSyncer(spec elementalv1.ManagedOSVersionChannelSpec, operatorImage string, config *rest.Config) (Syncer, error)

type JSONSyncer

type JSONSyncer struct {
	URI     string `json:"uri"`
	Timeout string `json:"timeout"`
}

func (*JSONSyncer) Sync

Sync attemps to get a list of managed os versions based on the managed os version channel configuration, on success it updates the ready condition

type Provider

type Provider interface {
	NewOSVersionsSyncer(spec elementalv1.ManagedOSVersionChannelSpec, operatorImage string, config *rest.Config) (Syncer, error)
}

type Syncer

type Syncer interface {
	// Sync function returns a list of managed os versions and sets the ready condition of the channel status accordingly
	Sync(ctx context.Context, cl client.Client, ch *elementalv1.ManagedOSVersionChannel) ([]elementalv1.ManagedOSVersion, error)
}

Jump to

Keyboard shortcuts

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