dtos

package
v0.0.0-...-0fdad32 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIKey

type APIKey struct {
	AccessKey string     `json:"accessKey"`
	SecretKey []byte     `json:"secretKey"`
	LastAuth  *time.Time `json:"lastAuth"`
}

type ActiveServiceWorker

type ActiveServiceWorker struct {
	Name string `json:"name"`
}

type AuthenticationInfo

type AuthenticationInfo struct {
	Username       string               `json:"username"`
	AuthSchemeName *string              `json:"schemeName,omitempty"`
	AuthSchemeCode string               `json:"schemeCode"`
	AuthSchemeType string               `json:"schemeType"`
	AuthLogin      *time.Time           `json:"lastLogin"`
	AuthDetails    *SupportedAuthScheme `json:"authDetails"`
}

type CheckConnection

type CheckConnection struct {
	Ok bool `json:"ok"`
}

type CreateUserOutput

type CreateUserOutput struct {
	RealSlug string `json:"slug"`
	UserID   int64  `json:"-"` // don't transmit the userid
}

type DefaultTag

type DefaultTag Tag

type DetailedAuthenticationInfo

type DetailedAuthenticationInfo struct {
	AuthSchemeName  string     `json:"schemeName"`
	AuthSchemeCode  string     `json:"schemeCode"`
	AuthSchemeType  string     `json:"schemeType"`
	AuthSchemeFlags []string   `json:"schemeFlags"`
	UserCount       int64      `json:"userCount"`
	UniqueUserCount int64      `json:"uniqueUserCount"`
	LastUsed        *time.Time `json:"lastUsed"`
	Labels          []string   `json:"labels"`
}

type Evidence

type Evidence struct {
	UUID          string     `json:"uuid"`
	Description   string     `json:"description"`
	OccurredAt    time.Time  `json:"occurredAt"`
	AdjustedAt    *time.Time `json:"adjustedAt"`
	Operator      User       `json:"operator"`
	Tags          []Tag      `json:"tags"`
	ContentType   string     `json:"contentType"`
	SendUrl       bool       `json:"sendUrl"`
	ThumbImageKey string     `json:"thumbImageKey"`
	FullImageKey  string     `json:"fullImageKey"`
}

type EvidenceCount

type EvidenceCount struct {
	ImageCount     int64 `db:"image_count" json:"imageCount"`
	CodeblockCount int64 `db:"codeblock_count" json:"codeblockCount"`
	RecordingCount int64 `db:"recording_count" json:"recordingCount"`
	EventCount     int64 `db:"event_count" json:"eventCount"`
	HarCount       int64 `db:"har_count" json:"harCount"`
}

type EvidenceMetadata

type EvidenceMetadata struct {
	Body       string                   `json:"body"`
	Source     string                   `json:"source"`
	Status     *evidencemetadata.Status `json:"status"`
	CanProcess *bool                    `json:"canProcess"`
}

type Finding

type Finding struct {
	UUID          string     `json:"uuid"`
	Title         string     `json:"title"`
	Description   string     `json:"description"`
	Operators     []User     `json:"operators"`
	ReadyToReport bool       `json:"readyToReport"`
	TicketLink    *string    `json:"ticketLink"`
	Tags          []Tag      `json:"tags"`
	NumEvidence   int        `json:"numEvidence"`
	Category      string     `json:"category"`
	OccurredFrom  *time.Time `json:"occurredFrom"`
	OccurredTo    *time.Time `json:"occurredTo"`
}

type FindingCategory

type FindingCategory struct {
	ID         int64  `json:"id"`
	Category   string `json:"category"`
	Deleted    bool   `json:"deleted"`
	UsageCount int64  `json:"usageCount"`
}

type Flags

type Flags struct {
	Flags []string `json:"flags"`
}

type GlobalVar

type GlobalVar struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type NewUserCreatedByAdmin

type NewUserCreatedByAdmin struct {
	TemporaryPassword string `json:"temporaryPassword"`
}

type Operation

