package
0.0.0-20230306131847-26f457599b8d
Repository: https://github.com/xiaoyawei/buf.git
Documentation: pkg.go.dev
# Functions
ParsePluginPath parses a string in the format <buf.build/owner/plugins/name> into remote, owner and name.
ParsePluginVersionPath parses a string in the format <buf.build/owner/plugins/name[:version]> into remote, owner, name and version.
ParseTemplateConfig parses the input template config as a path or JSON/YAML literal.
ParseTemplatePath parses a string in the format <buf.build/owner/templates/name> into remote, owner and name.
ParseTemplateVersionConfig parses the input template version config as a path or JSON/YAML literal.
TemplateConfigToProtoPluginConfigs converts the template config to a slice of proto plugin configs, suitable for use with the Plugin Service CreateTemplate RPC.
TemplateVersionConfigToProtoPluginVersionMappings converts the template version config to a slice of Plugin version mappings, suitable for use with the Plugin Service CreateTemplateVersion RPC.
ValidateTemplateName validates the format of the template name.
# Constants
PluginsPathName is the path prefix used to signify that a name belongs to a plugin.
TemplatesPathName is the path prefix used to signify that a name belongs to a template.
# Structs
PluginConfig is the config used to describe a plugin in a new template.
PluginVersion describes a version of a plugin for use in a template version.
TemplateConfig is the config used to describe the plugins of a new template.
TemplateVersionConfig is the config used to describe the plugin version of a new template version.