rssgenerator

package
v0.0.0-...-395ddcd Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Overview

Package rssgenerator contains generation of resources required to start a db-backup runner through the Kubernetes API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	Backup           *v1.DatabaseBackup
	ControllerClient versioned.Interface
	TargetNamespace  string
	ImagePrefix      string
	K8sClient        kubernetes.Interface
	LogLevel         string
	ResourceName     string
}

Opts contains the options given to any generator function

type Result

type Result struct {
	Secret  *corev1.Secret
	Service *corev1.Service
	STS     *appsv1.StatefulSet

	Hash string `hash:"-"`
}

Result contains the result from the generator function

func FromKubernetesResources

func FromKubernetesResources(o Opts) (res Result, err error)

FromKubernetesResources generates the required resources to start a database backup runner

Jump to

Keyboard shortcuts

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