Documentation
¶
Index ¶
- func AddAuthenticator(projectId string, name string, authenticatorType string, ipv4 string, ...) error
- func AddCredential(authenticatorId string, userName string, value string, ...) error
- func AddFlag(authenticatorId string, name string, value string, note string) error
- func AddNote(projectId string, name string, value string) error
- func AddNoteFromFilepath(projectId string, filepath string) error
- func AddProject(name string, note string) error
- func AddUser(email string, username string, password string, ssh_public_key string) error
- func CredentialFormEvilWinRM(authenticator Authenticator, credential Credential) []string
- func CredentialFormImpacket(authenticator Authenticator, credential Credential) []string
- func CredentialFormNetExec(authenticator Authenticator, credential Credential) []string
- func DoesUserValueExist(column string, value string) error
- func GetAuthenticatorCopyList(id string) ([]string, error)
- func GetCredentialById(id string) (Authenticator, Credential, error)
- func GetCredentialCopyList(id string) ([]string, error)
- func GetDatabaseInstance() (dbx.Builder, error)
- func GetNotesAsMarkdown(projectId string) (string, error)
- func GetProjectTitle(id string) (string, error)
- func IsUserVerified(username string) (bool, error)
- func RemoveAuthenticator(id string) error
- func RemoveCredential(id string) error
- func RemoveFlag(id string) error
- func RemoveNote(id string) error
- func RemoveProject(id string) error
- func RemoveUser(id string) error
- func SetDatabaseInstance(db *dbx.Builder) error
- func UpdateAuthenticator(projectId string, updateAuthenticatorId string, name string, ...) error
- func UpdateCredential(credentialId string, authenticatorId string, userName string, value string, ...) error
- func UpdateFlag(flagId string, authenticatorId string, name string, value string, note string) error
- func UpdateNote(noteId string, projectId string, name string, value string) error
- func UpdateProject(projectId string, name string, note string) error
- func VerifyUser(id string) error
- type Authenticator
- type Credential
- type Flag
- type Note
- type Project
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAuthenticator ¶
func AddCredential ¶
func AddNoteFromFilepath ¶
func AddProject ¶
func CredentialFormEvilWinRM ¶
func CredentialFormEvilWinRM(authenticator Authenticator, credential Credential) []string
func CredentialFormImpacket ¶
func CredentialFormImpacket(authenticator Authenticator, credential Credential) []string
func CredentialFormNetExec ¶
func CredentialFormNetExec(authenticator Authenticator, credential Credential) []string
func DoesUserValueExist ¶
func GetCredentialById ¶
func GetCredentialById(id string) (Authenticator, Credential, error)
func GetCredentialCopyList ¶
func GetDatabaseInstance ¶
func GetNotesAsMarkdown ¶
func GetProjectTitle ¶
func IsUserVerified ¶
func RemoveAuthenticator ¶
func RemoveCredential ¶
func RemoveFlag ¶
func RemoveNote ¶
func RemoveProject ¶
func RemoveUser ¶
func SetDatabaseInstance ¶
func UpdateAuthenticator ¶
func UpdateCredential ¶
func UpdateFlag ¶
func UpdateNote ¶
func VerifyUser ¶ added in v0.3.0
Types ¶
type Authenticator ¶
type Authenticator struct {
Id string `db:"id" json:"id"`
Name string `db:"name" json:"name"`
Type string `db:"type" json:"type"`
IPv4 string `db:"ipv4" json:"ipv4"`
FQDN string `db:"fqdn" json:"fqdn"`
Note string `db:"note" json:"note"`
ProjectId string `db:"link_project" json:"link_project"`
AuthenticatorId string `db:"link_authenticator" json:"link_authenticator"`
Created types.DateTime `db:"created" json:"created"`
Updated types.DateTime `db:"updated" json:"updated"`
}
func GetAuthenticatorById ¶
func GetAuthenticatorById(id string) (Authenticator, error)
func GetAuthenticatorList ¶
func GetAuthenticatorList(projectId string) ([]Authenticator, error)
func GetLinkedAuthenticatorRootByAuthenticatorId ¶
func GetLinkedAuthenticatorRootByAuthenticatorId(authenticator_id string) (Authenticator, error)
func (Authenticator) DomainName ¶
func (authenticator Authenticator) DomainName() string
func (Authenticator) ListTitle ¶
func (authenticator Authenticator) ListTitle() string
type Credential ¶
type Credential struct {
Id string `db:"id" json:"id"`
UserName string `db:"username" json:"username"`
Value string `db:"value" json:"value"`
Type string `db:"type" json:"type"`
Format string `db:"format" json:"format"`
Encoding string `db:"encoding" json:"encoding"`
Note string `db:"note" json:"note"`
AuthenticatorId string `db:"link_authenticator" json:"link_authenticator"`
CleartextId string `db:"cleartext_id" json:"cleartext_id"`
Created types.DateTime `db:"created" json:"created"`
Updated types.DateTime `db:"updated" json:"updated"`
}
func GetAuthenticatorCredentialList ¶
func GetAuthenticatorCredentialList(authenticatorId string, onlyCleartext bool) ([]Credential, error)
func GetProjectCredentialList ¶
func GetProjectCredentialList(projectId string, onlyCleartext bool) ([]Credential, error)
func (Credential) Description ¶
func (credential Credential) Description() string
func (Credential) ListTitle ¶
func (credential Credential) ListTitle() string
type Flag ¶
type Flag struct {
Id string `db:"id" json:"id"`
Name string `db:"name" json:"name"`
Value string `db:"value" json:"value"`
Note string `db:"note" json:"note"`
AuthenticatorId string `db:"link_authenticator" json:"link_authenticator"`
Created types.DateTime `db:"created" json:"created"`
Updated types.DateTime `db:"updated" json:"updated"`
}
func GetFlagById ¶
func GetProjectFlagList ¶
func (Flag) ListDescription ¶
type Note ¶
type Note struct {
Id string `db:"id" json:"id"`
Name string `db:"name" json:"name"`
Value string `db:"value" json:"value"`
ProjectId string `db:"link_project" json:"link_project"`
Created types.DateTime `db:"created" json:"created"`
Updated types.DateTime `db:"updated" json:"updated"`
}
func GetNoteById ¶
func GetProjectNoteList ¶
func (Note) ListDescription ¶
type Project ¶
type Project struct {
Id string `db:"id" json:"id"`
Name string `db:"name" json:"name"`
Note string `db:"note" json:"note"`
Created types.DateTime `db:"created" json:"created"`
Updated types.DateTime `db:"updated" json:"updated"`
}
func GetProjectById ¶
func GetProjectList ¶
type User ¶
type User struct {
Id string `db:"id" json:"id"`
EMail string `db:"email" json:"email"`
Name string `db:"name" json:"name"`
Verified bool `db:"verified" json:"verified"`
Password string `db:"password" json:"password"`
SSHPublicKey string `db:"ssh_public_key" json:"ssh_public_key"`
Created types.DateTime `db:"created" json:"created"`
Updated types.DateTime `db:"updated" json:"updated"`
TokenKey string `db:"tokenKey" json:"tokenKey"`
}
func GetNewUsers ¶ added in v0.3.0
func GetUserById ¶
func GetUsersByName ¶
Click to show internal directories.
Click to hide internal directories.