Documentation ¶
Index ¶
- type SensuRepository
- func (repo SensuRepository) AddNewMember(sensuurl string, token string, member string) error
- func (repo SensuRepository) AddResource(sensuurl string, token string, resource string, namespace string, ...) error
- func (repo SensuRepository) CheckMemberExist(sensuurl string, token string, member string) bool
- func (repo SensuRepository) CheckResourceExist(sensuurl string, token string, resource string, namespace string, name string) bool
- func (repo SensuRepository) CreateOperatorUserGetToken(sensuurl string) string
- func (repo SensuRepository) DeleteResource(sensuurl string, token string, namespace string, resource string, name string) error
- func (repo SensuRepository) GetClusterID(sensuurl string, token string) string
- func (repo SensuRepository) GetOperatorUserSensuAPIToken(sensuurl string) string
- func (repo SensuRepository) GetSensuAPIToken(sensuurl string) string
- func (repo SensuRepository) RemoveMember(sensuurl string, token string, member string) error
- func (repo SensuRepository) SensuBackendHealth(sensuurl string) bool
- func (repo SensuRepository) SensuTestToken(sensuurl string, token string) bool
- func (repo SensuRepository) SensuVersion(sensuurl string, version string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SensuRepository ¶
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
Click to show internal directories.
Click to hide internal directories.