azure

package
v1.14.16-dcf8320c8c4e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBlockBlob

func CreateBlockBlob(ctx context.Context, in *CreateBlockBlobInput) (string, error)

CreateBlockBlob creates a block blob and uploads a file from a URL to it.

func CreatePageBlob

func CreatePageBlob(ctx context.Context, in *CreatePageBlobInput) (string, error)

CreatePageBlob creates a blob and uploads a file from a URL to it.

func GenerateStorageAccountEncryption added in v0.90.17

func GenerateStorageAccountEncryption(ctx context.Context, in *CustomerManagedKeyInput) (*armstorage.Encryption, error)

GenerateStorageAccountEncryption generates all the Encryption information for the Storage Account using the Customer Managed Key.

Types

type CreateBlobContainerInput

type CreateBlobContainerInput struct {
	SubscriptionID       string
	ResourceGroupName    string
	StorageAccountName   string
	ContainerName        string
	PublicAccess         *armstorage.PublicAccess
	StorageClientFactory *armstorage.ClientFactory
}

CreateBlobContainerInput contains the input parameters used for creating a blob storage container.

type CreateBlobContainerOutput

type CreateBlobContainerOutput struct {
	BlobContainer *armstorage.BlobContainer
}

CreateBlobContainerOutput contains the return values after creating a blob storage container.

func CreateBlobContainer

CreateBlobContainer creates a blob container in a storage account.

type CreateBlockBlobInput

type CreateBlockBlobInput struct {
	StorageURL         string
	BlobURL            string
	StorageAccountName string
	BootstrapIgnData   []byte
	StorageAccountKeys []armstorage.AccountKey
	CloudConfiguration cloud.Configuration
}

CreateBlockBlobInput containers the input parameters used for creating a block blob.

type CreateBlockBlobOutput

type CreateBlockBlobOutput struct {
	PageBlobClient      *pageblob.Client
	SharedKeyCredential *azblob.SharedKeyCredential
}

CreateBlockBlobOutput contains the return values after creating a block blob.

type CreateGalleryImageInput

type CreateGalleryImageInput struct {
	ResourceGroupName    string
	GalleryName          string
	GalleryImageName     string
	Region               string
	Publisher            string
	Offer                string
	SKU                  string
	Tags                 map[string]*string
	TokenCredential      azcore.TokenCredential
	CloudConfiguration   cloud.Configuration
	Architecture         armcompute.Architecture
	OSType               armcompute.OperatingSystemTypes
	OSState              armcompute.OperatingSystemStateTypes
	HyperVGeneration     armcompute.HyperVGeneration
	ComputeClientFactory *armcompute.ClientFactory
	SecurityType         string
}

CreateGalleryImageInput contains the input parameters for creating a gallery image.

type CreateGalleryImageOutput

type CreateGalleryImageOutput struct {
	GalleryImage *armcompute.GalleryImage
}

CreateGalleryImageOutput contains the return values after creating a gallery image.

func CreateGalleryImage

func CreateGalleryImage(ctx context.Context, in *CreateGalleryImageInput) (*CreateGalleryImageOutput, error)

CreateGalleryImage creates a gallery image.

type CreateGalleryImageVersionInput

type CreateGalleryImageVersionInput struct {
	ResourceGroupName       string
	GalleryName             string
	GalleryImageName        string
	GalleryImageVersionName string
	Region                  string
	StorageAccountID        string
	BlobURL                 string
	Tags                    map[string]*string
	RegionalReplicaCount    int32
	ComputeClientFactory    *armcompute.ClientFactory
}

CreateGalleryImageVersionInput contains the input parameters for creating a gallery image version.

type CreateGalleryImageVersionOutput

type CreateGalleryImageVersionOutput struct {
	GalleryImageVersion *armcompute.GalleryImageVersion
}

CreateGalleryImageVersionOutput contains the return values after create a gallery image version.

func CreateGalleryImageVersion

CreateGalleryImageVersion creates a gallery image version.

type CreateImageGalleryInput

type CreateImageGalleryInput struct {
	SubscriptionID     string
	ResourceGroupName  string
	GalleryName        string
	Region             string
	Tags               map[string]*string
	TokenCredential    azcore.TokenCredential
	CloudConfiguration cloud.Configuration
}

CreateImageGalleryInput contains the input parameters for creating a image gallery.

type CreateImageGalleryOutput

