sensuclient

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SensuRepository

type SensuRepository struct {
	Client *http.Client
}

SensuRepository type

func (SensuRepository) AddNewMember

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

AddNewMember func

func (SensuRepository) AddResource

func (repo SensuRepository) AddResource(sensuurl string, token string, resource string, namespace string, bodymarshal []byte) error

AddResource func

func (SensuRepository) CheckMemberExist

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

CheckMemberExist func

func (SensuRepository) CheckResourceExist

func (repo SensuRepository) CheckResourceExist(sensuurl string, token string, resource string, namespace string, name string) bool

CheckResourceExist func

func (SensuRepository) CreateOperatorUserGetToken

func (repo SensuRepository) CreateOperatorUserGetToken(sensuurl string) string

CreateOperatorUserGetToken func used by sensu backend controller

func (SensuRepository) DeleteResource

func (repo SensuRepository) DeleteResource(sensuurl string, token string, namespace string, resource string, name string) error

DeleteResource func

func (SensuRepository) GetClusterID

func (repo SensuRepository) GetClusterID(sensuurl string, token string) string

GetClusterID func

func (SensuRepository) GetOperatorUserSensuAPIToken

func (repo SensuRepository) GetOperatorUserSensuAPIToken(sensuurl string) string

GetOperatorUserSensuAPIToken func used for others controllers: asset, checks and go on.

func (SensuRepository) GetSensuAPIToken

func (repo SensuRepository) GetSensuAPIToken(sensuurl string) string

GetSensuAPIToken func

func (SensuRepository) RemoveMember

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

RemoveMember func

func (SensuRepository) SensuBackendHealth

func (repo SensuRepository) SensuBackendHealth(sensuurl string) bool

SensuBackendHealth func

func (SensuRepository) SensuTestToken

func (repo SensuRepository) SensuTestToken(sensuurl string, token string) bool

SensuTestToken func to test if a token still valid

func (SensuRepository) SensuVersion

func (repo SensuRepository) SensuVersion(sensuurl string, version string) bool

SensuVersion func

Jump to

Keyboard shortcuts

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