Versions in this module Expand all Collapse all v0 v0.0.2 Dec 29, 2021 Changes in this version + const LOGIN_MODE_PASS + const Password type Config + Password string type FlatConfig + Password *string v0.0.1 Jun 30, 2021 Changes in this version + const AllocateNewID + const BuilderConfig + const BuilderId + const DefaultPrivateKey + const DefaultPublicKey + const EIPID + const ImageID + const InstanceID + const LOGIN_MODE_KEYPAIR + const LocalKey + const LoginKeyPairID + const PrivateIP + const PrivateKey + const PublicIP + const QingCloudAPIKey + const QingCloudAPISecret + const SecurityGroupID + const UI + var DefaultInterval = time.Second * 5 + var DefaultTimeout = time.Second * 3600 + type Artifact struct + StateData map[string]interface{} + func (*Artifact) BuilderId() string + func (*Artifact) Id() string + func (a *Artifact) Destroy() error + func (a *Artifact) Files() []string + func (a *Artifact) State(name string) interface{} + func (a *Artifact) String() string + type Builder struct + func (b *Builder) ConfigSpec() hcldec.ObjectSpec + func (b *Builder) Prepare(raws ...interface{}) ([]string, []string, error) + func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook) (packersdk.Artifact, error) + type Config struct + ApiKey string + ApiSecret string + BaseImageID string + CPU int + EIPID string + Host string + ImageArtifactName string + InstanceClass int + KeypairID string + LogLevel string + Memory int + Port int + Protocol string + SecurityGroupID string + Uri string + VxnetID string + Zone string + func NewConfig(raws ...interface{}) (*Config, []string, error) + func (*Config) FlatMapstructure() interface{ ... } + func (config *Config) GetQingCloudService() *service.QingCloudService + type FlatConfig struct + ApiKey *string + ApiSecret *string + BaseImageID *string + CPU *int + EIPID *string + Host *string + ImageArtifactName *string + InstanceClass *int + KeypairID *string + LogLevel *string + Memory *int + PackerBuildName *string + PackerBuilderType *string + PackerCoreVersion *string + PackerDebug *bool + PackerForce *bool + PackerOnError *string + PackerSensitiveVars []string + PackerUserVars map[string]string + PauseBeforeConnect *string + Port *int + Protocol *string + SSHAgentAuth *bool + SSHBastionAgentAuth *bool + SSHBastionCertificateFile *string + SSHBastionHost *string + SSHBastionInteractive *bool + SSHBastionPassword *string + SSHBastionPort *int + SSHBastionPrivateKeyFile *string + SSHBastionUsername *string + SSHCertificateFile *string + SSHCiphers []string + SSHClearAuthorizedKeys *bool + SSHDisableAgentForwarding *bool + SSHFileTransferMethod *string + SSHHandshakeAttempts *int + SSHHost *string + SSHKEXAlgos []string + SSHKeepAliveInterval *string + SSHKeyPairName *string + SSHLocalTunnels []string + SSHPassword *string + SSHPort *int + SSHPrivateKey []byte + SSHPrivateKeyFile *string + SSHProxyHost *string + SSHProxyPassword *string + SSHProxyPort *int + SSHProxyUsername *string + SSHPty *bool + SSHPublicKey []byte + SSHReadWriteTimeout *string + SSHRemoteTunnels []string + SSHTemporaryKeyPairBits *int + SSHTemporaryKeyPairName *string + SSHTemporaryKeyPairType *string + SSHTimeout *string + SSHUsername *string + SSHWaitTimeout *string + SecurityGroupID *string + Type *string + Uri *string + VxnetID *string + WinRMHost *string + WinRMInsecure *bool + WinRMNoProxy *bool + WinRMPassword *string + WinRMPort *int + WinRMTimeout *string + WinRMUseNTLM *bool + WinRMUseSSL *bool + WinRMUser *string + Zone *string + func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec + type ImageArtifact struct + ImageID string + ImageService *service.ImageService + func (artifact *ImageArtifact) BuilderId() string + func (artifact *ImageArtifact) Destroy() error + func (artifact *ImageArtifact) Files() []string + func (artifact *ImageArtifact) Id() string + func (artifact *ImageArtifact) State(name string) interface{} + func (artifact *ImageArtifact) String() string + type StepBuildImage struct + func (step *StepBuildImage) Cleanup(multistep.StateBag) + func (step *StepBuildImage) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepCreateVM struct + func (step *StepCreateVM) Cleanup(state multistep.StateBag) + func (step *StepCreateVM) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepEnsureIP struct + func (step *StepEnsureIP) Cleanup(state multistep.StateBag) + func (step *StepEnsureIP) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepEnsureKeypair struct + func (step *StepEnsureKeypair) Cleanup(state multistep.StateBag) + func (step *StepEnsureKeypair) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepEnsureSecurityGroup struct + func (step *StepEnsureSecurityGroup) Cleanup(state multistep.StateBag) + func (step *StepEnsureSecurityGroup) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepSayConfig struct + MockConfig string + func (s *StepSayConfig) Cleanup(_ multistep.StateBag) + func (s *StepSayConfig) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepShutDownVM struct + func (step *StepShutDownVM) Cleanup(state multistep.StateBag) + func (step *StepShutDownVM) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction