resource

package
v0.16.4-alpha Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 13 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 GetDefinitionID

func GetDefinitionID(name string) (string, error)

func GetID

func GetID(name string) (string, error)

func GetModelID

func GetModelID(name string) (string, error)

func GetOperationID

func GetOperationID(name string) (string, error)

func GetOwner

GetOwner returns the resource owner

func GetOwnerCustom

func GetOwnerCustom(req *http.Request, client mgmtPB.MgmtPrivateServiceClient) (*mgmtPB.User, error)

GetOwnerCustom returns the resource owner from a request

func GetPermalinkUID

func GetPermalinkUID(permalink string) (string, error)

GetPermalinkUID returns the resource UID given a resource permalink

func GetRequestSingleHeader

func GetRequestSingleHeader(ctx context.Context, header string) string

GetRequestSingleHeader get a request header, the header has to be single-value HTTP header

Types

This section is empty.

Jump to

Keyboard shortcuts

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