Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Instances functions InstanceGetByID(instanceID string) (*vpcv1.Instance, error) InstanceExistsByName(name string, machineProviderConfig *ibmcloudproviderv1.IBMCloudMachineProviderSpec) (bool, error) InstanceGetByName(name string, machineProviderConfig *ibmcloudproviderv1.IBMCloudMachineProviderSpec) (*vpcv1.Instance, error) InstanceDeleteByName(name string, machineProviderConfig *ibmcloudproviderv1.IBMCloudMachineProviderSpec) error InstanceCreate(machineName string, machineProviderConfig *ibmcloudproviderv1.IBMCloudMachineProviderSpec, userData string) (*vpcv1.Instance, error) InstanceGetProfile(profileName string) (bool, error) // Helper functions GetAccountID() (string, error) GetCustomImageByName(imageName string, resourceGroupID string) (string, error) VerifyInstanceProfile(profile string) (string, error) GetVPCIDByName(vpcName string, resourceGroupID string) (string, error) GetResourceGroupIDByName(resourceGroupName string) (string, error) GetSubnetIDbyName(subnetName string, resourceGroupID string) (string, error) GetSecurityGroupsByName(securityGroupNames []string, resourceGroupID string, vpcID string) ([]vpcv1.SecurityGroupIdentityIntf, error) GetDedicatedHostByName(dedicatedHostName string, resourceGroupID string, zoneName string) (string, error) }
Client is a wrapper object for IBM SDK clients
func NewClient ¶
func NewClient(client coreClient.Client, credentialVal string, providerSpec ibmcloudproviderv1.IBMCloudMachineProviderSpec) (Client, error)
NewClient initilizes a new validated client
type IbmcloudClientBuilderFuncType ¶
type IbmcloudClientBuilderFuncType func(client coreClient.Client, credentialVal string, providerSpec ibmcloudproviderv1.IBMCloudMachineProviderSpec) (Client, error)
IbmcloudClientBuilderFuncType is function type for building ibm cloud client
Click to show internal directories.
Click to hide internal directories.