gce

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultGCECreator

type DefaultGCECreator struct {
	// contains filtered or unexported fields
}

func NewDefaultGCECreator

func NewDefaultGCECreator(logger klog.Logger) (*DefaultGCECreator, error)

func (*DefaultGCECreator) GCEForProviderConfig

func (g *DefaultGCECreator) GCEForProviderConfig(providerConfig *v1.ProviderConfig, logger klog.Logger) (*cloudgce.Cloud, error)

GCEForProviderConfig returns a new GCE client for the given project. If providerConfig is nil, it returns the default cloud associated with the cluster's project. It modifies the default configuration when a providerConfig is provided.

type GCECreator

type GCECreator interface {
	GCEForProviderConfig(providerConfig *v1.ProviderConfig, logger klog.Logger) (*cloudgce.Cloud, error)
}

type GCEFake

type GCEFake struct {
	// contains filtered or unexported fields
}

func NewGCEFake

func NewGCEFake() *GCEFake

func (*GCEFake) GCEForProviderConfig

func (g *GCEFake) GCEForProviderConfig(providerConfig *v1.ProviderConfig, logger klog.Logger) (*cloudgce.Cloud, error)

GCEForProviderConfig returns a new Fake GCE client for the given provider config. It stores the client in the GCEFake and returns it if the same provider config is requested again.

Jump to

Keyboard shortcuts

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