Documentation ¶
Index ¶
- Constants
- func AzureMockTestHelper(t *testing.T, table *schema.Table, ...)
- func AzureTestHelper(t *testing.T, table *schema.Table)
- func Configure(logger hclog.Logger, config interface{}) (schema.ClientMeta, diag.Diagnostics)
- func DeleteSubscriptionFilter(meta schema.ClientMeta, _ *schema.Resource) []interface{}
- func ErrorClassifier(meta schema.ClientMeta, resourceName string, err error) diag.Diagnostics
- func IgnoreAccessDenied(err error) bool
- func ParseSummaryMessage(subscriptionId string, err error, detailedError autorest.DetailedError) diag.BaseErrorOption
- func RedactError(subId string, e diag.Diagnostic) diag.Diagnostic
- func ResolveAzureSubscription(_ context.Context, meta schema.ClientMeta, r *schema.Resource, _ schema.Column) error
- func ScopeSubscription(subscriptionID string) string
- func SubscriptionMultiplex(meta schema.ClientMeta) []schema.ClientMeta
- type Client
- type Config
- type ResourceDetails
- type TestOptions
Constants ¶
View Source
const ( SnapshotsDirPath = "./snapshots" TestSubscriptionID = "test_sub" FakeResourceGroup = "" /* 130-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func AzureMockTestHelper ¶ added in v0.3.9
func Configure ¶
func Configure(logger hclog.Logger, config interface{}) (schema.ClientMeta, diag.Diagnostics)
func DeleteSubscriptionFilter ¶
func DeleteSubscriptionFilter(meta schema.ClientMeta, _ *schema.Resource) []interface{}
func ErrorClassifier ¶ added in v0.5.0
func ErrorClassifier(meta schema.ClientMeta, resourceName string, err error) diag.Diagnostics
func IgnoreAccessDenied ¶ added in v0.8.0
func ParseSummaryMessage ¶ added in v0.5.0
func ParseSummaryMessage(subscriptionId string, err error, detailedError autorest.DetailedError) diag.BaseErrorOption
func RedactError ¶ added in v0.5.0
func RedactError(subId string, e diag.Diagnostic) diag.Diagnostic
RedactError redacts a given diagnostic and returns a RedactedDiagnostic containing both original and redacted versions
func ScopeSubscription ¶ added in v0.3.0
ScopeSubscription returns a scope for the given subscription
func SubscriptionMultiplex ¶
func SubscriptionMultiplex(meta schema.ClientMeta) []schema.ClientMeta
Types ¶
type Client ¶
type Client struct { // this is set by table client multiplexer SubscriptionId string // contains filtered or unexported fields }
func NewAzureClient ¶
type ResourceDetails ¶
type ResourceDetails struct { Subscription string ResourceGroup string Provider string ResourceType string ResourceName string }
ResourceDetails contains details about an Azure resource
func ParseResourceID ¶
func ParseResourceID(resourceID string) (ResourceDetails, error)
ParseResourceID parses a resource ID into a ResourceDetails struct
type TestOptions ¶ added in v0.3.9
type TestOptions struct {
SkipEmptyJsonB bool
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.