azure

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StaticFiles embed.FS

Functions

func GetApiVersions

func GetApiVersions(resourceType string) []string

func GetResourceDefinition

func GetResourceDefinition(resourceType, apiVersion string) (*types.ResourceType, error)

func GetResourceDefinitionByResourceType

func GetResourceDefinitionByResourceType(azureResourceType string) (*types.ResourceType, error)

Types

type Resource

type Resource struct {
	Definitions []ResourceDefinition
}

type ResourceDefinition

type ResourceDefinition struct {
	Definition *types.ResourceType
	Location   TypeLocation
	ApiVersion string
}

func (*ResourceDefinition) GetDefinition

func (o *ResourceDefinition) GetDefinition() (*types.ResourceType, error)

type Schema

type Schema struct {
	Resources map[string]*Resource
}

func GetAzureSchema

func GetAzureSchema() *Schema

func (*Schema) UnmarshalJSON

func (o *Schema) UnmarshalJSON(body []byte) error

type TypeLocation

type TypeLocation struct {
	Location string `json:"RelativePath"`
	Index    int    `json:"Index"`
}

func (*TypeLocation) LoadDefinition added in v0.0.1

func (o *TypeLocation) LoadDefinition() (*types.ResourceType, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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