Documentation
¶
Overview ¶
Package gcs loads configuration from GCP Cloud Storage.
It requires following roles on the target GCS object:
- roles/storage.objectViewer
Change notification ¶
By default, it periodically polls the configuration only. It also listens to change events by register it to PubSub notifier with Pub/Sub notifications for Cloud Storage.
Only OBJECT_FINALIZE events trigger polling the configuration and other type of events are ignored.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCS ¶
type GCS struct {
// contains filtered or unexported fields
}
GCS is a Provider that loads configuration from GCP Cloud Storage.
To create a new GCS, call New.
type Option ¶
type Option = option.ClientOption
func WithPollInterval ¶
WithPollInterval provides the interval for polling the configuration.
The default interval is 1 minute.
Click to show internal directories.
Click to hide internal directories.