Documentation ¶
Index ¶
- type AppsClient
- func (d *AppsClient) CreateFunctionApp(ctx context.Context, ...) error
- func (d *AppsClient) CreateOrUpdateServicePlan(ctx context.Context, resourceGroup, planName, location string) error
- func (d *AppsClient) GetLocationPlan(ctx context.Context, resourceGroup, location string) (name string, found bool, err error)
- func (d *AppsClient) SyncFunctionTriggers(ctx context.Context, resourceGroup, appName string) error
- func (d *AppsClient) UpdateAppSettings(ctx context.Context, resourceGroup, appName string, ...) error
- type ArchiveBuilder
- type BlobStorageClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppsClient ¶
type AppsClient struct {
// contains filtered or unexported fields
}
AppsClient is a client for azure function apps
func NewAppsClient ¶
func NewAppsClient(subscriptionID string, authConfig auth.AuthorizerConfig) *AppsClient
NewAppsClient returns a new AppsClient
func (*AppsClient) CreateFunctionApp ¶
func (d *AppsClient) CreateFunctionApp(ctx context.Context, resourceGroup, appName, contentURL, location, servicePlan string) error
CreateFunctionApp creates an function app
func (*AppsClient) CreateOrUpdateServicePlan ¶
func (d *AppsClient) CreateOrUpdateServicePlan(ctx context.Context, resourceGroup, planName, location string) error
CreateOrUpdateServicePlan creates or updates a dynamic linux AppServicePlan
func (*AppsClient) GetLocationPlan ¶
func (d *AppsClient) GetLocationPlan(ctx context.Context, resourceGroup, location string) (name string, found bool, err error)
GetLocationPlan returns a suitable service plan in a given location
func (*AppsClient) SyncFunctionTriggers ¶
func (d *AppsClient) SyncFunctionTriggers(ctx context.Context, resourceGroup, appName string) error
SyncFunctionTriggers syncs function triggers. You need to do this after updating WEBSITE_RUN_FROM_PACKAGE
func (*AppsClient) UpdateAppSettings ¶
func (d *AppsClient) UpdateAppSettings(ctx context.Context, resourceGroup, appName string, newSettings map[string]string) error
UpdateAppSettings updates app settings with newSettings. Leaves other settings along.
type ArchiveBuilder ¶
type ArchiveBuilder struct { Files []string `json:"files"` Functions []string `json:"functions"` Executable string `json:"executable"` }
ArchiveBuilder is functions.yml
func (*ArchiveBuilder) BuildArchive ¶
func (b *ArchiveBuilder) BuildArchive(zipFile io.Writer) (err error)
BuildArchive builds a zip file
type BlobStorageClient ¶
type BlobStorageClient struct { StorageAccountCredential *azblob.SharedKeyCredential StorageAccountName string }
BlobStorageClient is a client for azure blob storage
func NewBlobStorageClient ¶
func NewBlobStorageClient(accountName, accountKey string) (*BlobStorageClient, error)
NewBlobStorageClient builds a BlobStorageClient
func (*BlobStorageClient) SignBlobURL ¶
func (d *BlobStorageClient) SignBlobURL(containerName, blobName string) (string, error)
SignBlobURL returns a signed url with read access that lasts a thousand years
func (*BlobStorageClient) UploadBlob ¶
func (d *BlobStorageClient) UploadBlob(ctx context.Context, containerName, blobName string, content io.ReadSeeker) error
UploadBlob uploads a blob