Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WazuhConfig ¶ added in v0.3.1
func WazuhConfig() (*api.Configuration, error)
WazuhConfig creates and validates the Wazuh API client configuration
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func AuthWithUsernameAndPassword ¶
func AuthWithUsernameAndPassword(config configurations.WazuhCtlConfig) *Auth
type CreateIndexerUserPayload ¶ added in v0.3.1
type CreateIndexerUserPayload struct {
Password string `json:"password"`
}
type CreateNewIndexerUserOptions ¶ added in v0.3.1
type CreateNewIndexerUserOptions struct {
CreateIndexerUserPayload
IndexerRoleMappingPayload
}
type CreateNewWazuhUserOptions ¶ added in v0.3.1
type IndexerClient ¶ added in v0.3.1
type IndexerClient struct {
// contains filtered or unexported fields
}
func IndexerClientFactory ¶ added in v0.3.1
func IndexerClientFactory() *IndexerClient
func (*IndexerClient) CreateNewUserInOSIndexer ¶ added in v0.3.1
func (ctl *IndexerClient) CreateNewUserInOSIndexer(opts *CreateNewIndexerUserOptions) ([]byte, error)
type IndexerRoleMappingPayload ¶ added in v0.3.1
type WazctlClient ¶
func WazctlClientFactory ¶
func WazctlClientFactory() *WazctlClient
func (*WazctlClient) CreateNewUserInWazuhManager ¶
func (ctl *WazctlClient) CreateNewUserInWazuhManager(opts *CreateNewWazuhUserOptions) ([]byte, error)
Creates a new user in the wazuh instance
func (*WazctlClient) GetAllAgentsFromWazuhManager ¶
func (ctl *WazctlClient) GetAllAgentsFromWazuhManager() ([]byte, error)
type WazuhClientMethods ¶ added in v0.3.1
type WazuhClientMethods interface {
// Agent operations
GetAllAgentsFromWazuhManager()
// User operations
CreateNewUserInWazuh()
GetUsersInWazuh()
}
Click to show internal directories.
Click to hide internal directories.