syncer

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 13 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
	// contains filtered or unexported fields
}

func (*CustomSyncer) GetMountPath added in v1.4.0

func (c *CustomSyncer) GetMountPath() string

func (*CustomSyncer) GetOutputFile added in v1.4.0

func (c *CustomSyncer) GetOutputFile() string

func (*CustomSyncer) ToContainers added in v1.4.0

func (c *CustomSyncer) ToContainers() []corev1.Container

type DefaultProvider

type DefaultProvider struct{}

func (DefaultProvider) NewOSVersionsSyncer

func (sp DefaultProvider) NewOSVersionsSyncer(spec elementalv1.ManagedOSVersionChannelSpec, operatorImage string) (Syncer, error)

func (DefaultProvider) ReadPodLogs added in v1.4.0

func (sp DefaultProvider) ReadPodLogs(ctx context.Context, kcl *kubernetes.Clientset, pod *corev1.Pod, container string) ([]byte, error)

type JSONSyncer

type JSONSyncer struct {
	URI     string `json:"uri"`
	Timeout string `json:"timeout"`
	// contains filtered or unexported fields
}

func (*JSONSyncer) GetMountPath added in v1.4.0

func (j *JSONSyncer) GetMountPath() string

func (*JSONSyncer) GetOutputFile added in v1.4.0

func (j *JSONSyncer) GetOutputFile() string

func (*JSONSyncer) ToContainers added in v1.4.0

func (j *JSONSyncer) ToContainers() []corev1.Container

type Provider

type Provider interface {
	NewOSVersionsSyncer(spec elementalv1.ManagedOSVersionChannelSpec, operatorImage string) (Syncer, error)
	ReadPodLogs(ctx context.Context, kcl *kubernetes.Clientset, pod *corev1.Pod, container string) ([]byte, error)
}

type Syncer

type Syncer interface {
	ToContainers() []corev1.Container
	GetMountPath() string
	GetOutputFile() string
}

Jump to

Keyboard shortcuts

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