cpi

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientProvider

type ClientProvider struct{}

ClientProvider is the real implementation of CPI interface that provides a client to make calls against the API

func (*ClientProvider) NewConfig

func (cp *ClientProvider) NewConfig(ctx context.Context, secret *corev1.Secret, region string) (*aws.Config, error)

NewConfig returns the config used to create a new EC2 Client set-up with the provided values.

func (*ClientProvider) NewEC2Client

func (cp *ClientProvider) NewEC2Client(config *aws.Config) interfaces.Ec2Client

NewEC2Client Returns an EC2Client object

type ClientProviderInterface

type ClientProviderInterface interface {
	NewConfig(context.Context, *corev1.Secret, string) (*aws.Config, error)
	NewEC2Client(*aws.Config) interfaces.Ec2Client
}

ClientProviderInterface provides an interface to set-up and instantiate (EC2) Clients

Jump to

Keyboard shortcuts

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