Documentation
¶
Index ¶
- Variables
- func GetApiVersions(resourceType string) []string
- func GetResourceDefinition(resourceType, apiVersion string) (*types.ResourceType, error)
- func GetResourceDefinitionByResourceType(azureResourceType string) (*types.ResourceType, error)
- func GetResourceFunction(resourceType, apiVersion, name string) (*types.ResourceFunctionType, error)
- type Function
- type FunctionDefinition
- type IndexRaw
- type Resource
- type ResourceDefinition
- type Schema
- type TypeLocation
Constants ¶
This section is empty.
Variables ¶
View Source
var StaticFiles embed.FS
Functions ¶
func GetApiVersions ¶
func GetResourceDefinition ¶
func GetResourceDefinition(resourceType, apiVersion string) (*types.ResourceType, error)
func GetResourceDefinitionByResourceType ¶
func GetResourceDefinitionByResourceType(azureResourceType string) (*types.ResourceType, error)
func GetResourceFunction ¶
func GetResourceFunction(resourceType, apiVersion, name string) (*types.ResourceFunctionType, error)
Types ¶
type Function ¶
type Function struct {
Definitions []FunctionDefinition
}
type FunctionDefinition ¶
type FunctionDefinition struct { Definition *types.ResourceFunctionType Location TypeLocation ApiVersion string }
func ListResourceFunctions ¶
func ListResourceFunctions(resourceType, apiVersion string) ([]FunctionDefinition, error)
func (*FunctionDefinition) GetDefinition ¶
func (o *FunctionDefinition) GetDefinition() (*types.ResourceFunctionType, error)
type IndexRaw ¶
type IndexRaw struct { Resources map[string]TypeLocation `json:"Resources"` Functions map[string]map[string][]TypeLocation `json:"Functions"` }
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 TypeLocation ¶
func (*TypeLocation) LoadFunctionTypeDefinition ¶
func (o *TypeLocation) LoadFunctionTypeDefinition() (*types.ResourceFunctionType, error)
func (*TypeLocation) LoadResourceTypeDefinition ¶
func (o *TypeLocation) LoadResourceTypeDefinition() (*types.ResourceType, error)
Click to show internal directories.
Click to hide internal directories.