filters

package
v0.0.0-...-97a7976 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterAggregates

func FilterAggregates(data *[]interface{}, token *jwt.Token) []interface{}

FilterAggregates based on role's datacenters

func FilterChecks

func FilterChecks(data *[]interface{}, token *jwt.Token) []interface{}

FilterChecks based on role's datacenters and subscriptions

func FilterClients

func FilterClients(data *[]interface{}, token *jwt.Token) []interface{}

FilterClients based on role's datacenters and subscriptions

func FilterDatacenters

func FilterDatacenters(data []*structs.Datacenter, token *jwt.Token) []*structs.Datacenter

FilterDatacenters based on role's datacenters

func FilterEvents

func FilterEvents(data *[]interface{}, token *jwt.Token) []interface{}

FilterEvents based on role's datacenters and subscriptions

func FilterStashes

func FilterStashes(data *[]interface{}, token *jwt.Token) []interface{}

FilterStashes based on role's datacenters

func FilterSubscriptions

func FilterSubscriptions(data *[]string, token *jwt.Token) []string

FilterSubscriptions based on role's subscriptions

func GetRequest

func GetRequest(dc string, token *jwt.Token) bool

GetRequest is a function that filters GET requests.

func PostRequest

func PostRequest(token *jwt.Token, data *interface{}) bool

PostRequest is a function that filters POST requests.

func SensuData

func SensuData(token *jwt.Token, data *structs.Data) *structs.Data

SensuData is a function that filters Sensu Data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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