port

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigService

type ConfigService interface {
	Load(cfgPath string) error
	GetServiceTemplate() string
	GetApplicationTemplate() string
	GetInfrastructureTemplate() string
	GetPackageTemplate() string
	GetRunner(runner string) (*model.Runner, error)
}

type ProjectService

type ProjectService interface {
	InitNewProject(ctx context.Context, params dto.InitNewProjectParams) error
	GetModuleName(modulePath ...string) (string, error)

	// Domain
	GetAllDomains(ctx context.Context) ([]string, error)
	CreateDomain(ctx context.Context, params dto.CreateDomainParams) error

	// Service
	GetAllServices(ctx context.Context, targetDomain string) ([]string, error)
	CreateService(ctx context.Context, params dto.CreateServiceParams) (string, error)

	// Port
	GetAllPorts(ctx context.Context, targetDomain string) ([]string, error)

	// Application
	GetAllApplications(ctx context.Context, targetDomain string) ([]string, error)
	CreateApplication(ctx context.Context, params dto.CreateApplicationParams) (string, error)

	// Entry Point (cmd)
	GetAllEntryPoints(ctx context.Context) ([]string, error)
	CreateEntryPoint(ctx context.Context, params dto.CreateEntryPointParams) (string, error)

	// Infrastructure
	GetAllInfrastructes(ctx context.Context) ([]string, error)
	CreateInfrastructure(ctx context.Context, params dto.CreateInfraParams) (string, error)

	// Package
	GetAllPackages(ctx context.Context, showGlobal bool) ([]string, error)
	CreatePackage(ctx context.Context, params dto.CreatePackageParams) (string, error)

	// Runner
	Run(ctx context.Context, command string, envVars []string, verbose bool) error

	// Doctor
	Doctor(ctx context.Context) (*dto.DoctorResult, error)

	// Validators
	ValidateInstanceName(name string) error
	ValidatePkgName(name string) error
	ValidateEntryPointName(name string) error
}

Jump to

Keyboard shortcuts

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