utils

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAttributes

func GetAttributes(asset *v1beta2.Asset) map[string]interface{}

GetAttributes returns custom properties of the given asset

func SetAttributes

func SetAttributes(asset *v1beta2.Asset, customFields map[string]interface{}) (res *v1beta2.Asset, err error)

SetAttributes sets custom properties of the given asset

func StatusCode

func StatusCode(err error) codes.Code

func TryParseMapToProto

func TryParseMapToProto(src map[string]interface{}) *structpb.Struct

TryParseMapToProto parses given map to proto struct

Types

This section is empty.

Jump to

Keyboard shortcuts

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