Documentation ¶
Index ¶
- func AddAsset(sensuurl string, token string, namespace string, asset *v2.Asset) error
- func AddCheck(sensuurl string, token string, namespace string, check *v2.Check) error
- func AddFilter(sensuurl string, token string, namespace string, filter *v2.EventFilter) error
- func AddHandler(sensuurl string, token string, namespace string, handler *v2.Handler) error
- func AddMutator(sensuurl string, token string, namespace string, mutator *v2.Mutator) error
- func AddNamespace(sensuurl string, token string, namespace string) error
- func AddNewMember(sensuurl string, token string, member string) error
- func CheckAssetExist(sensuurl string, token string, namespace string, asset string) bool
- func CheckExist(sensuurl string, token string, namespace string, check string) bool
- func CheckFilterExist(sensuurl string, token string, namespace string, filter string) bool
- func CheckHandlerExist(sensuurl string, token string, namespace string, handler string) bool
- func CheckMemberExist(sensuurl string, token string, member string) bool
- func CheckMutatorExist(sensuurl string, token string, namespace string, mutator string) bool
- func CheckNamespaceExist(sensuurl string, token string, namespace string) bool
- func CreateOperatorUserGetToken(sensuurl string) string
- func DeleteAsset(sensuurl string, token string, namespace string, asset string) error
- func DeleteCheck(sensuurl string, token string, namespace string, check string) error
- func DeleteFilter(sensuurl string, token string, namespace string, filter string) error
- func DeleteHandler(sensuurl string, token string, namespace string, handler string) error
- func DeleteMutator(sensuurl string, token string, namespace string, mutator string) error
- func DeleteNamespace(sensuurl string, token string, namespace string) error
- func GetClusterID(sensuurl string, token string) string
- func GetOperatorUserSensuAPIToken(sensuurl string) string
- func GetSensuAPIToken(sensuurl string) string
- func RemoveMember(sensuurl string, token string, member string) error
- func SensuHealth(sensuurl string) bool
- func SensuTestToken(sensuurl string, token string) bool
- func SensuVersion(sensuurl string, version string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHandler ¶
AddHandler func add a new handler in sensu api
func AddMutator ¶
AddMutator func add a new mutator in sensu api
func AddNamespace ¶
AddNamespace func add a new namespace in sensu api
func AddNewMember ¶
AddNewMember func add a new member to a cluster. Used by sensu backend controller.
func CheckAssetExist ¶
CheckAssetExist func check if that asset already exist in sensu api
func CheckExist ¶
CheckExist func check if that check already exist in sensu api
func CheckFilterExist ¶
CheckFilterExist func check if that filter already exist in sensu api
func CheckHandlerExist ¶
CheckHandlerExist func check if that handler already exist in sensu api
func CheckMemberExist ¶
CheckMemberExist func check if that member exist in that sensu cluster
func CheckMutatorExist ¶
CheckMutatorExist func check if that mutator already exist in sensu api
func CheckNamespaceExist ¶
CheckNamespaceExist func check if that namespace already exist in sensu api
func CreateOperatorUserGetToken ¶
CreateOperatorUserGetToken func used by sensu backend controller to create operator user and return his token
func DeleteAsset ¶
DeleteAsset func delete a asset from sensu api
func DeleteCheck ¶
DeleteCheck func delete a check from sensu api
func DeleteFilter ¶
DeleteFilter func delete a filter from sensu api
func DeleteHandler ¶
DeleteHandler func delete a handler from sensu api
func DeleteMutator ¶
DeleteMutator func delete a mutator from sensu api
func DeleteNamespace ¶
DeleteNamespace func delete a namespace from sensu api
func GetClusterID ¶
GetClusterID func returns Cluster ID from sensu api
func GetOperatorUserSensuAPIToken ¶
GetOperatorUserSensuAPIToken func used by others controllers to get sensu operator user token
func GetSensuAPIToken ¶
GetSensuAPIToken func is used by sensu backend to get admin token using Default credentials
func RemoveMember ¶
RemoveMember func remove a member from cluster to downsize an sensu cluster. Used by sensu backend controller
func SensuHealth ¶
SensuHealth func used to test if Sensu API are up and running
func SensuTestToken ¶
SensuTestToken func is used by sensu backend controller to test admin and operator token
func SensuVersion ¶
SensuVersion func used to test if Sensu API are up and running
Types ¶
This section is empty.