config

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package config provides utilities for reading configfiles

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(file string, scheme *runtime.Scheme) (*v2alpha2.ProjectConfig, error)

Load loads controller configuration from the given file using the types registered in the scheme.

func OptionsFromConfig added in v0.8.0

func OptionsFromConfig(cfg *v2alpha2.ProjectConfig, scheme *runtime.Scheme) manager.Options

OptionsFromConfig creates a manager.Options based on a configuration file

func TokenFromConfig added in v0.12.5

func TokenFromConfig(cfg *v2alpha2.ProjectConfig) (string, error)

TokenFromConfig returns the Styra DAS api token directly from "styra.token" in the config or using the "styra.tokenSecretPath" to retrieve it fra a secret

Types

This section is empty.

Jump to

Keyboard shortcuts

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