deployserver

package
v0.3.11-8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 34 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitEnvCommon

func InitEnvCommon() error

func LocalInitEnv

func LocalInitEnv() error

func StartLocalDeploy

func StartLocalDeploy(deployAction string) (interface{}, error)

Types

type DeployerServer

type DeployerServer struct {
	deployapi.UnimplementedDeployAgentServer
}

func (*DeployerServer) ConnectEsxiDisks

func (*DeployerServer) DeployGuestFs

func (*DeployerServer) DeployGuestFs(ctx context.Context, req *deployapi.DeployParams,
) (res *deployapi.DeployGuestFsResponse, err error)

func (*DeployerServer) DisconnectEsxiDisks

func (*DeployerServer) DisconnectEsxiDisks(
	ctx context.Context, req *deployapi.EsxiDisksConnectionInfo,
) (*deployapi.Empty, error)

func (*DeployerServer) FormatFs

func (*DeployerServer) ProbeImageInfo

func (*DeployerServer) ResizeFs

func (*DeployerServer) ResizeFs(ctx context.Context, req *deployapi.ResizeFsParams) (res *deployapi.Empty, err error)

func (*DeployerServer) SaveToGlance

type LocalDeploy

type LocalDeploy struct{}

func (*LocalDeploy) DeployGuestFs

func (d *LocalDeploy) DeployGuestFs(req *deployapi.DeployParams) (res *deployapi.DeployGuestFsResponse, err error)

func (*LocalDeploy) FormatFs

func (d *LocalDeploy) FormatFs(req *deployapi.FormatFsParams) (*deployapi.Empty, error)

func (*LocalDeploy) ProbeImageInfo

func (d *LocalDeploy) ProbeImageInfo(req *deployapi.ProbeImageInfoPramas) (*deployapi.ImageInfo, error)

func (*LocalDeploy) ResizeFs

func (d *LocalDeploy) ResizeFs(req *deployapi.ResizeFsParams) (res *deployapi.Empty, err error)

func (*LocalDeploy) SaveToGlance

type SDeployOptions

type SDeployOptions struct {
	host_options.SHostBaseOptions

	// PrivatePrefixes []string `help:"IPv4 private prefixes"`
	ChntpwPath string `help:"path to chntpw tool" default:"/usr/local/bin/chntpw.static"`

	CloudrootDir     string `help:"User cloudroot home dir" default:"/opt"`
	CommonConfigFile string `help:"common config file for container"`

	DeployTempDir string `help:"temp dir for deployer" default:"/opt/cloud/workspace/run/deploy"`

	AllowVmSELinux bool `help:"turn off vm selinux" default:"false" json:"allow_vm_selinux"`

	HugepagesOption string `help:"Hugepages option: disable|native|transparent" default:"transparent"`
	HugepageSizeMb  int    `help:"hugepage size mb default 1G" default:"1024"`
	// DefaultQemuVersion   string   `help:"Default qemu version" default:"4.2.0"`
	DeployGuestMemSizeMb int      `help:"Deploy guest mem size mb" default:"320"`
	ListenInterface      string   `help:"Master address of host server"`
	Networks             []string `help:"Network interface information"`

	DeployAction     string `help:"local deploy action"`
	DeployParams     string `help:"params for deploy action"`
	DeployParamsFile string `help:"file store params for deploy action"`
}
var DeployOption SDeployOptions

func Parse

func Parse() SDeployOptions

type SDeployService

type SDeployService struct {
	*service.SServiceBase
	// contains filtered or unexported fields
}

func NewDeployService

func NewDeployService() *SDeployService

func (*SDeployService) FixPathEnv

func (s *SDeployService) FixPathEnv() error

func (*SDeployService) InitService

func (s *SDeployService) InitService()

func (*SDeployService) OnExitService

func (s *SDeployService) OnExitService()

func (*SDeployService) PrepareEnv

func (s *SDeployService) PrepareEnv() error

func (*SDeployService) RunService

func (s *SDeployService) RunService()

Jump to

Keyboard shortcuts

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