service

package
v0.0.0-...-cf6de95 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	environs.ConnectorInfo

	// ProxyToApplication returns a proxy to the application with the given
	// port.
	ProxyToApplication(ctx context.Context, appName, remotePort string) (proxy.Proxier, error)
}

Provider represents an underlying cloud provider.

type Service

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

Service defines a service for interacting with the underlying proxy provider.

func NewService

func NewService(providerGetter providertracker.ProviderGetter[Provider]) *Service

NewService returns a new Service for interacting with the underlying state.

func (*Service) GetConnectionProxyInfo

func (s *Service) GetConnectionProxyInfo(ctx context.Context) (proxy.Proxier, error)

GetConnectionProxyInfo returns the proxy information for the controller. If the provider does not support the environs.ConnectorInfo then it will return errors.ProxyNotSupported, if the connection proxy info is not located it will return errors.ProxyNotFound.

func (*Service) GetProxyToApplication

func (s *Service) GetProxyToApplication(ctx context.Context, appName, remotePort string) (proxy.Proxier, error)

GetProxyToApplication returns the proxy information for the application with the given port.

Jump to

Keyboard shortcuts

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