resources

package
v0.0.0-...-a1f8bd1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

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