Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendGCloudTokenToOutgoingContext ¶
AppendGCloudTokenToOutgoingContext appends the GCloud token to the outgoing context
func GetCtxWithMetadata ¶
func GetCtxWithMetadata( ctxMetadata *CtxMetadata, ctx context.Context, ) context.Context
GetCtxWithMetadata gets the context with the metadata
Types ¶
type CtxMetadata ¶
type CtxMetadata struct {
MetadataFields []MetadataField
}
CtxMetadata is the metadata for the context
func NewAuthenticatedCtxMetadata ¶
func NewAuthenticatedCtxMetadata( gcloudToken string, jwtToken string, ) *CtxMetadata
NewAuthenticatedCtxMetadata creates a new authenticated CtxMetadata
func NewCtxMetadata ¶
func NewCtxMetadata(metadataFields map[string]string) *CtxMetadata
NewCtxMetadata creates a new CtxMetadata
func NewUnauthenticatedCtxMetadata ¶
func NewUnauthenticatedCtxMetadata(gcloudToken string) *CtxMetadata
NewUnauthenticatedCtxMetadata creates a new unauthenticated CtxMetadata
type MetadataField ¶
MetadataField is a field in the metadata
Click to show internal directories.
Click to hide internal directories.