configurationcontroller

package
v1.0.41 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

TODO: Describe package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOperatorConfiguration

func GetOperatorConfiguration() gin.HandlerFunc

GetOperatorConfiguration returns a gin.HandlerFunc that handles GET requests for operator configuration. It checks the access of the user and retrieves the operator configuration based on the cluster ID. If the operator configuration is not found, it returns a 404 error. If the cluster configuration is found, it checks the versions of the tasks and returns the operator configuration.

func GetTaskConfiguration

func GetTaskConfiguration() gin.HandlerFunc

GetTaskConfiguration returns a gin.HandlerFunc that handles GET requests for task configuration. It checks the access of the user and retrieves the task configuration based on the cluster ID and task name. If the task configuration is not found, it returns a 404 error. If the task configuration is found, it returns the task configuration (apicontracts.OperatorJob).

Types

This section is empty.

Jump to

Keyboard shortcuts

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