Documentation
¶
Index ¶
- Constants
- type AuthorizationClient
- func (d *AuthorizationClient) AddService(service Service) error
- func (d *AuthorizationClient) DeleteService(service Service) error
- func (d *AuthorizationClient) GetHECConfig()
- func (d *AuthorizationClient) GetService(services chan<- *Service)
- func (d *AuthorizationClient) ResendAll()
- func (d *AuthorizationClient) SendCommand(command Command) error
- func (d *AuthorizationClient) SendCommandString(command string)
- func (d *AuthorizationClient) SplunkAddHEC(SplunkHttp SplunkConfig) error
- type AuthorizationService
- type Command
- type Service
- type SplunkConfig
Constants ¶
View Source
const ( AuthTypeUsernamePassword = 1 AuthTypeXAuthToken = 2 AuthTypeBearerToken = 3 )
View Source
const ( RESEND = "resend" ADDSERVICE = "addservice" DELETESERVICE = "deleteservice" TERMINATE = "terminate" SPLUNKADDHEC = "splunkaddhec" GETHECCONFIG = "gethecconfig" )
View Source
const ( CommandQueue = "/authorization/command" EventQueue = "/authorization" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationClient ¶
type AuthorizationClient struct {
Bus messagebus.Messagebus
}
func (*AuthorizationClient) AddService ¶
func (d *AuthorizationClient) AddService(service Service) error
func (*AuthorizationClient) DeleteService ¶
func (d *AuthorizationClient) DeleteService(service Service) error
func (*AuthorizationClient) GetHECConfig ¶
func (d *AuthorizationClient) GetHECConfig()
func (*AuthorizationClient) GetService ¶
func (d *AuthorizationClient) GetService(services chan<- *Service)
func (*AuthorizationClient) ResendAll ¶
func (d *AuthorizationClient) ResendAll()
func (*AuthorizationClient) SendCommand ¶
func (d *AuthorizationClient) SendCommand(command Command) error
func (*AuthorizationClient) SendCommandString ¶
func (d *AuthorizationClient) SendCommandString(command string)
func (*AuthorizationClient) SplunkAddHEC ¶
func (d *AuthorizationClient) SplunkAddHEC(SplunkHttp SplunkConfig) error
type AuthorizationService ¶
type AuthorizationService struct {
Bus messagebus.Messagebus
}
func (*AuthorizationService) ReceiveCommand ¶
func (d *AuthorizationService) ReceiveCommand(commands chan<- *Command) error
func (*AuthorizationService) SendService ¶
func (d *AuthorizationService) SendService(service Service) error
func (*AuthorizationService) Sendconfig ¶
func (d *AuthorizationService) Sendconfig(config SplunkConfig) error
type Command ¶
type Command struct { Command string `json:"command"` SplunkConfig SplunkConfig `json:"Splunkconfig",omitempty"` Service Service `json:"service,omitempty"` }
type SplunkConfig ¶
Click to show internal directories.
Click to hide internal directories.