backendmanager

package
v0.0.0-...-0585a07 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const BackendResourceName = "kyma-companion-backend"

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendManager

type BackendManager struct {
	client.Client
	// contains filtered or unexported fields
}

func (*BackendManager) GenerateNewDeployment

func (m *BackendManager) GenerateNewDeployment(companion *kcmv1alpha1.Companion,
	backendImage string,
) (*kappsv1.Deployment, error)

func (*BackendManager) GenerateNewSecret

func (m *BackendManager) GenerateNewSecret(companion *kcmv1alpha1.Companion, config Config) (*kcorev1.Secret, error)

func (*BackendManager) GetBackendConfig

func (m *BackendManager) GetBackendConfig(ctx context.Context) (*Config, error)

type Config

type Config struct {
	HanaDB       []byte
	Redis        []byte
	AICoreSecret []byte
	AICoreConfig []byte
}

type Manager

type Manager interface {
	GenerateNewDeployment(companion *kcmv1alpha1.Companion, backendImage string) (*kappsv1.Deployment, error)
	GenerateNewSecret(companion *kcmv1alpha1.Companion, config Config) (*kcorev1.Secret, error)
	GetBackendConfig(ctx context.Context) (*Config, error)
}

func NewBackendManager

func NewBackendManager(
	client client.Client,
	kubeClient kcmk8s.Client,
	logger *zap.SugaredLogger,
) Manager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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