resource

package
v0.8.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFromMetadata

func ExtractFromMetadata(ctx context.Context, key string) ([]string, bool)

ExtractFromMetadata extracts context metadata given a key

func GetCollectionID

func GetCollectionID(name string) (string, error)

GetCollectionID returns the resource collection ID given a resource name

func GetOwner

func GetOwner(ctx context.Context) (string, error)

GetOwner returns the resource owner

func GetPermalinkUID

func GetPermalinkUID(permalink string) (string, error)

GetPermalinkUID returns the resource UID given a resource permalink

func GetRscNameID

func GetRscNameID(name string) (string, error)

GetRscNameID returns the resource ID given a resource name

func IsGWProxied

func IsGWProxied(ctx context.Context) bool

IsGWProxied returns true if it has grpcgateway-user-agent header, otherwise, returns false

Types

This section is empty.

Jump to

Keyboard shortcuts

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