manager

package
v0.0.2-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ProvideK8sManager

func ProvideK8sManager(configSvc *config.Service) *kube.K8sManager

Types

type ManagerFactory

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

func NewManagerFactory

func NewManagerFactory(k8sManager *kube.K8sManager) ManagerFactory

func ProvideManagerFactory

func ProvideManagerFactory(k8sManager *kube.K8sManager) ManagerFactory

func (*ManagerFactory) GetServerManager

func (f *ManagerFactory) GetServerManager(server *types.Server) (ServerManager, error)

func (*ManagerFactory) GetServerManagerByType

func (f *ManagerFactory) GetServerManagerByType(serverType enum.ServerType) (ServerManager, error)

type ServerManager

type ServerManager interface {
	GetIP(ctx context.Context, server *types.Server) (string, error)
	//delets
	DeleteResources(ctx context.Context, server *types.Server, namespace string, identifier string) error
	DeleteNamespace(ctx context.Context, server *types.Server, namespace string) error
	DeleteVolume(ctx context.Context, server *types.Server, volume *types.Volume) error
	DeleteApplication(ctx context.Context, server *types.Server, app *types.Application) error

	//certificate related
	AddWildcardDomainWithSSL(ctx context.Context, server *types.Server) error
	RemoveWildcardSSL(ctx context.Context, server *types.Server) error
	AddSSLCertificate(ctx context.Context, server *types.Server, namespace, dns, certKey string, dnsProvider enum.DNSProvider, dnsAuthKey string) error
	RemoveSSLCertificate(ctx context.Context, server *types.Server, namespace, certKey string) error
	ListCertificates(ctx context.Context, server *types.Server) ([]*types.Certificate, error)

	AddHttpRoute(ctx context.Context, server *types.Server, namespace, key, service string, port int32, host string, httpScheme string) error
	RemoveHttpRoute(ctx context.Context, server *types.Server, namespace, key string) error

	//Registry endpoints
	AddOrUpdateRegistry(ctx context.Context, server *types.Server, name string, size int64, enableNodePort bool) error
	RemoveRegistry(ctx context.Context, server *types.Server, name string) error

	//Artifacts
	ListArtifacts(ctx context.Context, server *types.Server, app *types.Application) ([]*types.Artifact, error)
	TailLogs(ctx context.Context, server *types.Server, app *types.Application) (<-chan *types.ArtifactLogLine, <-chan error, error)

	//Metrics
	ListMetrics(ctx context.Context, server *types.Server) ([]*types.AppMetrics, error)

	//Application status
	ListApplicationStatuses(ctx context.Context, server *types.Server) ([]*types.AppStatus, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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