v1

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

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

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 (c *CachingFactory) GetAccountClient(region string, role model.Role) account.Client

func (*CachingFactory) GetCloudwatchClient

func (c *CachingFactory) GetCloudwatchClient(region string, role model.Role, concurrency cloudwatch_client.ConcurrencyConfig) cloudwatch_client.Client

func (*CachingFactory) GetTaggingClient

func (c *CachingFactory) GetTaggingClient(region string, role model.Role, concurrencyLimit int) tagging.Client

func (*CachingFactory) Refresh

func (c *CachingFactory) Refresh()

Jump to

Keyboard shortcuts

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