azsdk

package
v0.0.0-...-4485678 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsCorrelationPolicy

func NewMsCorrelationPolicy() policy.Policy

NewMsCorrelationPolicy creates a policy that sets Microsoft correlation ID headers on HTTP requests. This works for Azure REST API, and could also work for other Microsoft-hosted services that do not yet honor distributed tracing.

func NewMsGraphCorrelationPolicy

func NewMsGraphCorrelationPolicy() policy.Policy

NewMsGraphCorrelationPolicy creates a policy that sets Microsoft Graph correlation ID headers on HTTP requests.

func NewUserAgentPolicy

func NewUserAgentPolicy(userAgent string) policy.Policy

Policy to ensure the AZD custom user agent is set on all HTTP requests.

Types

type ClientOptionsBuilder

type ClientOptionsBuilder struct {
	// contains filtered or unexported fields
}

func NewClientOptionsBuilder

func NewClientOptionsBuilder() *ClientOptionsBuilder

func (*ClientOptionsBuilder) BuildArmClientOptions

func (b *ClientOptionsBuilder) BuildArmClientOptions() *arm.ClientOptions

Builds the ARM module client options for control plane operations These options include the underlying transport to be used.

func (*ClientOptionsBuilder) BuildCoreClientOptions

func (b *ClientOptionsBuilder) BuildCoreClientOptions() *azcore.ClientOptions

Builds the az core client options for data plane operations These options include the underlying transport to be used.

func (*ClientOptionsBuilder) WithCloud

func (*ClientOptionsBuilder) WithPerCallPolicy

func (b *ClientOptionsBuilder) WithPerCallPolicy(policy policy.Policy) *ClientOptionsBuilder

Appends per-call policies into the HTTP pipeline

func (*ClientOptionsBuilder) WithPerRetryPolicy

func (b *ClientOptionsBuilder) WithPerRetryPolicy(policy policy.Policy) *ClientOptionsBuilder

Appends per-retry policies into the HTTP pipeline

func (*ClientOptionsBuilder) WithTransport

func (b *ClientOptionsBuilder) WithTransport(transport policy.Transporter) *ClientOptionsBuilder

Sets the underlying transport used for executing HTTP requests

type ClientOptionsBuilderFactory

type ClientOptionsBuilderFactory struct {
	// contains filtered or unexported fields
}

func NewClientOptionsBuilderFactory

func NewClientOptionsBuilderFactory(
	httpClient httputil.HttpClient,
	userAgent string,
	cloud *cloud.Cloud,
) *ClientOptionsBuilderFactory

func (*ClientOptionsBuilderFactory) NewClientOptionsBuilder

func (c *ClientOptionsBuilderFactory) NewClientOptionsBuilder() *ClientOptionsBuilder

type DeployResponse

type DeployResponse struct {
	DeployStatus
}

type DeployStatus

type DeployStatus struct {
	Id           string     `json:"id"`
	Status       int        `json:"status"`
	StatusText   string     `json:"status_text"`
	Message      string     `json:"message"`
	Progress     *string    `json:"progress"`
	ReceivedTime *time.Time `json:"received_time"`
	StartTime    *time.Time `json:"start_time"`
	EndTime      *time.Time `json:"end_time"`
	Complete     bool       `json:"complete"`
	Active       bool       `json:"active"`
	LogUrl       string     `json:"log_url"`
	SiteName     string     `json:"site_name"`
}

type DeployStatusResponse

type DeployStatusResponse struct {
	DeployStatus
}

type ZipDeployClient

type ZipDeployClient struct {
	// contains filtered or unexported fields
}

ZipDeployClient wraps usage of app service zip deploy used for application deployments More info can be found at the following: https://github.com/MicrosoftDocs/azure-docs/blob/main/includes/app-service-deploy-zip-push-rest.md https://github.com/projectkudu/kudu/wiki/REST-API

func NewZipDeployClient

func NewZipDeployClient(
	hostName string,
	credential azcore.TokenCredential,
	options *arm.ClientOptions,
) (*ZipDeployClient, error)

Creates a new ZipDeployClient instance

func (*ZipDeployClient) BeginDeploy

func (c *ZipDeployClient) BeginDeploy(
	ctx context.Context,
	zipFile io.Reader,
) (*runtime.Poller[*DeployResponse], error)

Begins a zip deployment and returns a poller to check for status

func (*ZipDeployClient) Deploy

func (c *ZipDeployClient) Deploy(ctx context.Context, zipFile io.Reader) (*DeployResponse, error)

Deploys the specified application zip to the azure app service and waits for completion

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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