azure

package
v0.90.16 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 41 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.

Types

type CreateBlobContainerInput

type CreateBlobContainerInput struct {
	SubscriptionID       string
	ResourceGroupName    string
	StorageAccountName   string
	ContainerName        string
	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
	Tags                 map[string]*string
	TokenCredential      azcore.TokenCredential
	CloudConfiguration   cloud.Configuration
	OSType               armcompute.OperatingSystemTypes
	OSState              armcompute.OperatingSystemStateTypes
	HyperVGeneration     armcompute.HyperVGeneration
	Publisher            string
	Offer                string
	SKU                  string
	ComputeClientFactory *armcompute.ClientFactory
}

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
	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.

func CreatePageBlob

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

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

type CreateStorageAccountInput

type CreateStorageAccountInput struct {
	SubscriptionID     string
	ResourceGroupName  string
	StorageAccountName string
	Region             string
	Tags               map[string]*string
	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 Provider

type Provider struct {
	ResourceGroupName    string
	StorageAccountName   string
	StorageURL           string
	StorageAccount       *armstorage.Account
	StorageClientFactory *armstorage.ClientFactory
	StorageAccountKeys   []armstorage.AccountKey
	Tags                 map[string]*string
	// contains filtered or unexported fields
}

Provider implements Azure CAPI installation.

func (*Provider) BootstrapHasPublicIP

func (*Provider) BootstrapHasPublicIP() bool

BootstrapHasPublicIP indicates that an ExternalIP is not required in the machine ready checks.

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) 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.

Jump to

Keyboard shortcuts

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