container

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateInvalid = "Invalid"
	StateOk      = "OK"
)

Variables

View Source
var (
	ErrOfflineNode          = errors.New("node offline")
	ErrDeploymentNotFound   = errors.New("deployment not found")
	ErrDomainAlreadyExist   = errors.New("domain already exist")
	ErrPermissionNotAllowed = errors.New("permission not allowed")
	ErrInvalidDomain        = errors.New("invalid domain")
	ErrInvalidAnnotations   = errors.New("invalid annotations")
)

Functions

This section is empty.

Types

type Manager

type Manager struct {
	DB *db.SQLDB
	// contains filtered or unexported fields
}

Manager represents a manager service in a cloud computing system.

func NewManager

func NewManager(nm *node.Manager, db *db.SQLDB, notify *pubsub.PubSub) *Manager

func (*Manager) AddDeploymentDomain

func (m *Manager) AddDeploymentDomain(ctx context.Context, id types.DeploymentID, cert *types.Certificate) error

func (*Manager) AddNewProvider

func (m *Manager) AddNewProvider(ctx context.Context, provider *types.Provider) error

func (*Manager) CloseDeployment

func (m *Manager) CloseDeployment(ctx context.Context, deployment *types.Deployment, force bool) error

func (*Manager) CreateDeployment

func (m *Manager) CreateDeployment(ctx context.Context, deployment *types.Deployment) error

func (*Manager) DeleteDeploymentDomain

func (m *Manager) DeleteDeploymentDomain(ctx context.Context, id types.DeploymentID, domain string) error

func (*Manager) GenerateTokenForLeaseShell

func (m *Manager) GenerateTokenForLeaseShell(commonAPI api.Common, deploy *types.Deployment) (string, error)

func (*Manager) GetDeploymentDomains

func (m *Manager) GetDeploymentDomains(ctx context.Context, id types.DeploymentID) ([]*types.DeploymentDomain, error)

func (*Manager) GetDeploymentList

func (m *Manager) GetDeploymentList(ctx context.Context, opt *types.GetDeploymentOption) (*types.GetDeploymentListResp, error)

func (*Manager) GetDeploymentProviderIP

func (m *Manager) GetDeploymentProviderIP(ctx context.Context, id types.DeploymentID) (string, error)

func (*Manager) GetEvents

func (m *Manager) GetEvents(ctx context.Context, deployment *types.Deployment) ([]*types.ServiceEvent, error)

func (*Manager) GetIngress

func (m *Manager) GetIngress(ctx context.Context, id types.DeploymentID) (*types.Ingress, error)

func (*Manager) GetLeaseShellEndpoint

func (m *Manager) GetLeaseShellEndpoint(ctx context.Context, id types.DeploymentID) (*types.LeaseEndpoint, error)

func (*Manager) GetLogs

func (m *Manager) GetLogs(ctx context.Context, deployment *types.Deployment) ([]*types.ServiceLog, error)

func (*Manager) GetProviderList

func (m *Manager) GetProviderList(ctx context.Context, opt *types.GetProviderOption) ([]*types.Provider, error)

func (*Manager) GetRemoteAddress

func (m *Manager) GetRemoteAddress(ctx context.Context) (string, error)

func (*Manager) GetStatistics

func (m *Manager) GetStatistics(ctx context.Context, id string) (*types.ResourcesStatistics, error)

func (*Manager) ListenNodeState

func (m *Manager) ListenNodeState(ctx context.Context)

func (*Manager) SetProperties

func (m *Manager) SetProperties(ctx context.Context, properties *types.Properties) error

func (*Manager) UpdateDeployment

func (m *Manager) UpdateDeployment(ctx context.Context, deployment *types.Deployment) error

func (*Manager) UpdateIngress

func (m *Manager) UpdateIngress(ctx context.Context, id types.DeploymentID, annotations map[string]string) error

Jump to

Keyboard shortcuts

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