vmodels

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentHint

type AgentHint struct {
	Name      string            `json:"name,omitempty"`
	Type      string            `json:"type,omitempty"`
	Executor  string            `json:"executor,omitempty"`
	IfaceFile string            `json:"iface_file,omitempty"`
	WebEntry  string            `json:"web_entry,omitempty"`
	WebScript string            `json:"web_script,omitempty"` // file
	WebStyle  string            `json:"web_style,omitempty"`  // file
	WebLoader string            `json:"web_loader,omitempty"`
	WebFiles  map[string]string `json:"web_files,omitempty"`
	Resources map[string]string `json:"resources,omitempty"`
}

type DGroupInstallOptions

type DGroupInstallOptions struct {
	DyndbSource   string `json:"dyndb_source,omitempty"`
	GroupName     string `json:"group_name,omitempty"`
	GroupSlug     string `json:"group_slug,omitempty"`
	Schema        string `json:"schema,omitempty"`
	CabinetSource string `json:"cabinet_source,omitempty"`
	CabinetFolder string `json:"cabinet_folder,omitempty"`
	SeedFrom      string `json:"seed_from,omitempty"`
	UserId        string `json:"-"`
}

DEPRICATE

type DTableInstallOptions

type DTableInstallOptions struct {
	TargetSource  string `json:"target_source,omitempty"`
	TargetGroupId string `json:"target_group_id,omitempty"`
	TableSlug     string `json:"table_slug,omitempty"`
	Schema        string `json:"schema,omitempty"`
	SeedRandom    bool   `json:"seed_random,omitempty"`
}

DEPRICATE

type DynData

type DynData struct {
	Data map[string][]map[string]any `json:"data,omitempty"`
}

type ExecutorData

type ExecutorData struct {
	Plug   *entities.Plug
	Agent  *entities.Agent
	Bprint *entities.BPrint
}

type PlugData

type PlugData struct {
	Name       string `json:"name,omitempty"`
	PlugId     string `json:"plug_id,omitempty"`
	AgentId    string `json:"agent_id,omitempty"`
	ExecTicket string `json:"exec_ticket,omitempty"`
}

type PlugInstallOptions

type PlugInstallOptions struct {
	NewPlugId string   `json:"new_plug_id,omitempty"`
	Agents    []string `json:"agents,omitempty"`
	Resources []string `json:"resources,omitempty"`
	Schema    string   `json:"schema,omitempty"`
}

DEPRICATE

type PlugInstallResponse

type PlugInstallResponse struct {
	Agents       map[string]string `json:"agents,omitempty"`
	Resources    map[string]string `json:"resources,omitempty"`
	ErrAgents    map[string]string `json:"err_agents,omitempty"`
	ErrResources map[string]string `json:"err_resources,omitempty"`
}

type PlugRaw

type PlugRaw struct {
	Slug          string                  `json:"slug,omitempty"`
	Name          string                  `json:"name,omitempty"`
	ResourceHints map[string]ResourceHint `json:"resource_hints,omitempty"`
	AgentHints    map[string]AgentHint    `json:"agent_hints,omitempty"`
}

type ProfileUpdate

type ProfileUpdate struct {
	Firstname  string `json:"firstname,omitempty" db:"firstname"`
	Middlename string `json:"middlename,omitempty" db:"middlename"`
	Lastname   string `json:"lastname,omitempty" db:"lastname"`
}

type RepoImportOpts

type RepoImportOpts struct {
	Slug      string   `json:"slug,omitempty"`
	Source    string   `json:"source,omitempty"`
	Group     string   `json:"group,omitempty"`
	SkipFiles []string `json:"skip_files,omitempty"`
	NewId     string   `json:"new_id,omitempty"`
}

type RepoInstallOpts

type RepoInstallOpts struct {
	BprintId string          `json:"bprint_id,omitempty"`
	Data     json.RawMessage `json:"data,omitempty"`
	UserId   string          `json:"-"`
}

type ResourceHint

type ResourceHint struct {
	Name    string            `json:"name,omitempty"`
	Type    string            `json:"type,omitempty"`
	SubType string            `json:"sub_type,omitempty"`
	Payload string            `json:"schema,omitempty"`
	Policy  string            `json:"policy,omitempty"`
	Meta    map[string]string `json:"meta,omitempty"`
}

type ResourceQuery

type ResourceQuery struct {
	PlugId  string `json:"plug_id,omitempty"`
	AgentId string `json:"agent_id,omitempty"`
}

type SiteData

type SiteData struct {
	SiteToken string `json:"site_token,omitempty"`
	PlugURL   string `json:"plug_url,omitempty"`
	ApiURL    string `json:"api_url,omitempty"`
	TenantId  string `json:"tenant_id,omitempty"`
	UserGroup string `json:"user_group,omitempty"`
}

type UserInfo

type UserInfo struct {
	Name  string `json:"name,omitempty"`
	Id    string `json:"id,omitempty"`
	Email string `json:"email,omitempty"`
	Group string `json:"group,omitempty"`
}

Jump to

Keyboard shortcuts

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