vo

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type About added in v0.0.7

type About struct {
	Base

	Name      string   `json:"name"`
	Title     string   `json:"title"`
	Copyright string   `json:"copyright"`
	Profile   string   `json:"profile"`
	User      string   `json:"user"`
	Home      string   `json:"home"`
	OS        string   `json:"os"`
	Arch      string   `json:"arch"`
	WebURL    string   `json:"weburl"`
	SHA256SUM util.Hex `json:"sha256sum"`

	// the main module
	Module     string     `json:"module"`
	Version    string     `json:"version"`
	Revision   int        `json:"revision"`
	MainModule dto.Module `json:"main_module"`

	Modules []*dto.Module `json:"modules"`

	CheckUpdate *AboutCheckUpdate `json:"checkupdate"`
}

About ...

type AboutCheckUpdate added in v0.0.14

type AboutCheckUpdate struct {

	// params
	Auto  bool `json:"auto"`  // 自动检查
	Force bool `json:"force"` // 必须检查

	// results
	Current       *dto.SoftwarePackage `json:"current"`         // 当前使用的版本
	Latest        *dto.SoftwarePackage `json:"latest"`          // 最新的版本
	Ignore        *dto.SoftwarePackage `json:"ignore"`          // 已忽略的版本
	HasNewVersion bool                 `json:"has_new_version"` // 检查结果
	HasIgnored    bool                 `json:"has_ignored"`     // 检查结果
}

AboutCheckUpdate 用于检查更新

type Auth

type Auth struct {
	Base

	UserName   string
	UserSecret string
	Mechanism  string

	Authorized bool
}

Auth 身份认证VO

type Backup added in v0.0.15

type Backup struct {
	Base

	Backups []*dto.Backup `json:"backups"`
}

Backup ...

type Base

type Base struct {
	vo.BaseVO

	Head BaseHead `json:"head"`
}

Base 所有VO的基本结构

type BaseHead added in v0.1.2

type BaseHead struct {
	URL       string `json:"url"`       // 的所属文档的 URL
	Namespace string `json:"namespace"` // 默认的命名空间名称
	DocType   string `json:"doctype"`   // 该文档的类型
}

BaseHead ... 关于json文档的一些元数据

type ContentType added in v0.1.1

type ContentType struct {
	Base

	ContentTypes []*dto.ContentType `json:"content_types"`
}

ContentType ...

type ContentTypeImport added in v0.1.1

type ContentTypeImport struct {
	Base

	ContentTypes []*dto.ContentType `json:"content_types"`
}

ContentTypeImport ...

type Example

type Example struct {
	Base

	Examples []*dto.Example `json:"examples"`
}

Example ...

type Executable

type Executable struct {
	Base

	OptionSkipFileChecking bool `json:"option_skip_file_checking"`
	OptionIgnoreException  bool `json:"option_ignore_exception"`

	Executables []*dto.Executable `json:"executables"`
}

Executable ...

type ExecutableImport

type ExecutableImport struct {
	Base

	Action      ExecutableImportAction `json:"action"`
	Executables []*dto.Executable      `json:"executables"`
}

ExecutableImport ...

type ExecutableImportAction

type ExecutableImportAction string

ExecutableImportAction 表示导入应用程序的动作

const (
	ExecutableImportActionFind   ExecutableImportAction = "find"
	ExecutableImportActionLocate ExecutableImportAction = "locate"
	ExecutableImportActionSave   ExecutableImportAction = "save"
)

定义导入应用程序的动作

func (ExecutableImportAction) String

func (value ExecutableImportAction) String() string

type FileQuery added in v0.0.7

type FileQuery struct {
	Base

	BaseURL    string                `json:"base"` // 'file:///' or 'repository:///'
	Repository dxo.LocalRepositoryID `json:"repository"`

	Branch string `json:"branch"` // the git branch name
	Commit string `json:"commit"` // the git commit id
	Tag    string `json:"tag"`    // the git tag name
	Path   string `json:"path"`   // the path for filesystem or worktree

	Self dto.File `json:"self"`

	Items []*dto.File `json:"items"`
}

FileQuery ...

type Init added in v0.1.0

type Init struct {
	Base

	// check-update
	CheckUpdate About

	// check-setup
	Setup Setup

	// fetch Content types
	ContentType ContentType

	// fetch executables
	Executable Executable

	// fetch options
	Option Option
}

Init ...

type Intent

type Intent struct {
	Base

	Intents []*dto.Intent `json:"intents"`
}

Intent ...

type IntentTemplate

type IntentTemplate struct {
	Base

	Templates  []*dto.IntentTemplate `json:"intent_templates"`
	MacroProps map[string]string     `json:"macro_properties"`
}

IntentTemplate ...

type LocalRepository

type LocalRepository struct {
	Base

	Repositories []*dto.LocalRepository `json:"local_repositories"`
}

