Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvailableResourceTypes ¶
func GetAvailableResourceTypes() []string
GetAvailableResourceTypes returns a simple list of available resource types
Types ¶
type ResourceMatcher ¶
type ResourceMatcher struct {
// contains filtered or unexported fields
}
ResourceMatcher maps detected resource types to Simple Container resource types
func NewResourceMatcher ¶
func NewResourceMatcher() *ResourceMatcher
NewResourceMatcher creates a new resource matcher using schema-based supported resources
func (*ResourceMatcher) GetBestResourceType ¶
func (rm *ResourceMatcher) GetBestResourceType(detectedType string) string
GetBestResourceType returns the best matching supported resource type for a detected resource
type SupportedResourceProvider ¶
type SupportedResourceProvider struct {
Name string `json:"name"`
Resources []string `json:"resources"`
}
SupportedResourceProvider represents a provider with its resources
type SupportedResourcesResult ¶
type SupportedResourcesResult struct {
Resources []string `json:"resources"`
Providers []SupportedResourceProvider `json:"providers"`
}
SupportedResourcesResult represents the result of getting supported resources
func GetSupportedResourcesFromSchemas ¶
func GetSupportedResourcesFromSchemas(ctx context.Context) (*SupportedResourcesResult, error)
GetSupportedResourcesFromSchemas loads supported resources directly from embedded schemas
Click to show internal directories.
Click to hide internal directories.