Documentation ¶
Index ¶
- type AzureVirtualMachineClient
- func (c *AzureVirtualMachineClient) AddVirtualMachineCredsToSecrets(ctx context.Context, data map[string][]byte, ...) error
- func (c *AzureVirtualMachineClient) CreateVirtualMachine(ctx context.Context, location string, resourceGroupName string, ...) (future compute.VirtualMachinesCreateOrUpdateFuture, err error)
- func (c *AzureVirtualMachineClient) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (c *AzureVirtualMachineClient) DeleteVirtualMachine(ctx context.Context, vmName string, resourcegroup string) (status string, err error)
- func (c *AzureVirtualMachineClient) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (c *AzureVirtualMachineClient) GetOrPrepareSecret(ctx context.Context, instance *azurev1alpha1.AzureVirtualMachine) (map[string][]byte, error)
- func (g *AzureVirtualMachineClient) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
- func (g *AzureVirtualMachineClient) GetStatus(obj runtime.Object) (*azurev1alpha1.ASOStatus, error)
- func (c *AzureVirtualMachineClient) GetVirtualMachine(ctx context.Context, resourcegroup string, vmName string) (vm compute.VirtualMachine, err error)
- type VirtualMachineManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureVirtualMachineClient ¶
type AzureVirtualMachineClient struct { Creds config.Credentials SecretClient secrets.SecretClient Scheme *runtime.Scheme }
func NewAzureVirtualMachineClient ¶
func NewAzureVirtualMachineClient(creds config.Credentials, secretclient secrets.SecretClient, scheme *runtime.Scheme) *AzureVirtualMachineClient
func (*AzureVirtualMachineClient) AddVirtualMachineCredsToSecrets ¶
func (c *AzureVirtualMachineClient) AddVirtualMachineCredsToSecrets(ctx context.Context, data map[string][]byte, instance *azurev1alpha1.AzureVirtualMachine) error
func (*AzureVirtualMachineClient) CreateVirtualMachine ¶
func (c *AzureVirtualMachineClient) CreateVirtualMachine(ctx context.Context, location string, resourceGroupName string, resourceName string, vmSize string, osType string, adminUserName string, adminPassword string, sshPublicKeyData string, networkInterfaceName string, platformImageURN string) (future compute.VirtualMachinesCreateOrUpdateFuture, err error)
func (*AzureVirtualMachineClient) Delete ¶
func (c *AzureVirtualMachineClient) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
func (*AzureVirtualMachineClient) DeleteVirtualMachine ¶
func (*AzureVirtualMachineClient) Ensure ¶
func (c *AzureVirtualMachineClient) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
func (*AzureVirtualMachineClient) GetOrPrepareSecret ¶
func (c *AzureVirtualMachineClient) GetOrPrepareSecret(ctx context.Context, instance *azurev1alpha1.AzureVirtualMachine) (map[string][]byte, error)
func (*AzureVirtualMachineClient) GetParents ¶
func (g *AzureVirtualMachineClient) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
func (*AzureVirtualMachineClient) GetStatus ¶
func (g *AzureVirtualMachineClient) GetStatus(obj runtime.Object) (*azurev1alpha1.ASOStatus, error)
func (*AzureVirtualMachineClient) GetVirtualMachine ¶
func (c *AzureVirtualMachineClient) GetVirtualMachine(ctx context.Context, resourcegroup string, vmName string) (vm compute.VirtualMachine, err error)
type VirtualMachineManager ¶
type VirtualMachineManager interface { CreateVirtualMachine(ctx context.Context, location string, resourceGroupName string, resourceName string, vmSize string, osType string, adminUserName string, adminPassword string, sshPublicKeyData string, networkInterfaceName string, platformImageURN string) (compute.VirtualMachine, error) DeleteVirtualMachine(ctx context.Context, resourceName string, resourceGroupName string) (string, error) GetVirtualMachine(ctx context.Context, resourceGroupName string, resourceName string) (compute.VirtualMachine, error) // also embed async client methods resourcemanager.ARMClient }
Click to show internal directories.
Click to hide internal directories.