LocalRepository 仓库VO

type MIMEType added in v0.0.14

type MIMEType struct {
	Base

	Types []*dto.MIMEType `json:"types"`
}

MIMEType ...

type MainRepository

type MainRepository struct {
	Base

	Repository *dto.MainRepository `json:"main_repository"`
}

MainRepository 仓库VO

type Media

type Media struct {
	Base

	Mediae []*dto.Media `json:"mediae"`
}

Media ...

type Namespace added in v0.1.1

type Namespace struct {
	Base

	Namespaces []*dto.Namespace `json:"namespaces"`
}

Namespace ...

type Online added in v0.1.1

type Online struct {
	Base

	Sources         []*dto.Namespace       `json:"sources"`
	Packages        []*dto.SoftwarePackage `json:"packages"`
	Mediae          []*dto.Media           `json:"mediae"`
	Executables     []*dto.Executable      `json:"executables"`
	ContentTypes    []*dto.ContentType     `json:"contenttypes"`
	IntentTemplates []*dto.IntentTemplate  `json:"intenttemplates"`
}

Online ...

type Option added in v0.1.4

type Option struct {
	Base

	Options map[string]bool `json:"options"`
}

Option ...

type Platform

type Platform struct {
	Base

	Platform *dto.Platform `json:"platform"`
}

Platform ...

type Profile

type Profile struct {
	Base

	Platform *dto.Platform `json:"platform"`
	Profile  *dto.Profile  `json:"profile"`
}

Profile ...

type Project

type Project struct {
	Base

	Projects []*dto.Project `json:"projects"`
}

Project ...

type ProjectImport

type ProjectImport struct {
	Base

	Action   ProjectImportAction `json:"action"`
	Projects []*dto.Project      `json:"projects"`
}

ProjectImport ... 用于导入项目

type ProjectImportAction

type ProjectImportAction string

ProjectImportAction 表示导入仓库的动作

const (
	ProjectImportActionFind   ProjectImportAction = "find"
	ProjectImportActionLocate ProjectImportAction = "locate"
	ProjectImportActionSave   ProjectImportAction = "save"
)

定义导入仓库的动作

func (ProjectImportAction) String

func (value ProjectImportAction) String() string

type RemoteRepository

type RemoteRepository struct {
	Base

	Repositories []*dto.RemoteRepository `json:"remote_repositories"`
}

RemoteRepository 仓库VO

type RepositoryImport

type RepositoryImport struct {
	Base

	Action RepositoryImportAction `json:"action"`
	Items  []*dto.LocalRepository `json:"local_repositories"`
}

RepositoryImport ... 用于导入仓库

type RepositoryImportAction

type RepositoryImportAction string

RepositoryImportAction 表示导入仓库的动作

const (
	RepositoryImportActionFind   RepositoryImportAction = "find"
	RepositoryImportActionLocate RepositoryImportAction = "locate"
	RepositoryImportActionSave   RepositoryImportAction = "save"
)

定义导入仓库的动作

func (RepositoryImportAction) String

func (value RepositoryImportAction) String() string

type RepositoryWorktreeProject added in v0.1.1

type RepositoryWorktreeProject struct {
	Base

	Path string `json:"path"`

	Repository *dto.LocalRepository `json:"repository"`
	Worktree   *dto.Worktree        `json:"worktree"`
	Project    *dto.Project         `json:"project"`
}

RepositoryWorktreeProject ...

type Settings added in v0.0.14

type Settings struct {
	Base

	Settings *dto.Settings `json:"settings"`

	Table map[string]string `json:"table"`
}

Settings ...

type Setup added in v0.1.0

type Setup struct {
	Base

	SetupRequired bool `json:"setup_required"`

	SetupItems []*dto.Setup `json:"setup_items"`
}

Setup ...

type SoftwarePackage added in v0.0.14

type SoftwarePackage struct {
	Base

	Packages []*dto.SoftwarePackage `json:"packages"`
}

SoftwarePackage ... 软件包信息

type SoftwareSet added in v0.1.1

type SoftwareSet struct {
	Base

	Sets []*dto.SoftwareSet `json:"sets"`
}

SoftwareSet ... 软件集合信息

type Statistic added in v0.1.4

type Statistic struct {
	Base

	Statistics dto.Statistic `json:"statistics"`
}

Statistic ...

type Trash added in v0.1.2

type Trash struct {
	Base

	TrashItems []*entity.Holder `json:"trash_items"`
}

Trash ...

type User

type User struct {
	Base

	Users []*dto.User `json:"users"`
}

User ...

type Worktree added in v0.1.0

type Worktree struct {
	Base

	Worktrees []*dto.Worktree `json:"worktrees"`
}

Worktree 表示对若干工作树的查询

Jump to

Keyboard shortcuts

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