types

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudProvider

type CloudProvider interface {
	Name() string
	Connect(ctx context.Context) error
	GetResource(ctx context.Context, resourceType string, resourceID string) (*CloudResource, error)
	ListResources(ctx context.Context, resourceType string) ([]*CloudResource, error)
	ResourceExists(ctx context.Context, resourceType string, resourceID string) (bool, error)
}

CloudProvider defines the interface for cloud providers

type CloudResource

type CloudResource struct {
	ID         string                 `json:"id"`
	Type       string                 `json:"type"`
	Name       string                 `json:"name"`
	Provider   string                 `json:"provider"`
	Region     string                 `json:"region,omitempty"`
	Tags       map[string]string      `json:"tags,omitempty"`
	Attributes map[string]interface{} `json:"attributes"`
}

CloudResource represents a resource discovered from cloud provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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