Documentation
¶
Index ¶
- type About
- type AboutCheckUpdate
- type Auth
- type Backup
- type Base
- type BaseHead
- type ContentType
- type ContentTypeImport
- type Example
- type Executable
- type ExecutableImport
- type ExecutableImportAction
- type FileQuery
- type Init
- type Intent
- type IntentTemplate
- type LocalRepository
- type MIMEType
- type MainRepository
- type Media
- type Namespace
- type Online
- type Option
- type Platform
- type Profile
- type Project
- type ProjectImport
- type ProjectImportAction
- type RemoteRepository
- type RepositoryImport
- type RepositoryImportAction
- type RepositoryWorktreeProject
- type Settings
- type Setup
- type SoftwarePackage
- type SoftwareSet
- type Statistic
- type Trash
- type User
- type Worktree
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 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 Executable ¶
type Executable struct {
Base
OptionSkipFileChecking bool `json:"option_skip_file_checking"`
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 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 MainRepository ¶
type MainRepository struct {
Base
Repository *dto.MainRepository `json:"main_repository"`
}
MainRepository 仓库VO
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 Profile ¶
type Profile struct {
Base
Platform *dto.Platform `json:"platform"`
Profile *dto.Profile `json:"profile"`
}
Profile ...
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 ... 软件集合信息
Source Files
¶
- about.go
- auth.go
- backup.go
- base_vo.go
- example.go
- executable.go
- executable_import.go
- file_query.go
- init.go
- intent.go
- media.go
- mime_type.go
- namespace.go
- online.go
- options.go
- platform.go
- profile.go
- project.go
- project_import.go
- project_type.go
- project_type_import.go
- repo_import.go
- repository.go
- repository_worktree_project.go
- settings.go
- setup.go
- software_package.go
- statistic.go
- trash.go
- user.go
- worktree.go
Click to show internal directories.
Click to hide internal directories.