usecase

package
v0.0.0-...-6fc2dc1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAsset

func AddAsset(sensuurl string, token string, namespace string, asset *v2.Asset) error

AddAsset func add a new asset in sensu api

func AddCheck

func AddCheck(sensuurl string, token string, namespace string, check *v2.Check) error

AddCheck func add a new check in sensu api

func AddFilter

func AddFilter(sensuurl string, token string, namespace string, filter *v2.EventFilter) error

AddFilter func add a new filter in sensu api

func AddHandler

func AddHandler(sensuurl string, token string, namespace string, handler *v2.Handler) error

AddHandler func add a new handler in sensu api

func AddMutator

func AddMutator(sensuurl string, token string, namespace string, mutator *v2.Mutator) error

AddMutator func add a new mutator in sensu api

func AddNamespace

func AddNamespace(sensuurl string, token string, namespace string) error

AddNamespace func add a new namespace in sensu api

func AddNewMember

func AddNewMember(sensuurl string, token string, member string) error

AddNewMember func add a new member to a cluster. Used by sensu backend controller.

func CheckAssetExist

func CheckAssetExist(sensuurl string, token string, namespace string, asset string) bool

CheckAssetExist func check if that asset already exist in sensu api

func CheckExist

func CheckExist(sensuurl string, token string, namespace string, check string) bool

CheckExist func check if that check already exist in sensu api

func CheckFilterExist

func CheckFilterExist(sensuurl string, token string, namespace string, filter string) bool

CheckFilterExist func check if that filter already exist in sensu api

func CheckHandlerExist

func CheckHandlerExist(sensuurl string, token string, namespace string, handler string) bool

CheckHandlerExist func check if that handler already exist in sensu api

func CheckMemberExist

func CheckMemberExist(sensuurl string, token string, member string) bool

CheckMemberExist func check if that member exist in that sensu cluster

func CheckMutatorExist

func CheckMutatorExist(sensuurl string, token string, namespace string, mutator string) bool

CheckMutatorExist func check if that mutator already exist in sensu api

func CheckNamespaceExist

func CheckNamespaceExist(sensuurl string, token string, namespace string) bool

CheckNamespaceExist func check if that namespace already exist in sensu api

func CreateOperatorUserGetToken

func CreateOperatorUserGetToken(sensuurl string) string

CreateOperatorUserGetToken func used by sensu backend controller to create operator user and return his token

func DeleteAsset

func DeleteAsset(sensuurl string, token string, namespace string, asset string) error

DeleteAsset func delete a asset from sensu api

func DeleteCheck

func DeleteCheck(sensuurl string, token string, namespace string, check string) error

DeleteCheck func delete a check from sensu api

func DeleteFilter

func DeleteFilter(sensuurl string, token string, namespace string, filter string) error

DeleteFilter func delete a filter from sensu api

func DeleteHandler

func DeleteHandler(sensuurl string, token string, namespace string, handler string) error

DeleteHandler func delete a handler from sensu api

func DeleteMutator

func DeleteMutator(sensuurl string, token string, namespace string, mutator string) error

DeleteMutator func delete a mutator from sensu api

func DeleteNamespace

func DeleteNamespace(sensuurl string, token string, namespace string) error

DeleteNamespace func delete a namespace from sensu api

func GetClusterID

func GetClusterID(sensuurl string, token string) string

GetClusterID func returns Cluster ID from sensu api

func GetOperatorUserSensuAPIToken

func GetOperatorUserSensuAPIToken(sensuurl string) string

GetOperatorUserSensuAPIToken func used by others controllers to get sensu operator user token

func GetSensuAPIToken

func GetSensuAPIToken(sensuurl string) string

GetSensuAPIToken func is used by sensu backend to get admin token using Default credentials

func RemoveMember

func RemoveMember(sensuurl string, token string, member string) error

RemoveMember func remove a member from cluster to downsize an sensu cluster. Used by sensu backend controller

func SensuHealth

func SensuHealth(sensuurl string) bool

SensuHealth func used to test if Sensu API are up and running

func SensuTestToken

func SensuTestToken(sensuurl string, token string) bool

SensuTestToken func is used by sensu backend controller to test admin and operator token

func SensuVersion

func SensuVersion(sensuurl string, version string) bool

SensuVersion func used to test if Sensu API are up and running

Types

This section is empty.

Jump to

Keyboard shortcuts

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