imgcontroller

package
v0.0.0-...-f5227cc Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Namespace      string
	Client         *kubernetes.Clientset
	ControllerName string
	Image          fnrunv1alpha1.Image
	PodName        string
	De             *fnrunv1alpha1.DigestAndEntrypoint
	ConfigMap      *corev1.ConfigMap
	CreateClientFn CreateClientFn
	DeleteClientFn DeleteCLientFn
}

type Controller

type Controller interface {
	Start(ctx context.Context) error
}

func New

func New(cfg *Config) Controller

type CreateClientFn

type CreateClientFn func(image fnrunv1alpha1.Image, podName, podIP string) error

type DeleteCLientFn

type DeleteCLientFn func(image fnrunv1alpha1.Image)

Jump to

Keyboard shortcuts

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