scalityuicomponent

package
v0.0.0-...-12af2e8 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultServicePort = 80

DefaultServicePort is the default port used to connect to the UI component service

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFetcher

type ConfigFetcher interface {
	FetchConfig(ctx context.Context, namespace, serviceName string, port int) (string, error)
}

ConfigFetcher defines an interface for fetching UI component configurations

type ConfigMeta

type ConfigMeta struct {
	Kind string `json:"kind"`
}

ConfigMeta represents the metadata section of the micro-app-configuration

type ConfigSpec

type ConfigSpec struct {
	RemoteEntryPath string `json:"remoteEntryPath"`
	PublicPath      string `json:"publicPath"`
	Version         string `json:"version"`
}

ConfigSpec represents the spec section of the micro-app-configuration

type K8sServiceProxyFetcher

type K8sServiceProxyFetcher struct {
}

K8sServiceProxyFetcher implements ConfigFetcher using Kubernetes service proxy

func (*K8sServiceProxyFetcher) FetchConfig

func (f *K8sServiceProxyFetcher) FetchConfig(ctx context.Context, namespace, serviceName string, port int) (string, error)

FetchConfig retrieves the micro-app configuration from the specified service

type MicroAppConfig

type MicroAppConfig struct {
	Kind       string     `json:"kind"`
	ApiVersion string     `json:"apiVersion"`
	Metadata   ConfigMeta `json:"metadata"`
	Spec       ConfigSpec `json:"spec"`
}

MicroAppConfig represents the structure of the micro-app-configuration file

type ScalityUIComponentReconciler

type ScalityUIComponentReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	ConfigFetcher ConfigFetcher
}

ScalityUIComponentReconciler reconciles a ScalityUIComponent object

func NewScalityUIComponentReconciler

func NewScalityUIComponentReconciler(client client.Client, scheme *runtime.Scheme) *ScalityUIComponentReconciler

NewScalityUIComponentReconciler creates a new ScalityUIComponentReconciler

func (*ScalityUIComponentReconciler) Reconcile

func (*ScalityUIComponentReconciler) SetupWithManager

func (r *ScalityUIComponentReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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