deployer

package
v0.0.0-...-818b14e Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package deployer for project deployment

Package deployer for project deployment

Index

Constants

This section is empty.

Variables

View Source
var (
	// Eco spec
	Eco = VMSpec{1, 2, 5, true}
	// Standard spec
	Standard = VMSpec{2, 4, 10, true}
	// Performance spec
	Performance = VMSpec{4, 8, 15, true}
)

Functions

This section is empty.

Types

type Deployer

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

Deployer struct manages project deployment

func NewDeployer

func NewDeployer(tfPluginClient tfplugin.TFPluginClientInterface, repoURL string, logger zerolog.Logger) (Deployer, error)

NewDeployer return new project deployer

func (*Deployer) Deploy

func (d *Deployer) Deploy(ctx context.Context, vmSpec VMSpec, ports []uint, deploymentName string) (map[uint]string, error)

Deploy deploys a project and map each port to a domain

func (*Deployer) Destroy

func (d *Deployer) Destroy() error

Destroy destroys all the contracts of a project

func (*Deployer) Get

func (d *Deployer) Get(ctx context.Context) (map[string]string, error)

Get returns deployed project domains

type VMSpec

type VMSpec struct {
	CPU     uint8
	Memory  uint64
	Storage uint64
	Public  bool
}

VMSpec struct to hold vm specs

Jump to

Keyboard shortcuts

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