Documentation ¶
Overview ¶
Package ibmcloudprovider ...
Package ibmcloudprovider ...
Package ibmcloudprovider ...
Index ¶
- Constants
- func GetTestLogger(t *testing.T) (logger *zap.Logger, teardown func())
- type CloudProviderInterface
- type FakeIBMCloudStorageProvider
- func (ficp *FakeIBMCloudStorageProvider) GetClusterInfo() *utils.ClusterInfo
- func (ficp *FakeIBMCloudStorageProvider) GetConfig() *config.Config
- func (ficp *FakeIBMCloudStorageProvider) GetProviderSession(ctx context.Context, logger *zap.Logger) (provider.Session, error)
- func (ficp *FakeIBMCloudStorageProvider) UpdateAPIKey(logger *zap.Logger) error
- type IBMCloudStorageProvider
- func (icp *IBMCloudStorageProvider) GetClusterInfo() *utils.ClusterInfo
- func (icp *IBMCloudStorageProvider) GetConfig() *config.Config
- func (icp *IBMCloudStorageProvider) GetProviderSession(ctx context.Context, logger *zap.Logger) (provider.Session, error)
- func (icp *IBMCloudStorageProvider) UpdateAPIKey(logger *zap.Logger) error
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 GetClusterInfo() *utils.ClusterInfo UpdateAPIKey(logger *zap.Logger) error }
CloudProviderInterface ...
type FakeIBMCloudStorageProvider ¶
type FakeIBMCloudStorageProvider struct { ProviderName string ProviderConfig *config.Config ClusterInfo *utils.ClusterInfo // contains filtered or unexported fields }
FakeIBMCloudStorageProvider Provider
func NewFakeIBMCloudStorageProvider ¶
func NewFakeIBMCloudStorageProvider(configPath string, logger *zap.Logger) (*FakeIBMCloudStorageProvider, error)
NewFakeIBMCloudStorageProvider ...
func (*FakeIBMCloudStorageProvider) GetClusterInfo ¶
func (ficp *FakeIBMCloudStorageProvider) GetClusterInfo() *utils.ClusterInfo
GetClusterInfo ...
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 ...
func (*FakeIBMCloudStorageProvider) UpdateAPIKey ¶
func (ficp *FakeIBMCloudStorageProvider) UpdateAPIKey(logger *zap.Logger) error
UpdateAPIKey ...
type IBMCloudStorageProvider ¶
type IBMCloudStorageProvider struct { ProviderName string ProviderConfig *config.Config Registry registry.Providers ClusterInfo *utils.ClusterInfo }
IBMCloudStorageProvider Provider
func GetTestProvider ¶
GetTestProvider ...
func NewIBMCloudStorageProvider ¶
func NewIBMCloudStorageProvider(configPath string, logger *zap.Logger) (*IBMCloudStorageProvider, error)
NewIBMCloudStorageProvider ...
func (*IBMCloudStorageProvider) GetClusterInfo ¶
func (icp *IBMCloudStorageProvider) GetClusterInfo() *utils.ClusterInfo
GetClusterInfo ...
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 ...
func (*IBMCloudStorageProvider) UpdateAPIKey ¶
func (icp *IBMCloudStorageProvider) UpdateAPIKey(logger *zap.Logger) error
UpdateAPIKey ...
Click to show internal directories.
Click to hide internal directories.