bufimagemodify

package
v1.61.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Modify

func Modify(
	image bufimage.Image,
	config bufconfig.GenerateManagedConfig,
	options ...ModifyOption,
) error

Modify modifies the image according to the managed config.

The CLI should use this function instead of ModifyXYZ.

func ModifyCcEnableArenas

func ModifyCcEnableArenas(
	image bufimage.Image,
	config bufconfig.GenerateManagedConfig,
	options ...ModifyOption,
) error

ModifyCcEnableArenas modifies the cc_enable_arenas file option.

func ModifyCsharpNamespace

func ModifyCsharpNamespace(
	image bufimage.Image,
	config bufconfig.GenerateManagedConfig,
	options ...ModifyOption,
) error

ModifyCsharpNamespace modifies the csharp_namespace file option.

func ModifyGoPackage

func ModifyGoPackage(
	image bufimage.Image,
	config bufconfig.GenerateManagedConfig,
	options ...ModifyOption,
) error

ModifyGoPackage modifies the go_package file option.

func ModifyJavaMultipleFiles

func ModifyJavaMultipleFiles(
	image bufimage.Image,
	config bufconfig.GenerateManagedConfig,
	options ...ModifyOption,
) error

ModifyJavaMultipleFiles modifies the java_multiple_files file option.

func ModifyJavaOuterClass

func ModifyJavaOuterClass(
	image bufimage.Image,
	config bufconfig.GenerateManagedConfig,
	options ...ModifyOption,
) error

ModifyJavaOuterClass modifies the java_outer_class file option.

func ModifyJavaPackage

func ModifyJavaPackage(
	image bufimage.Image,
	config bufconfig.GenerateManagedConfig,
	options ...ModifyOption,
) error

ModifyJavaPackage modifies the java_package file option.

func ModifyJavaStringCheckUtf8

func ModifyJavaStringCheckUtf8(
	image bufimage.Image,
	config bufconfig.GenerateManagedConfig,
	options ...ModifyOption,
) error

ModifyJavaStringCheckUtf8 modifies the java_string_check_utf8 file option.

func ModifyJsType

func ModifyJsType(
	image bufimage.Image,
	config bufconfig.GenerateManagedConfig,
	options ...ModifyOption,
) error

ModifyJsType modifies the js_type field option.

func ModifyObjcClassPrefix

func ModifyObjcClassPrefix(
	image bufimage.Image,
	config bufconfig.GenerateManagedConfig,
	options ...ModifyOption,
) error

ModifyObjcClassPrefix modifies the objc_class_prefix file option.

func ModifyOptimizeFor

func ModifyOptimizeFor(
	image bufimage.Image,
	config bufconfig.GenerateManagedConfig,
	options ...ModifyOption,
) error

ModifyOptimizeFor modifies the optimize_for file option.

func ModifyPhpMetadataNamespace

func ModifyPhpMetadataNamespace(
	image bufimage.Image,
	config bufconfig.GenerateManagedConfig,
	options ...ModifyOption,
) error

ModifyPhpMetadataNamespace modifies the php_metadata_namespace file option.

func ModifyPhpNamespace

func ModifyPhpNamespace(
	image bufimage.Image,
	config bufconfig.GenerateManagedConfig,
	options ...ModifyOption,
) error

ModifyPhpNamespace modifies the php_namespace file option.

func ModifyRubyPackage

func ModifyRubyPackage(
	image bufimage.Image,
	config bufconfig.GenerateManagedConfig,
	options ...ModifyOption,
) error

ModifyRubyPackage modifies the ruby_package file option.

func ModifySwiftPrefix

func ModifySwiftPrefix(
	image bufimage.Image,
	config bufconfig.GenerateManagedConfig,
	options ...ModifyOption,
) error

ModifySwiftPrefix modifies the swift_prefix file option.

Types

type ModifyOption

type ModifyOption func(*modifyOptions)

ModifyOption is an option for Modify.

func ModifyPreserveExisting

func ModifyPreserveExisting() ModifyOption

ModifyPreserveExisting only modifies an option if it is not defined in the file.

Do not use this option in the CLI.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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