Documentation ¶
Overview ¶
Copyright 2024 The Prometheus Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type CachingFactory
- func (c *CachingFactory) Clear()
- func (c *CachingFactory) GetAccountClient(region string, role model.Role) account.Client
- func (c *CachingFactory) GetCloudwatchClient(region string, role model.Role, ...) cloudwatch_client.Client
- func (c *CachingFactory) GetTaggingClient(region string, role model.Role, concurrencyLimit int) tagging.Client
- func (c *CachingFactory) Refresh()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachingFactory ¶
type CachingFactory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func NewFactory(logger logging.Logger, jobsCfg model.JobsConfig, fips bool) *CachingFactory
NewFactory creates a new client factory to use when fetching data from AWS with sdk v1
func (*CachingFactory) Clear ¶
func (c *CachingFactory) Clear()
Refresh and Clear help to avoid using lock primitives by asserting that there are no ongoing writes to the map.
func (*CachingFactory) GetAccountClient ¶
func (*CachingFactory) GetCloudwatchClient ¶
func (c *CachingFactory) GetCloudwatchClient(region string, role model.Role, concurrency cloudwatch_client.ConcurrencyConfig) cloudwatch_client.Client
func (*CachingFactory) GetTaggingClient ¶
func (*CachingFactory) Refresh ¶
func (c *CachingFactory) Refresh()