Documentation ¶
Index ¶
- type Local
- func (local *Local) AddAlias(name string, payloadId string) (api.Alias, error)
- func (local *Local) AddExecution(payloadID string, aliasID string) (api.Execution, error)
- func (local *Local) AddInjection(name string, content string) (api.Injection, error)
- func (local *Local) AddLoot(data string) (api.Loot, error)
- func (local *Local) AddPayload(name string, content string, contentType string) (api.Payload, error)
- func (local *Local) CreateOTP(userID string, secret string, otp string) (api.User, error)
- func (local *Local) CreateUser(username, password string) (api.User, error)
- func (local *Local) DeleteAlias(id string) error
- func (local *Local) DeleteExecution(id string) error
- func (local *Local) DeleteInjection(id string) error
- func (local *Local) DeleteLoot(id string) error
- func (local *Local) DeletePayload(id string) error
- func (local *Local) DeleteUser(id string) error
- func (local *Local) GetAlias(id string) (api.Alias, error)
- func (local *Local) GetAliasByID(id string) (api.Alias, error)
- func (local *Local) GetAliasByPayloadID(id string) (api.Alias, error)
- func (local *Local) GetAliases() ([]api.Alias, error)
- func (local *Local) GetExecution(id string) (api.Execution, error)
- func (local *Local) GetExecutions() ([]api.Execution, error)
- func (local *Local) GetHealth() (string, error)
- func (local *Local) GetInjection(id string) (api.Injection, error)
- func (local *Local) GetInjections() ([]api.Injection, error)
- func (local *Local) GetLoot(id string) (api.Loot, error)
- func (local *Local) GetLoots() ([]api.Loot, error)
- func (local *Local) GetPayload(id string) (api.Payload, error)
- func (local *Local) GetPayloads() ([]api.Payload, error)
- func (local *Local) GetUser(id string) (api.User, error)
- func (local *Local) GetUserByName(name string) (api.User, error)
- func (local *Local) Login(loginParam, passwordParam, otp string) (string, error)
- func (local *Local) ServePayload(idOrAlias string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
func (*Local) AddExecution ¶
func (*Local) AddInjection ¶
func (*Local) AddPayload ¶
func (local *Local) AddPayload(name string, content string, contentType string) (api.Payload, error)
AddPayload is the API to add a new payload
func (*Local) CreateUser ¶
func (*Local) DeleteAlias ¶
func (*Local) DeleteExecution ¶
func (*Local) DeleteInjection ¶
func (*Local) DeleteLoot ¶
func (*Local) DeletePayload ¶
func (*Local) DeleteUser ¶
func (*Local) GetAliasByPayloadID ¶
func (*Local) GetExecutions ¶
GetExecutions return all the triggered payload stored in the database.
func (*Local) GetUserByName ¶
GetUserByName is a direct replica from the storage.
Click to show internal directories.
Click to hide internal directories.