Versions in this module Expand all Collapse all v0 v0.14.0 Apr 12, 2024 Changes in this version + func GetIndex() (*azidx.Index, error) + func GetIndexFromLocalDir(swaggerRepo string) (*azidx.Index, error) + func MockResourceIDFromType(azapiResourceType string) (string, string) + func SchemaNamePathFromRef(swaggerPath string, ref openapiSpec.Ref) (schemaName string, schemaPath string) + type ArmResource struct + ApiPath string + Type string + type CoverageReport struct + Coverages map[ArmResource]*Model + func (c *CoverageReport) AddCoverageFromState(resourceId, resourceType string, jsonBody map[string]interface{}, ...) error + type Model struct + Bool *map[string]bool + BoolCoveredCount int + CoveredCount int + Discriminator *string + Enum *map[string]bool + EnumCoveredCount int + EnumTotalCount int + Format *string + HasAdditionalProperties bool + Identifier string + IsAnyCovered bool + IsFullyCovered bool + IsReadOnly bool + IsRequired bool + IsSecret bool + Item *Model + ModelName string + Properties *map[string]*Model + SourceFile string + TotalCount int + Type *string + VariantType *string + Variants *map[string]*Model + func Expand(modelName, swaggerPath string) (*Model, error) + func (m *Model) CountCoverage() (int, int) + func (m *Model) CredScan(root interface{}, secrets map[string]string) + func (m *Model) MarkCovered(root interface{}) + func (m *Model) SplitCovered(covered, uncovered *[]string) + type SwaggerModel struct + ApiPath string + ModelName string + SwaggerPath string + func GetModelInfoFromIndex(resourceId, apiVersion string) (*SwaggerModel, error) + func GetModelInfoFromIndexRef(ref openapispec.Ref, swaggerRepo string) (*SwaggerModel, error) + func GetModelInfoFromIndexWithType(azapiResourceType string) (*SwaggerModel, error) + func GetModelInfoFromLocalDir(resourceId, apiVersion, swaggerPath string) (*SwaggerModel, error) + func GetModelInfoFromLocalIndex(resourceId, apiVersion, swaggerRepo string) (*SwaggerModel, error) + func GetModelInfoFromLocalSpecFile(resourceId, apiVersion, swaggerPath string) (*SwaggerModel, error)