cloud

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 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 Category

type Category interface {
	// Name returns the category's name.
	Name() string

	// Description returns the category's description.
	Description() string

	// Operations returns all available operations for this category.
	Operations() []Operation

	// IsUIVisible returns whether this category should be visible in the UI.
	IsUIVisible() bool
}

Category represents a group of operations.

type Operation

type Operation interface {
	// Name returns the operation's name.
	Name() string

	// Description returns the operation's description.
	Description() string

	// Execute executes the operation with the given parameters.
	Execute(ctx context.Context, params map[string]interface{}) (interface{}, error)

	// IsUIVisible returns whether this operation should be visible in the UI.
	IsUIVisible() bool
}

Operation represents a cloud operation.

type Provider

type Provider interface {
	// Name returns the provider's name.
	Name() string

	// Description returns the provider's description.
	Description() string

	// Services returns all available services for this provider.
	Services() []Service

	// GetProfiles returns all available profiles for this provider.
	GetProfiles() ([]string, error)

	// LoadConfig loads the provider configuration with the given profile and region.
	LoadConfig(profile, region string) error
}

Provider represents a cloud provider.

type Service

type Service interface {
	// Name returns the service's name.
	Name() string

	// Description returns the service's description.
	Description() string

	// Categories returns all available categories for this service.
	Categories() []Category
}

Service represents a cloud service.

Directories

Path Synopsis
aws

Jump to

Keyboard shortcuts

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