utils

package
v0.0.0-...-6aa9927 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthConfigToMap

func AuthConfigToMap(auth *uiv1alpha1.AuthConfig) map[string]interface{}

AuthConfigToMap converts AuthConfig to map[string]interface{}

func BuildAuthConfig

func BuildAuthConfig(authSpec *uiv1alpha1.AuthConfig) (map[string]interface{}, error)

BuildAuthConfig builds the authentication configuration

func ParseImageName

func ParseImageName(imageStr string) string

ParseImageName extracts the image name from a full image string (e.g., "nginx:1.21" -> "nginx")

func ParseImageTag

func ParseImageTag(imageStr string) string

ParseImageTag extracts the tag from a full image string (e.g., "nginx:1.21" -> "1.21") If no tag is present, returns "latest"

func ValidateAuthConfig

func ValidateAuthConfig(auth *uiv1alpha1.AuthConfig) error

ValidateAuthConfig validates that all required auth fields are present

Types

This section is empty.

Jump to

Keyboard shortcuts

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