Documentation
¶
Index ¶
- func IsFieldIgnored(ignoredFields sets.String, fullyQualifiedMessageName, fieldName string) bool
- func LoadIgnoredFields(configPath string) (sets.String, error)
- type DetectorOptions
- type FieldChange
- type FieldDetector
- type GenerateTypesFlags
- type IgnoredFieldsConfig
- type MessageDiff
- type MessageFieldIgnores
- type ResourceMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFieldIgnored ¶
IsFieldIgnored checks if a field should be ignored based on its fully qualified name
Types ¶
type DetectorOptions ¶
type FieldChange ¶
type FieldChange struct { OldType protoreflect.Kind NewType protoreflect.Kind IsRepeated bool }
type FieldDetector ¶
type FieldDetector struct {
// contains filtered or unexported fields
}
func NewFieldDetector ¶
func NewFieldDetector(opts *DetectorOptions) (*FieldDetector, error)
NewFieldDetector detects any proto field changes between the current pinned and the HEAD.
func (*FieldDetector) DetectNewFields ¶
func (d *FieldDetector) DetectNewFields() ([]MessageDiff, error)
type GenerateTypesFlags ¶
type GenerateTypesFlags struct { Service string Resources []ResourceMapping }
GenerateTypesFlags represents the flags used in "generate-types" command
type IgnoredFieldsConfig ¶
type IgnoredFieldsConfig struct { // key is proto package name (e.g., "google.cloud.compute.v1"). ProtoPackages map[string]MessageFieldIgnores `yaml:",inline"` }
IgnoredFieldsConfig represents the structure of the ignored fields YAML file.
Example YAML:
google.cloud.bigquery.connection.v1:
Connection: - salesforceDataCloud
google.api.apikeys.v2:
Key: - createTime - updateTime
type MessageDiff ¶
type MessageDiff struct { MessageName string NewFields []string // fields added in the new version RemovedFields []string // fields removed in the new version ChangedFields map[string]FieldChange // fields changed in the new version }
type MessageFieldIgnores ¶
type ResourceMapping ¶
Click to show internal directories.
Click to hide internal directories.