type Operation struct {
	Slug              string        `json:"slug"`
	Name              string        `json:"name"`
	NumUsers          int           `json:"numUsers"`
	NumEvidence       int           `json:"numEvidence"`
	NumTags           int           `json:"numTags"`
	Favorite          bool          `json:"favorite"`
	TopContribs       []TopContrib  `json:"topContribs"`
	EvidenceCount     EvidenceCount `json:"evidenceCount,omitempty"`
	UserCanViewGroups bool          `json:"userCanViewGroups,omitempty"`
	UserCanExportData bool          `json:"userCanExportData,omitempty"`
}

type OperationVar

type OperationVar struct {
	OperationSlug string `json:"operationSlug"`
	VarSlug       string `json:"varSlug"`
	Name          string `json:"name"`
	Value         string `json:"value"`
}

type PaginationWrapper

type PaginationWrapper struct {
	Content    interface{} `json:"content"`
	PageNumber int64       `json:"page"`
	PageSize   int64       `json:"pageSize"`
	TotalCount int64       `json:"totalCount"`
	TotalPages int64       `json:"totalPages"`
}

type Query

type Query struct {
	ID    int64  `json:"id"`
	Name  string `json:"name"`
	Query string `json:"query"`
	Type  string `json:"type"`
}

type ServiceWorker

type ServiceWorker struct {
	ID      int64  `json:"id"`
	Name    string `json:"name"`
	Config  string `json:"config"`
	Deleted bool   `json:"deleted"`
}

type ServiceWorkerTestOutput

type ServiceWorkerTestOutput struct {
	ID      int64  `json:"id"`
	Name    string `json:"name"`
	Live    bool   `json:"live"`
	Message string `json:"message"`
}

type SupportedAuthScheme

type SupportedAuthScheme struct {
	SchemeName  string   `json:"schemeName"`
	SchemeCode  string   `json:"schemeCode"`
	SchemeFlags []string `json:"schemeFlags"`
	SchemeType  string   `json:"schemeType"`
}

type Tag

type Tag struct {
	ID          int64   `json:"id"`
	ColorName   string  `json:"colorName"`
	Name        string  `json:"name"`
	Description *string `json:"description"`
}

type TagByEvidenceDate

type TagByEvidenceDate struct {
	Tag
	UsageDates []time.Time `json:"usages"`
}

type TagDifference

type TagDifference struct {
	Included []TagPair `json:"included"`
	Excluded []Tag     `json:"excluded"`
}

type TagPair

type TagPair struct {
	SourceTag      Tag `json:"sourceTag"`
	DestinationTag Tag `json:"destinationTag"`
}

type TagWithUsage

type TagWithUsage struct {
	Tag
	EvidenceCount int64 `json:"evidenceCount"`
}

type TopContrib

type TopContrib struct {
	Slug  string `db:"slug" json:"slug"`
	Count int64  `db:"count" json:"count"`
}

type User

type User struct {
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Slug      string `json:"slug"`
}

type UserAdminView

type UserAdminView struct {
	User
	Email         string   `json:"email"`
	Admin         bool     `json:"admin,omitempty"`
	Headless      bool     `json:"headless"`
	Disabled      bool     `json:"disabled"`
	Deleted       bool     `json:"deleted"`
	UsesLocalTOTP bool     `json:"hasLocalTotp"`
	AuthSchemes   []string `json:"authSchemes"`
}

type UserGroup

type UserGroup struct {
	Slug string `json:"slug"`
	Name string `json:"name"`
}

type UserGroupAdminView

type UserGroupAdminView struct {
	Slug      string   `json:"slug"`
	Name      string   `json:"name"`
	UserSlugs []string `json:"userSlugs"`
	Deleted   bool     `json:"deleted"`
}

type UserGroupOperationRole

type UserGroupOperationRole struct {
	UserGroup UserGroupAdminView   `json:"userGroup"`
	Role      policy.OperationRole `json:"role"`
}

type UserOperationRole

type UserOperationRole struct {
	User User                 `json:"user"`
	Role policy.OperationRole `json:"role"`
}

type UserOwnView

type UserOwnView struct {
	User
	Email          string               `json:"email"`
	Admin          bool                 `json:"admin"`
	Authentication []AuthenticationInfo `json:"authSchemes"`
	Headless       bool                 `json:"headless"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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