props

package
v0.0.0-...-90d4145 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(build *buildbucketpb.Build, key string) (bool, error)

Bool reads a boolean input property from Build.Input.Properties. If the property is not set, returns false and a nil error.

func Proto

func Proto(build *buildbucketpb.Build, key string, m proto.Message) error

Proto parses an input property whose value is encoded as jsonpb. If the property is not set, it will return a nil error and leave the proto message as-is.

func SetBuildInputProperty

func SetBuildInputProperty(build *buildbucketpb.Build, key string, value any) error

Set input property on Build.Input.Properties.

func String

func String(build *buildbucketpb.Build, key string) (string, error)

Gets string input property from Build.Input.Properties. If property was not set, returns empty string and a nil error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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