Documentation ¶
Overview ¶
Package util provides parsing and formatting for the paths used by the REST API.
Index ¶
- func GenerateFHIRStoreName(projectReference, locationID, datasetID, fhirStoreID string) string
- func GenerateHL7V2MessageName(projectReference, locationID, datasetID, hl7V2StoreID, messageID string) string
- func GenerateHL7V2StoreName(projectReference, locationID, datasetID, hl7V2StoreID string) string
- func ParseHL7V2MessageName(name string) (string, string, string, string, string, error)
- func TokenSource(ctx context.Context, cred string, scopes ...string) (oauth2.TokenSource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateFHIRStoreName ¶
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 ¶
GenerateHL7V2StoreName puts together the components to form the name of a REST HL7v2 store resource.
func ParseHL7V2MessageName ¶
ParseHL7V2MessageName parses the project reference, location id, dataset id, HL7v2 store id, and message id from the given resource name.
func TokenSource ¶
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.