utils

package
v1.0.43 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployDataviewer

func DeployDataviewer(ctx context.Context, reconciler common.Reconciler, scenario *v1alpha1.Scenario) error

func DeployGrafana

func DeployGrafana(ctx context.Context, reconciler common.Reconciler, scenario *v1alpha1.Scenario, agentRefs []string) error

func DeployPrometheus

func DeployPrometheus(ctx context.Context, reconciler common.Reconciler, scenario *v1alpha1.Scenario) error

func ExpandMacros

func ExpandMacros(ctx context.Context, cli client.Client, nm string, inputs *[]v1alpha1.UserInputs) error

func ExpandSliceInputs

func ExpandSliceInputs(ctx context.Context, cli client.Client, namespace string, inputs *[]string) error

func InstallGrafanaDashboards

func InstallGrafanaDashboards(ctx context.Context, reconciler common.Reconciler, scenario *v1alpha1.Scenario, spec *v1alpha1.ServiceSpec, telemetryAgents []string) error

func LoadTemplates

func LoadTemplates(ctx context.Context, cli client.Client, scenario *v1alpha1.Scenario) error

func RandomFixedIndexes

func RandomFixedIndexes(start, end, count uint) []uint

RandomFixedIndexes returns the `count` random indexes between `start` and `end`. [start, end).

Types

type SList

type SList []*v1alpha1.Service

SList is a service list.

func (SList) GetNames

func (in SList) GetNames() []string

func (SList) ToString

func (in SList) ToString() string

Jump to

Keyboard shortcuts

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