package
0.0.0-20230306131847-26f457599b8d
Repository: https://github.com/xiaoyawei/buf.git
Documentation: pkg.go.dev
# Functions
ExistingConfigFilePath checks if a configuration file exists, and if so, returns the path within the ReadBucket of this configuration file.
GetConfigForBucket gets the Config for the YAML data at ConfigFilePath.
GetConfigForData gets the Config for the given JSON or YAML data.
OptionsSliceToPluginOptions converts a slice of plugin options to a map (using the first '=' as a delimiter between key and value).
ParseConfig parses the file at the given path as a Config.
PluginOptionsToOptionsSlice converts a map representation of plugin options to a slice of the form '<key>=<value>' or '<key>' for empty values.
WithOverrideRemote will update the remote found in the plugin name and dependencies.
# Constants
ExternalConfigFilePath is the default configuration file path for v1.
V1Version is the version string used to indicate the v1 version of the buf.plugin.yaml file.
# Variables
AllConfigFilePaths are all acceptable config file paths without overrides.
# Structs
Config is the plugin config.
ExternalConfig represents the on-disk representation of the plugin configuration at version v1.
ExternalDependency represents a dependency on another plugin.
ExternalGoRegistryConfig is the external registry configuration for a Go plugin.
ExternalMavenRegistryConfig is the external registry configuration for a Maven plugin.
ExternalNPMRegistryConfig is the external registry configuration for a JavaScript NPM plugin.
ExternalRegistryConfig is the external configuration for the registry of a plugin.
GoRegistryConfig is the registry configuration for a Go plugin.
GoRegistryDependencyConfig is the go registry dependency configuration.
MavenRegistryConfig is the registry configuration for a Maven plugin.
NPMRegistryConfig is the registry configuration for a JavaScript NPM plugin.
NPMRegistryDependencyConfig is the npm registry dependency configuration.
RegistryConfig is the configuration for the registry of a plugin.
# Type aliases
ConfigOption is an optional option used when loading a Config.