Versions in this module Expand all Collapse all v0 v0.2.0 Jun 4, 2020 Changes in this version + const AcceptedProvisioningState + const CompleteDeploymentMode + const DeletingProvisioningState + const FailedProvisioningState + const IncrementalDeploymentMode + const RequestAndResponseContentDetailLevel + const RequestContentDetailLevel + const ResourceGroupScope + const ResponseContentDetailLevel + const SubscriptionScope + const SucceededProvisioningState + func GetSettingsFromEnvironment(env Enver) (s auth.EnvironmentSettings, err error) + func IsNotFound(err error) bool + func IsTerminalProvisioningState(state ProvisioningState) bool + func WithEnv(env Enver) func(*ClientConfig) *ClientConfig + func WithLogger(logger logr.Logger) func(*ClientConfig) *ClientConfig + type ARMMeta struct + ID string + Location string + Name string + ResourceGroup string + SubscriptionID string + Type string + type AnnotationKey string + const PreserveDeploymentAnnotation + type Applier interface + Apply func(ctx context.Context, res *Resource) (*Resource, error) + BeginDelete func(ctx context.Context, res *Resource) (*Resource, error) + DeleteApply func(ctx context.Context, deploymentID string) error + GetResource func(ctx context.Context, res *Resource) (*Resource, error) + HeadResource func(ctx context.Context, res *Resource) (bool, error) + type AzureTemplateClient struct + Logger logr.Logger + RawClient *Client + SubscriptionID string + func NewAzureTemplateClient(opts ...AzureTemplateClientOption) (*AzureTemplateClient, error) + func (atc *AzureTemplateClient) Apply(ctx context.Context, res *Resource) (*Resource, error) + func (atc *AzureTemplateClient) BeginDelete(ctx context.Context, res *Resource) (*Resource, error) + func (atc *AzureTemplateClient) DeleteApply(ctx context.Context, deploymentID string) error + func (atc *AzureTemplateClient) GetResource(ctx context.Context, res *Resource) (*Resource, error) + func (atc *AzureTemplateClient) HeadResource(ctx context.Context, res *Resource) (bool, error) + type AzureTemplateClientOption func(config *ClientConfig) *ClientConfig + type Client struct + Authorizer autorest.Authorizer + HTTPClient *http.Client + Host string + func NewClient(authorizer autorest.Authorizer, opts ...ClientOption) (*Client, error) + func (c *Client) Delete(ctx context.Context, entityPath string, mw ...MiddlewareFunc) (*http.Response, error) + func (c *Client) DeleteResource(ctx context.Context, resourceID string, resource interface{}, ...) error + func (c *Client) Get(ctx context.Context, entityPath string, mw ...MiddlewareFunc) (*http.Response, error) + func (c *Client) GetResource(ctx context.Context, resourceID string, resource interface{}, ...) error + func (c *Client) Head(ctx context.Context, entityPath string, mw ...MiddlewareFunc) (*http.Response, error) + func (c *Client) Post(ctx context.Context, entityPath string, body io.Reader, mw ...MiddlewareFunc) (*http.Response, error) + func (c *Client) Put(ctx context.Context, entityPath string, body io.Reader, mw ...MiddlewareFunc) (*http.Response, error) + func (c *Client) PutDeployment(ctx context.Context, deployment *Deployment, mw ...MiddlewareFunc) (*Deployment, error) + type ClientConfig struct + Env Enver + Logger logr.Logger + type ClientOption func(c *Client) error + type DebugSetting struct + DetailLevel DetailLevel + type Deployment struct + Properties *DeploymentProperties + Scope DeploymentScope + func NewResourceGroupDeployment(subscriptionID, groupName, deploymentName string, resources ...*Resource) (*Deployment, error) + func NewSubscriptionDeployment(subscriptionID, location, deploymentName string, resources ...*Resource) (*Deployment, error) + func (d *Deployment) GetEntityPath() (string, error) + func (d *Deployment) IsTerminalProvisioningState() bool + func (d *Deployment) ProvisioningStateOrUnknown() string + func (d *Deployment) Validate() error + type DeploymentMode string + type DeploymentProperties struct + type DeploymentScope string + type DeploymentSpec struct + DebugSetting *DebugSetting + Mode DeploymentMode + Template *Template + type DeploymentStatus struct + CorrelationID string + Duration *duration.ISO8601 + OutputResources []OutputResource + Outputs json.RawMessage + ProvisioningState ProvisioningState + Timestamp *date.Time + type DetailLevel string + type Enver interface + Getenv func(key string) string + type HttpError struct + Body string + Response *http.Response + StatusCode int + func NewHttpError(response *http.Response, body string) *HttpError + func (e HttpError) Error() string + type MiddlewareFunc func(next RestHandler) RestHandler + type NotFoundError struct + Response *http.Response + func (e NotFoundError) Error() string + type Output struct + Condition string + Type string + Value string + type OutputResource struct + ID string + type ProvisioningState string + type Resource struct + APIVersion string + DeploymentID string + ID string + Location string + ManagedBy string + Name string + ObjectMeta ResourceMeta + Properties json.RawMessage + ProvisioningState ProvisioningState + ResourceGroup string + Sku map[string]interface{} + SubscriptionID string + Tags map[string]string + Type string + func (res *Resource) SetAnnotations(annotations map[string]string) *Resource + type ResourceMeta struct + PreserveDeployment bool + type RestHandler func(ctx context.Context, req *http.Request) (*http.Response, error) + type SimpleTokenProvider struct + func (s SimpleTokenProvider) WithAuthorization() autorest.PrepareDecorator + type Template struct + ContentVersion string + Outputs map[string]Output + Parameters interface{} + Resources []*Resource + Schema string + Variables interface{} + type TemplateOutput struct + Type string + Value TemplateResourceObjectOutput + type TemplateResourceObjectOutput struct + APIVersion string + Condition *bool + ID string + IsAction *bool + IsCondition *bool + IsTemplateResource *bool + Location string + Properties json.RawMessage + ProvisioningOperation string + ReferenceAPIVersion string + ResourceID string + Scope string + SubscriptionID string