config

package
v0.0.0-...-aa060a1 Latest Latest
Warning

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

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

Documentation

Overview

Package config represents the plugin configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateChanges

func ValidateChanges(
	oldConfiguration *Configuration,
	newConfiguration *Configuration,
	helper *common.Plugin,
) []*operator.ValidationError

ValidateChanges validates the changes between the old configuration to the new configuration

Types

type Configuration

type Configuration struct {
	Labels      map[string]string
	Annotations map[string]string
}

Configuration represents the plugin configuration parameters

func FromParameters

func FromParameters(
	helper *common.Plugin,
) (*Configuration, []*operator.ValidationError)

FromParameters builds a plugin configuration from the configuration parameters

func (*Configuration) ToParameters

func (config *Configuration) ToParameters() (map[string]string, error)

ToParameters serialize the configuration to a map of plugin parameters

Jump to

Keyboard shortcuts

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