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.
Click to show internal directories.
Click to hide internal directories.