Documentation ¶
Index ¶
- type BackupID
- type ContentTypeID
- type ContentTypeName
- type ContentTypeURN
- type DesktopSessionID
- type ExampleID
- type ExecutableGroupID
- type ExecutableGroupName
- type ExecutableID
- type ExecutableURN
- type FileState
- type InstallationID
- type InstalledFileID
- type IntentID
- type IntentTemplateID
- type IntentTemplateSelector
- type IntentTemplateSelectorBuilder
- type LocalRepositoryID
- type LocationClass
- type LocationID
- type MIMETypeID
- type MainRepositoryID
- type MediaID
- type NamespaceID
- type NamespaceURN
- type PlatformID
- type ProfileID
- type ProjectGroupID
- type ProjectGroupName
- type ProjectID
- type RemoteRepositoryID
- type RepositoryGroupID
- type RepositoryGroupName
- type SettingID
- type SetupID
- type SoftwarePackageID
- type SoftwarePackageState
- type SoftwarePackageURN
- type SoftwareSetID
- type StringArray
- func (value StringArray) Array() []string
- func (value StringArray) Deduplication() StringArray
- func (value StringArray) Normalize() StringArray
- func (value StringArray) Sort() StringArray
- func (value StringArray) String() string
- func (value StringArray) StringList() StringList
- func (value StringArray) Trim() StringArray
- type StringList
- type StringListCRLF
- type StringMap
- type URN
- type UUID
- type UserID
- type UserName
- type WorktreeID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentTypeName ¶ added in v0.1.1
type ContentTypeName string
ContentTypeName ... like 'text/html' , 'project/java-pom'
func (ContentTypeName) String ¶ added in v0.1.1
func (value ContentTypeName) String() string
type ContentTypeURN ¶ added in v0.1.1
type ContentTypeURN URN
ContentTypeURN like 'urn:projecttype:{{name}}'
func NewContentTypeURN ¶ added in v0.1.1
func NewContentTypeURN(name string) ContentTypeURN
NewContentTypeURN ...
type ExecutableURN ¶ added in v0.1.1
type ExecutableURN URN
ExecutableURN like 'urn:executable:{{namespace.name}}#{{simpleName}}'
func NewExecutableURN ¶ added in v0.1.1
func NewExecutableURN(name string) ExecutableURN
NewExecutableURN ...
func (ExecutableURN) String ¶ added in v0.1.1
func (name ExecutableURN) String() string
type IntentTemplateSelector ¶ added in v0.1.0
type IntentTemplateSelector string
IntentTemplateSelector 用字符串表示一个 Intent 模板选择器
func NewIntentTemplateSelector ¶ added in v0.1.0
func NewIntentTemplateSelector(sel string) IntentTemplateSelector
NewIntentTemplateSelector make a new IntentTemplateSelector
func (IntentTemplateSelector) String ¶ added in v0.1.0
func (value IntentTemplateSelector) String() string
type IntentTemplateSelectorBuilder ¶ added in v0.1.0
type IntentTemplateSelectorBuilder struct { Method string // [open|insert|update|edit|...] Type string // [project-type|content-type|target-type] With string // [exe-name] }
IntentTemplateSelectorBuilder 用来创建 IntentTemplateSelector
func (*IntentTemplateSelectorBuilder) Create ¶ added in v0.1.0
func (inst *IntentTemplateSelectorBuilder) Create() IntentTemplateSelector
Create build a new IntentTemplateSelector
type LocationClass ¶ added in v0.1.1
type LocationClass string
LocationClass 表示 Location 的各种类型
const ( LocationGitWorktree LocationClass = "git.worktree" // for Git Worktree LocationGitSubmodule LocationClass = "git.submodule" // for Git Submodule LocationGitConfig LocationClass = "git.config" // for Git Repository Config LocationGitRepository LocationClass = "git.repository" // for LocalRepository LocationProject LocationClass = "project" // the project config file or dir LocationFolder LocationClass = "folder" LocationExecutable LocationClass = "executable" )
定义 Location 的各种类型
func (LocationClass) String ¶ added in v0.1.1
func (value LocationClass) String() string
type NamespaceURN ¶ added in v0.1.1
type NamespaceURN URN
NamespaceURN like 'urn:namespace:{{name}}'
func NewNamespaceURN ¶ added in v0.1.1
func NewNamespaceURN(name string) NamespaceURN
NewNamespaceURN ...
func (NamespaceURN) String ¶ added in v0.1.1
func (name NamespaceURN) String() string
type SoftwarePackageState ¶ added in v0.1.2
type SoftwarePackageState string
SoftwarePackageState 表示软件包安装状态
const ( SoftPackStateNA SoftwarePackageState = "N/A" // 无效 SoftPackStateInstalled SoftwarePackageState = "INSTALLED" // 已安装 SoftPackStateAvailable SoftwarePackageState = "AVAILABLE" // 可安装 SoftPackStateNewVersion SoftwarePackageState = "NEWVERSION" // 可升级 )
定义软件包安装状态
type SoftwarePackageURN ¶ added in v0.1.1
type SoftwarePackageURN URN
SoftwarePackageURN like 'urn:package:{{name}}'
func NewSoftwarePackageURN ¶ added in v0.1.1
func NewSoftwarePackageURN(name string) SoftwarePackageURN
NewSoftwarePackageURN ...
func (SoftwarePackageURN) String ¶ added in v0.1.1
func (name SoftwarePackageURN) String() string
type StringArray ¶ added in v0.1.10
type StringArray []string
func (StringArray) Array ¶ added in v0.1.10
func (value StringArray) Array() []string
func (StringArray) Deduplication ¶ added in v0.1.10
func (value StringArray) Deduplication() StringArray
Deduplication 排重
func (StringArray) Normalize ¶ added in v0.1.10
func (value StringArray) Normalize() StringArray
Normalize 标准化 (排空 -> 排序 -> 排重)
func (StringArray) String ¶ added in v0.1.10
func (value StringArray) String() string
func (StringArray) StringList ¶ added in v0.1.10
func (value StringArray) StringList() StringList
type StringList ¶
type StringList string
StringList 表示一个包含多个词组的字符串,各个元素之间以逗号分隔
func NewStringList ¶ added in v0.1.0
func NewStringList(src []string) StringList
NewStringList ... 根据 src 创建 StringList
func (StringList) String ¶ added in v0.1.0
func (value StringList) String() string
func (StringList) StringArray ¶ added in v0.1.10
func (value StringList) StringArray() StringArray
type StringListCRLF ¶ added in v0.1.0
type StringListCRLF string
StringListCRLF 表示一个包含多个词组的字符串,各个元素之间以 CR|LF 分隔
func NewStringListCRLF ¶ added in v0.1.0
func NewStringListCRLF(src []string) StringListCRLF
NewStringListCRLF ... 根据 src 创建 StringListCRLF
func (StringListCRLF) Array ¶ added in v0.1.0
func (value StringListCRLF) Array() []string
Array ...
func (StringListCRLF) String ¶ added in v0.1.0
func (value StringListCRLF) String() string
type StringMap ¶ added in v0.1.0
type StringMap string
StringMap 表示一个stringify 的 map[string]string,它的格式参考git.config
func NewStringMap ¶ added in v0.1.0
NewStringMap ... 根据 src 创建新的 StringMap