ccconfig

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 6 Imported by: 3

README

ccConfig interface

The ccConfig component is an approach to read in JSON configuration files in the ClusterCockpit ecosystem. All configuration files have the following structure:

{
    "main" : {
        // Main configuration for component
    },
    "foo" : {
        // Configuration for the sub-component 'foo'
    }
    "bar" : "bar.json"
}

After initializing the ccConfig component with Init(filename), the individual configuration sections can be retrieved with GetPackageConfig("key"). It always returns the content as json.RawMessage and has to be converted as needed.

Documentation

Overview

Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. This file is part of cc-lib. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPackageConfig

func GetPackageConfig(key string) json.RawMessage

func Init

func Init(filename string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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