groups

package
v0.0.0-...-a7cb739 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package groups contains definition of data structure that represents the relative information about a group and a set of functions to handle that data structure.

Generated documentation is available at: https://godoc.org/github.com/RedHatInsights/insights-results-aggregator-mock/groups

Documentation in literate-programming-style is available at: https://redhatinsights.github.io/insights-results-aggregator-mock/packages/groups/groups.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseGroupConfigFile

func ParseGroupConfigFile(groupConfigPath string) (map[string]Group, error)

ParseGroupConfigFile parses the groups configuration file and return the read groups

Types

type Configuration

type Configuration struct {
	ConfigPath string `mapstructure:"path" toml:"path"`
}

Configuration represents configuration for groups configuration file

type Group

type Group struct {
	Name        string   `yaml:"name" json:"title"`
	Description string   `yaml:"description" json:"description"`
	Tags        []string `yaml:"tags" json:"tags"`
}

Group represent the relative information about a group

Jump to

Keyboard shortcuts

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