proxy

package
v0.0.0-...-94cd6a6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudStackClient

type CloudStackClient interface {
	// ExecuteRequest sends a request to the CloudStack API
	ExecuteRequest(ctx context.Context, apiName string, params map[string]string) ([]byte, error)
}

CloudStackClient defines the interface for interacting with CloudStack

type Config

type Config struct {
	// CloudStack API URL
	CloudStackURL string

	// API key for CloudStack
	APIKey string

	// Secret key for CloudStack
	SecretKey string
}

Config contains proxy configuration

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

Proxy is the main CloudStack proxy that implements all services

func NewProxy

func NewProxy(config *Config, version string) (*Proxy, error)

NewProxy creates a new CloudStack proxy with the given configuration

func (*Proxy) Check

Check implements the health check service

func (*Proxy) RegisterHandlers

func (p *Proxy) RegisterHandlers(mux *http.ServeMux)

RegisterHandlers registers all service handlers with the given mux

Jump to

Keyboard shortcuts

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