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