Documentation ¶
Index ¶
- func InitEnvCommon() error
- func LocalInitEnv() error
- func StartLocalDeploy(deployAction string) (interface{}, error)
- type DeployerServer
- func (*DeployerServer) ConnectEsxiDisks(ctx context.Context, req *deployapi.ConnectEsxiDisksParams) (*deployapi.EsxiDisksConnectionInfo, error)
- func (*DeployerServer) DeployGuestFs(ctx context.Context, req *deployapi.DeployParams) (res *deployapi.DeployGuestFsResponse, err error)
- func (*DeployerServer) DisconnectEsxiDisks(ctx context.Context, req *deployapi.EsxiDisksConnectionInfo) (*deployapi.Empty, error)
- func (*DeployerServer) FormatFs(ctx context.Context, req *deployapi.FormatFsParams) (*deployapi.Empty, error)
- func (s *DeployerServer) ProbeImageInfo(ctx context.Context, req *deployapi.ProbeImageInfoPramas) (*deployapi.ImageInfo, error)
- func (*DeployerServer) ResizeFs(ctx context.Context, req *deployapi.ResizeFsParams) (res *deployapi.Empty, err error)
- func (*DeployerServer) SaveToGlance(ctx context.Context, req *deployapi.SaveToGlanceParams) (*deployapi.SaveToGlanceResponse, error)
- type LocalDeploy
- func (d *LocalDeploy) DeployGuestFs(req *deployapi.DeployParams) (res *deployapi.DeployGuestFsResponse, err error)
- func (d *LocalDeploy) FormatFs(req *deployapi.FormatFsParams) (*deployapi.Empty, error)
- func (d *LocalDeploy) ProbeImageInfo(req *deployapi.ProbeImageInfoPramas) (*deployapi.ImageInfo, error)
- func (d *LocalDeploy) ResizeFs(req *deployapi.ResizeFsParams) (res *deployapi.Empty, err error)
- func (d *LocalDeploy) SaveToGlance(req *deployapi.SaveToGlanceParams) (*deployapi.SaveToGlanceResponse, error)
- type SDeployOptions
- type SDeployService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitEnvCommon ¶
func InitEnvCommon() error
func LocalInitEnv ¶
func LocalInitEnv() error
func StartLocalDeploy ¶
Types ¶
type DeployerServer ¶
type DeployerServer struct {
deployapi.UnimplementedDeployAgentServer
}
func (*DeployerServer) ConnectEsxiDisks ¶
func (*DeployerServer) ConnectEsxiDisks( ctx context.Context, req *deployapi.ConnectEsxiDisksParams, ) (*deployapi.EsxiDisksConnectionInfo, error)
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) FormatFs(ctx context.Context, req *deployapi.FormatFsParams) (*deployapi.Empty, error)
func (*DeployerServer) ProbeImageInfo ¶
func (s *DeployerServer) ProbeImageInfo(ctx context.Context, req *deployapi.ProbeImageInfoPramas) (*deployapi.ImageInfo, error)
func (*DeployerServer) ResizeFs ¶
func (*DeployerServer) ResizeFs(ctx context.Context, req *deployapi.ResizeFsParams) (res *deployapi.Empty, err error)
func (*DeployerServer) SaveToGlance ¶
func (*DeployerServer) SaveToGlance(ctx context.Context, req *deployapi.SaveToGlanceParams) (*deployapi.SaveToGlanceResponse, error)
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 ¶
func (d *LocalDeploy) SaveToGlance(req *deployapi.SaveToGlanceParams) (*deployapi.SaveToGlanceResponse, error)
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()
Click to show internal directories.
Click to hide internal directories.