util

package
v0.0.0-...-7f16cab Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendVariables

func AppendVariables(query interface{}, tplVars []sdk.TemplateVar) (interface{}, error)

func GetTargets

func GetTargets(panel *sdk.Panel) (*[]sdk.Target, error)

GetTargets returns a list of targets for the given panel. Custom logic has to be implemented for panels of type custom as the sdk implementation does not support it.

func Int64Pointer

func Int64Pointer(input int64) *int64

func IntPointer

func IntPointer(input int) *int

func OverrideTarget

func OverrideTarget(panel *sdk.Panel, targets []sdk.Target) error

OverrideTarget replaces the targets in the panel. This has to be implemented per panel type as the sdk method does not work properly for all the different types.

func PanelPointerSlice

func PanelPointerSlice(panels []sdk.Panel) []*sdk.Panel

func PanelSlice

func PanelSlice(panels []*sdk.Panel) []sdk.Panel

func StringPointer

func StringPointer(input string) *string

Types

This section is empty.

Jump to

Keyboard shortcuts

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