types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpusTypeExtensionAction  OpusType = "erda/extension/action"
	OpusTypeExtensionAddon   OpusType = "erda/extension/addon"
	OpusTypeArtifactsProject OpusType = "erda/artifacts/project"

	OpusLevelSystem OpusLevel = "sys"
	OpusLevelOrg    OpusLevel = "org"

	PutOnOpusModeAppend   PutOnOpusMode = "append"
	PutOnOpusModeOverride PutOnOpusMode = "override"

	LangUnknown Lang = "unknown"
	LangEn      Lang = "en"
	LangEnUs    Lang = "en_us"
	LangZh      Lang = "zh"
	LangZhCn    Lang = "zh_cn"
)

Variables

View Source
var (
	OpusTypeNames = map[OpusType]string{
		OpusTypeExtensionAction:  "Action",
		OpusTypeExtensionAddon:   "Addon",
		OpusTypeArtifactsProject: "Erda Artifacts",
	}

	LangTypes = map[Lang]string{
		LangUnknown: "unknown",
		LangEn:      "English",
		LangEnUs:    "English",
		LangZh:      "中文",
		LangZhCn:    "中文",
	}
)

Functions

This section is empty.

Types

type Lang

type Lang string

func (Lang) Equal

func (o Lang) Equal(s string) bool

func (Lang) String

func (o Lang) String() string

type OpusLevel

type OpusLevel string

func (OpusLevel) Equal

func (o OpusLevel) Equal(s string) bool

func (OpusLevel) String

func (o OpusLevel) String() string

type OpusType

type OpusType string

func (OpusType) Equal

func (o OpusType) Equal(s string) bool

func (OpusType) String

func (o OpusType) String() string

type PutOnOpusMode

type PutOnOpusMode string

func (PutOnOpusMode) Equal

func (o PutOnOpusMode) Equal(s string) bool

func (PutOnOpusMode) String

func (o PutOnOpusMode) String() string

Jump to

Keyboard shortcuts

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