bufimagemodify

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Modify added in v1.32.0

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 added in v1.32.0

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

ModifyCcEnableArenas modifies the cc_enable_arenas file option.

func ModifyCsharpNamespace added in v1.32.0

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

ModifyCsharpNamespace modifies the csharp_namespace file option.

func ModifyGoPackage added in v1.32.0

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

ModifyGoPackage modifies the go_package file option.

func ModifyJavaMultipleFiles added in v1.32.0

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

ModifyJavaMultipleFiles modifies the java_multiple_files file option.

func ModifyJavaOuterClass added in v1.32.0

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

ModifyJavaOuterClass modifies the java_outer_class file option.

func ModifyJavaPackage added in v1.32.0

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

ModifyJavaPackage modifies the java_package file option.

func ModifyJavaStringCheckUtf8 added in v1.32.0

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

ModifyJavaStringCheckUtf8 modifies the java_string_check_utf8 file option.

func ModifyJsType added in v1.32.0

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

ModifyJsType modifies the js_type field option.

func ModifyObjcClassPrefix added in v1.32.0

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

ModifyObjcClassPrefix modifies the objc_class_prefix file option.

func ModifyOptmizeFor added in v1.32.0

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

ModifyOptmizeFor modifies the optimize_for file option.

func ModifyPhpMetadataNamespace added in v1.32.0

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

ModifyPhpMetadataNamespace modifies the php_metadata_namespace file option.

func ModifyPhpNamespace added in v1.32.0

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

ModifyPhpNamespace modifies the php_namespace file option.

func ModifyRubyPackage added in v1.32.0

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

ModifyRubyPackage modifies the ruby_package file option.

Types

type ModifyOption added in v1.32.0

type ModifyOption func(*modifyOptions)

ModifyOption is an option for Modify.

func ModifyPreserveExisting added in v1.32.0

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