Documentation
¶
Overview ¶
Package parametermanager provides functionality to fetch configuration from Google Cloud Parameter Manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the Parameter Manager service.
type Resource ¶
Resource represents a fetched parameter configuration.
func FetchParameter ¶
func FetchParameter(ctx context.Context, client *Client, projectID, location, parameterName, version string) (*Resource, error)
FetchParameter is a convenience function that creates a new client and fetches the parameter. If client is provided, it will be used. If client is nil, a new client is created for this call. For applications that need to fetch multiple parameters, it is more performant to create a single client using NewClient and reuse it for all calls.
Click to show internal directories.
Click to hide internal directories.