mods

package
v1.5.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ComponentDefRefPath is the target path for kubevela.io component ref docs
	ComponentDefRefPath = "../kubevela.io/docs/end-user/components/references.md"
	// ComponentDefRefPathZh is the target path for kubevela.io component ref docs in Chinese
	ComponentDefRefPathZh = "../kubevela.io/i18n/zh/docusaurus-plugin-content-docs/current/end-user/components/references.md"

	// ComponentDefDir store inner CUE definition
	ComponentDefDir = "./vela-templates/definitions/internal/component/"
)
View Source
const (
	// PolicyDefRefPath is the target path for kubevela.io policy ref docs
	PolicyDefRefPath = "../kubevela.io/docs/end-user/policies/references.md"
	// PolicyDefRefPathZh is the target path for kubevela.io policy ref docs in Chinese
	PolicyDefRefPathZh = "../kubevela.io/i18n/zh/docusaurus-plugin-content-docs/current/end-user/policies/references.md"

	// PolicyDefDir store inner CUE definition
	PolicyDefDir = "./vela-templates/definitions/internal/policy/"
)
View Source
const (
	// TraitDefRefPath is the target path for kubevela.io trait ref docs
	TraitDefRefPath = "../kubevela.io/docs/end-user/traits/references.md"
	// TraitDefRefPathZh is the target path for kubevela.io trait ref docs in Chinese
	TraitDefRefPathZh = "../kubevela.io/i18n/zh/docusaurus-plugin-content-docs/current/end-user/traits/references.md"

	// TraitDefDir store inner CUE definition
	TraitDefDir = "./vela-templates/definitions/internal/trait/"
)
View Source
const (
	// WorkflowDefRefPath is the target path for kubevela.io workflow ref docs
	WorkflowDefRefPath = "../kubevela.io/docs/end-user/workflow/built-in-workflow-defs.md"
	// WorkflowDefRefPathZh is the target path for kubevela.io workflow ref docs in Chinese
	WorkflowDefRefPathZh = "../kubevela.io/i18n/zh/docusaurus-plugin-content-docs/current/end-user/workflow/built-in-workflow-defs.md"

	// WorkflowDefDir store inner CUE definition
	WorkflowDefDir = "./vela-templates/definitions/internal/workflowstep/"
)

Variables

View Source
var CustomComponentHeaderEN = `---
title: Built-in Component Type
---

This documentation will walk through all the built-in component types sorted alphabetically.

` + fmt.Sprintf("> It was generated automatically by [scripts](../../contributor/cli-ref-doc), please don't update manually, last updated at %s.\n\n", time.Now().Format(time.RFC3339))

CustomComponentHeaderEN .

View Source
var CustomComponentHeaderZH = `---
title: 内置组件列表
---

本文档将**按字典序**展示所有内置组件的参数列表。

` + fmt.Sprintf("> 本文档由[脚本](../../contributor/cli-ref-doc)自动生成,请勿手动修改,上次更新于 %s。\n\n", time.Now().Format(time.RFC3339))

CustomComponentHeaderZH .

View Source
var CustomPolicyHeaderEN = `---
title: Built-in Policy Type
---

This documentation will walk through all the built-in policy types sorted alphabetically.

` + fmt.Sprintf("> It was generated automatically by [scripts](../../contributor/cli-ref-doc), please don't update manually, last updated at %s.\n\n", time.Now().Format(time.RFC3339))

CustomPolicyHeaderEN .

View Source
var CustomPolicyHeaderZH = `---
title: 内置策略列表
---

本文档将**按字典序**展示所有内置策略的参数列表。

` + fmt.Sprintf("> 本文档由[脚本](../../contributor/cli-ref-doc)自动生成,请勿手动修改,上次更新于 %s。\n\n", time.Now().Format(time.RFC3339))

CustomPolicyHeaderZH .

View Source
var CustomTraitHeaderEN = `---
title: Built-in Trait Type
---

This documentation will walk through all the built-in trait types sorted alphabetically.

` + fmt.Sprintf("> It was generated automatically by [scripts](../../contributor/cli-ref-doc), please don't update manually, last updated at %s.\n\n", time.Now().Format(time.RFC3339))

CustomTraitHeaderEN .

View Source
var CustomTraitHeaderZH = `---
title: 内置运维特征列表
---

本文档将**按字典序**展示所有内置运维特征的参数列表。

` + fmt.Sprintf("> 本文档由[脚本](../../contributor/cli-ref-doc)自动生成,请勿手动修改,上次更新于 %s。\n\n", time.Now().Format(time.RFC3339))

CustomTraitHeaderZH .

View Source
var CustomWorkflowHeaderEN = `---
title: Built-in WorkflowStep Type
---

This documentation will walk through all the built-in workflow step types sorted alphabetically.

` + fmt.Sprintf("> It was generated automatically by [scripts](../../contributor/cli-ref-doc), please don't update manually, last updated at %s.\n\n", time.Now().Format(time.RFC3339))

CustomWorkflowHeaderEN .

View Source
var CustomWorkflowHeaderZH = `---
title: 内置工作流步骤列表
---

本文档将**按字典序**展示所有内置工作流步骤的参数列表。

` + fmt.Sprintf("> 本文档由[脚本](../../contributor/cli-ref-doc)自动生成,请勿手动修改,上次更新于 %s。\n\n", time.Now().Format(time.RFC3339))

CustomWorkflowHeaderZH .

Functions

func ComponentDef

func ComponentDef(ctx context.Context, c common.Args, path, location *string, defdir string)

ComponentDef generate component def reference doc

func PolicyDef

func PolicyDef(ctx context.Context, c common.Args, path, location *string, defdir string)

PolicyDef generate policy def reference doc

func TraitDef

func TraitDef(ctx context.Context, c common.Args, path, location *string, defdir string)

TraitDef generate trait def reference doc

func WorkflowDef

func WorkflowDef(ctx context.Context, c common.Args, path, location *string, defdir string)

WorkflowDef generate workflow def reference doc

Types

This section is empty.

Jump to

Keyboard shortcuts

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