local

package
v0.0.0-...-b63ba6b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 New

func New() *Local

func (*Local) AddAlias

func (local *Local) AddAlias(name string, payloadId string) (api.Alias, error)

func (*Local) AddExecution

func (local *Local) AddExecution(payloadID string, aliasID string) (api.Execution, error)

func (*Local) AddInjection

func (local *Local) AddInjection(name string, content string) (api.Injection, error)

func (*Local) AddLoot

func (local *Local) AddLoot(data string) (api.Loot, error)

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) CreateOTP

func (local *Local) CreateOTP(userID string, secret string, otp string) (api.User, error)

func (*Local) CreateUser

func (local *Local) CreateUser(username, password string) (api.User, error)

func (*Local) DeleteAlias

func (local *Local) DeleteAlias(id string) error

func (*Local) DeleteExecution

func (local *Local) DeleteExecution(id string) error

func (*Local) DeleteInjection

func (local *Local) DeleteInjection(id string) error

func (*Local) DeleteLoot

func (local *Local) DeleteLoot(id string) error

func (*Local) DeletePayload

func (local *Local) DeletePayload(id string) error

func (*Local) DeleteUser

func (local *Local) DeleteUser(id string) error

func (*Local) GetAlias

func (local *Local) GetAlias(id string) (api.Alias, error)

func (*Local) GetAliasByID

func (local *Local) GetAliasByID(id string) (api.Alias, error)

func (*Local) GetAliasByPayloadID

func (local *Local) GetAliasByPayloadID(id string) (api.Alias, error)

func (*Local) GetAliases

func (local *Local) GetAliases() ([]api.Alias, error)

func (*Local) GetExecution

func (local *Local) GetExecution(id string) (api.Execution, error)

func (*Local) GetExecutions

func (local *Local) GetExecutions() ([]api.Execution, error)

GetExecutions return all the triggered payload stored in the database.

func (*Local) GetHealth

func (local *Local) GetHealth() (string, error)

func (*Local) GetInjection

func (local *Local) GetInjection(id string) (api.Injection, error)

func (*Local) GetInjections

func (local *Local) GetInjections() ([]api.Injection, error)

func (*Local) GetLoot

func (local *Local) GetLoot(id string) (api.Loot, error)

func (*Local) GetLoots

func (local *Local) GetLoots() ([]api.Loot, error)

GetLoots return all the triggered payload stored in the database.

func (*Local) GetPayload

func (local *Local) GetPayload(id string) (api.Payload, error)

func (*Local) GetPayloads

func (local *Local) GetPayloads() ([]api.Payload, error)

func (*Local) GetUser

func (local *Local) GetUser(id string) (api.User, error)

func (*Local) GetUserByName

func (local *Local) GetUserByName(name string) (api.User, error)

GetUserByName is a direct replica from the storage.

func (*Local) Login

func (local *Local) Login(loginParam, passwordParam, otp string) (string, error)

func (*Local) ServePayload

func (local *Local) ServePayload(idOrAlias string) (string, error)

Jump to

Keyboard shortcuts

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