maskutils

package
v0.0.0-...-f4b31ea Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package maskutils is a collection of utilities for getting, setting, validating and doing other stuff to protos like fleetcostpb.CostIndicator given a fieldmask. A fieldmask can be either a fieldmask proto or a list of strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateCostIndicatorProto

func UpdateCostIndicatorProto(dst *fleetcostpb.CostIndicator, src *fleetcostpb.CostIndicator, fieldmask []string)

UpdateCostIndicatorProto updates the cost indicator proto.

The fieldmask argument is probably an expression of the form request.GetFieldMask().GetPaths().

Between the source and destinations the names must match OR one or both must be empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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