entity

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyResult

type DependencyResult struct {
	Name          string               `json:"name,omitempty" bson:"name,omitempty"`
	NodeIds       []primitive.ObjectID `json:"node_ids,omitempty" bson:"node_ids,omitempty"`
	Versions      []string             `json:"versions,omitempty" bson:"versions,omitempty"`
	LatestVersion string               `json:"latest_version" bson:"latest_version"`
	Count         int                  `json:"count,omitempty" bson:"count,omitempty"`
	Upgradable    bool                 `json:"upgradable" bson:"upgradable"`
	Downgradable  bool                 `json:"downgradable" bson:"downgradable"`
	Installable   bool                 `json:"installable" bson:"installable"`
}

type InstallParams

type InstallParams struct {
	TaskId    primitive.ObjectID `json:"task_id"`
	Cmd       string             `json:"cmd"`
	Names     []string           `json:"names"`
	Upgrade   bool               `json:"upgrade"`
	Proxy     string             `json:"proxy"`
	UseConfig bool               `json:"use_config"`
	SpiderId  primitive.ObjectID `json:"spider_id"`
}

type InstallPayload

type InstallPayload struct {
	Names     []string             `json:"names"`
	Mode      string               `json:"mode"`
	Upgrade   bool                 `json:"upgrade"`
	NodeIds   []primitive.ObjectID `json:"node_ids"`
	UseConfig bool                 `json:"use_config"`
	SpiderId  primitive.ObjectID   `json:"spider_id"`
}

type LogsMessage

type LogsMessage struct {
	TaskId primitive.ObjectID `json:"task_id"`
	Lines  []string           `json:"lines"`
}

type MessageCodes

type MessageCodes struct {
	Update    string
	Save      string
	Install   string
	Uninstall string
}

type MessageData

type MessageData struct {
	Code string `json:"code"`
	Data []byte `json:"data"`
}

type NpmCollected

type NpmCollected struct {
	Metadata NpmPackage `json:"metadata"`
}

type NpmListPackage

type NpmListPackage struct {
	Version string `json:"version"`
}

type NpmListResult

type NpmListResult struct {
	Dependencies map[string]NpmListPackage `json:"dependencies"`
}

type NpmPackage

type NpmPackage struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type NpmResponseDetail

type NpmResponseDetail struct {
	Collected NpmCollected `json:"collected"`
}

type NpmResponseList

type NpmResponseList struct {
	Total   int         `json:"total"`
	Results []NpmResult `json:"results"`
}

type NpmResult

type NpmResult struct {
	Package NpmPackage `json:"package"`
}

type TaskMessage

type TaskMessage struct {
	TaskId primitive.ObjectID `json:"task_id"`
	Status string             `json:"status"`
	Error  string             `json:"error"`
}

type UninstallParams

type UninstallParams struct {
	TaskId primitive.ObjectID `json:"task_id"`
	Names  []string           `json:"names"`
	Cmd    string             `json:"cmd"`
}

type UninstallPayload

type UninstallPayload struct {
	Names   []string             `json:"names"`
	Mode    string               `json:"mode"`
	NodeIds []primitive.ObjectID `json:"node_ids"`
}

type UpdateParams

type UpdateParams struct {
	Cmd string `json:"cmd"`
}

Jump to

Keyboard shortcuts

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