ibmcloudprovider

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 19 Imported by: 3

Documentation

Overview

Package ibmcloudprovider ...

Package ibmcloudprovider ...

Package ibmcloudprovider ...

Index

Constants

View Source
const (
	// TestProviderAccountID ...
	TestProviderAccountID = "test-provider-account"

	// TestProviderAccessToken ...
	TestProviderAccessToken = "test-provider-access-token"

	// TestIKSAccountID ...
	TestIKSAccountID = "test-iks-account"

	// TestZone ...
	TestZone = "test-zone"

	// IAMURL ...
	IAMURL = "test-iam-url"

	// IAMClientID ...
	IAMClientID = "test-iam_client_id"

	// IAMClientSecret ...
	IAMClientSecret = "test-iam_client_secret"

	// IAMAPIKey ...
	IAMAPIKey = "test-iam_api_key"

	// RefreshToken ...
	RefreshToken = "test-refresh_token"

	// TestEndpointURL ...
	TestEndpointURL = "http://some_endpoint"

	// TestAPIVersion ...
	TestAPIVersion = "2019-07-02"
)

Variables

This section is empty.

Functions

func GetTestLogger

func GetTestLogger(t *testing.T) (logger *zap.Logger, teardown func())

GetTestLogger ...

Types

type CloudProviderInterface

type CloudProviderInterface interface {
	GetProviderSession(ctx context.Context, logger *zap.Logger) (provider.Session, error)
	GetConfig() *config.Config
	GetClusterID() string
}

CloudProviderInterface ...

type FakeIBMCloudStorageProvider

type FakeIBMCloudStorageProvider struct {
	ProviderName   string
	ProviderConfig *config.Config
	ClusterID      string
	// contains filtered or unexported fields
}

FakeIBMCloudStorageProvider Provider

func NewFakeIBMCloudStorageProvider

func NewFakeIBMCloudStorageProvider(configPath string, logger *zap.Logger) (*FakeIBMCloudStorageProvider, error)

NewFakeIBMCloudStorageProvider ...

func (*FakeIBMCloudStorageProvider) GetClusterID added in v1.1.4

func (ficp *FakeIBMCloudStorageProvider) GetClusterID() string

GetClusterID ...

func (*FakeIBMCloudStorageProvider) GetConfig

func (ficp *FakeIBMCloudStorageProvider) GetConfig() *config.Config

GetConfig ...

func (*FakeIBMCloudStorageProvider) GetProviderSession

func (ficp *FakeIBMCloudStorageProvider) GetProviderSession(ctx context.Context, logger *zap.Logger) (provider.Session, error)

GetProviderSession ...

type IBMCloudStorageProvider

type IBMCloudStorageProvider struct {
	ProviderName   string
	ProviderConfig *config.Config
	Registry       registry.Providers
	ClusterID      string
}

IBMCloudStorageProvider Provider

func GetTestProvider

func GetTestProvider(t *testing.T, logger *zap.Logger) (*IBMCloudStorageProvider, error)

GetTestProvider ...

func NewIBMCloudStorageProvider

func NewIBMCloudStorageProvider(clusterVolumeLabel string, k8sClient *k8s_utils.KubernetesClient, logger *zap.Logger) (*IBMCloudStorageProvider, error)

NewIBMCloudStorageProvider ...

func (*IBMCloudStorageProvider) GetClusterID added in v1.1.4

func (icp *IBMCloudStorageProvider) GetClusterID() string

GetClusterID ...

func (*IBMCloudStorageProvider) GetConfig

func (icp *IBMCloudStorageProvider) GetConfig() *config.Config

GetConfig ...

func (*IBMCloudStorageProvider) GetProviderSession

func (icp *IBMCloudStorageProvider) GetProviderSession(ctx context.Context, logger *zap.Logger) (provider.Session, error)

GetProviderSession ...

Jump to

Keyboard shortcuts

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