util

package
v0.0.0-...-e3528c7 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package util provides parsing and formatting for the paths used by the REST API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFHIRStoreName

func GenerateFHIRStoreName(projectReference, locationID, datasetID, fhirStoreID string) string

GenerateFHIRStoreName puts together the components to form the name of a REST FHIR store.

func GenerateHL7V2MessageName

func GenerateHL7V2MessageName(projectReference, locationID, datasetID, hl7V2StoreID, messageID string) string

GenerateHL7V2MessageName puts together the components to form the name of a REST Message resource.

func GenerateHL7V2StoreName

func GenerateHL7V2StoreName(projectReference, locationID, datasetID, hl7V2StoreID string) string

GenerateHL7V2StoreName puts together the components to form the name of a REST HL7v2 store resource.

func ParseHL7V2MessageName

func ParseHL7V2MessageName(name string) (string, string, string, string, string, error)

ParseHL7V2MessageName parses the project reference, location id, dataset id, HL7v2 store id, and message id from the given resource name.

func TokenSource

func TokenSource(ctx context.Context, cred string, scopes ...string) (oauth2.TokenSource, error)

TokenSource creates a token source for authenticating against GCP services. If a credentials file is provided (e.g. for a customized service account), it will be used to generate the token source, otherwise the default service account will be used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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