utils

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 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 StatusText added in v0.8.9

func StatusText(err error) string

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