type CreateImageGalleryOutput struct {
	ComputeClientFactory *armcompute.ClientFactory
	Gallery              *armcompute.Gallery
}

CreateImageGalleryOutput contains the return values after creating a image gallery.

func CreateImageGallery

func CreateImageGallery(ctx context.Context, in *CreateImageGalleryInput) (*CreateImageGalleryOutput, error)

CreateImageGallery creates a image gallery.

type CreatePageBlobInput

type CreatePageBlobInput struct {
	StorageURL         string
	BlobURL            string
	ImageURL           string
	StorageAccountName string
	BootstrapIgnData   []byte
	ImageLength        int64
	StorageAccountKeys []armstorage.AccountKey
	CloudConfiguration cloud.Configuration
}

CreatePageBlobInput containers the input parameters used for creating a page blob.

type CreatePageBlobOutput

type CreatePageBlobOutput struct {
	PageBlobClient      *pageblob.Client
	SharedKeyCredential *azblob.SharedKeyCredential
}

CreatePageBlobOutput contains the return values after creating a page blob.

type CreateStorageAccountInput

type CreateStorageAccountInput struct {
	SubscriptionID     string
	ResourceGroupName  string
	StorageAccountName string
	Region             string
	Tags               map[string]*string
	CustomerManagedKey *aztypes.CustomerManagedKey
	CloudName          aztypes.CloudEnvironment
	TokenCredential    azcore.TokenCredential
	CloudConfiguration cloud.Configuration
}

CreateStorageAccountInput contains the input parameters for creating a storage account.

type CreateStorageAccountOutput

type CreateStorageAccountOutput struct {
	StorageAccount        *armstorage.Account
	StorageAccountsClient *armstorage.AccountsClient
	StorageClientFactory  *armstorage.ClientFactory
	StorageAccountKeys    []armstorage.AccountKey
}

CreateStorageAccountOutput contains the return values after creating a storage account.

func CreateStorageAccount

CreateStorageAccount creates a new storage account.

type CustomerManagedKeyInput added in v0.90.17

type CustomerManagedKeyInput struct {
	SubscriptionID     string
	ResourceGroupName  string
	CustomerManagedKey *aztypes.CustomerManagedKey
	TokenCredential    azcore.TokenCredential
}

CustomerManagedKeyInput contains the input parameters for creating the customer managed key and identity.

type Provider

type Provider struct {
	ResourceGroupName    string
	StorageAccountName   string
	StorageURL           string
	StorageAccount       *armstorage.Account
	StorageClientFactory *armstorage.ClientFactory
	StorageAccountKeys   []armstorage.AccountKey
	NetworkClientFactory *armnetwork.ClientFactory

	CloudConfiguration cloud.Configuration
	TokenCredential    azcore.TokenCredential
	Tags               map[string]*string
	// contains filtered or unexported fields
}

Provider implements Azure CAPI installation.

func (Provider) Ignition

func (p Provider) Ignition(ctx context.Context, in clusterapi.IgnitionInput) ([]*corev1.Secret, error)

Ignition provisions the Azure container that holds the bootstrap ignition file.

func (*Provider) InfraReady

func (p *Provider) InfraReady(ctx context.Context, in clusterapi.InfraReadyInput) error

InfraReady is called once the installer infrastructure is ready.

func (*Provider) Name

func (p *Provider) Name() string

Name returns the name of the provider.

func (*Provider) PostDestroy added in v0.90.17

func (p *Provider) PostDestroy(ctx context.Context, in clusterapi.PostDestroyerInput) error

PostDestroy removes SSH access from the network security rules and removes SSH port forwarding off the public load balancer when the bootstrap machine is destroyed.

func (*Provider) PostProvision

func (p *Provider) PostProvision(ctx context.Context, in clusterapi.PostProvisionInput) error

PostProvision provisions an external Load Balancer (when appropriate), and adds configuration for the MCS to the CAPI-provisioned internal LB.

func (*Provider) PreProvision

func (p *Provider) PreProvision(ctx context.Context, in clusterapi.PreProvisionInput) error

PreProvision is called before provisioning using CAPI controllers has begun.

func (*Provider) PublicGatherEndpoint added in v0.90.17

func (*Provider) PublicGatherEndpoint() clusterapi.GatherEndpoint

PublicGatherEndpoint indicates that machine ready checks should NOT wait for an ExternalIP in the status and should use the API load balancer when gathering bootstrap log bundles.

Jump to

Keyboard shortcuts

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