bazel

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package bazel provides utilities for parsing BUILD.bazel files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config holds configuration extracted from a googleapis BUILD.bazel file.

func Parse

func Parse(dir string) (*Config, error)

Parse reads a BUILD.bazel file from the given directory and extracts the relevant configuration from the java_gapic_library rule.

func (*Config) GRPCServiceConfig

func (c *Config) GRPCServiceConfig() string

GRPCServiceConfig is name of the gRPC service config JSON file.

func (*Config) GapicYAML

func (c *Config) GapicYAML() string

GapicYAML is the GAPIC config file in the API version directory in googleapis.

func (*Config) HasGAPIC

func (c *Config) HasGAPIC() bool

HasGAPIC indicates whether the GAPIC generator should be run.

func (*Config) HasRESTNumericEnums

func (c *Config) HasRESTNumericEnums() bool

HasRESTNumericEnums indicates whether the generated client should support numeric enums.

func (*Config) ServiceYAML

func (c *Config) ServiceYAML() string

ServiceYAML is the client config file in the API version directory in googleapis.

func (*Config) Transport

func (c *Config) Transport() string

Transport is typically one of "grpc", "rest" or "grpc+rest".

func (*Config) Validate

func (c *Config) Validate() error

Validate ensures that the configuration is valid.

Jump to

Keyboard shortcuts

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