Versions in this module Expand all Collapse all v0 v0.0.12 Feb 8, 2021 Changes in this version + const DefaultArtifactEndpoint + const DefaultBuildEndpoint + const DefaultBuilderEndpoint + const DefaultCacheEndpoint + const DefaultCommandEndpoint + const DefaultCommunicatorEndpoint + const DefaultDatasourceEndpoint + const DefaultHookEndpoint + const DefaultPostProcessorEndpoint + const DefaultProvisionerEndpoint + const DefaultUiEndpoint + func Communicator(client *rpc.Client) *communicator + func NewFileInfo(fi os.FileInfo) *fileInfo + type ArtifactServer struct + func (s *ArtifactServer) BuilderId(args *interface{}, reply *string) error + func (s *ArtifactServer) Destroy(args *interface{}, reply *error) error + func (s *ArtifactServer) Files(args *interface{}, reply *[]string) error + func (s *ArtifactServer) Id(args *interface{}, reply *string) error + func (s *ArtifactServer) State(name string, reply *interface{}) error + func (s *ArtifactServer) String(args *interface{}, reply *string) error + type BasicError struct + Message string + func NewBasicError(err error) *BasicError + func (e *BasicError) Error() string + type BuildPrepareResponse struct + Error *BasicError + Warnings []string + type BuildServer struct + func (b *BuildServer) Cancel(args *interface{}, reply *interface{}) error + func (b *BuildServer) Name(args *interface{}, reply *string) error + func (b *BuildServer) Prepare(args *interface{}, resp *BuildPrepareResponse) error + func (b *BuildServer) Run(streamId uint32, reply *[]uint32) error + func (b *BuildServer) SetDebug(val *bool, reply *interface{}) error + func (b *BuildServer) SetForce(val *bool, reply *interface{}) error + func (b *BuildServer) SetOnError(val *string, reply *interface{}) error + type BuilderPrepareArgs struct + Configs []interface{} + type BuilderPrepareResponse struct + Error *BasicError + GeneratedVars []string + Warnings []string + type BuilderServer struct + func (b *BuilderServer) Cancel(args *interface{}, reply *interface{}) error + func (b *BuilderServer) Prepare(args *BuilderPrepareArgs, reply *BuilderPrepareResponse) error + func (b *BuilderServer) Run(streamId uint32, reply *uint32) error + func (s *BuilderServer) ConfigSpec(_ interface{}, reply *ConfigSpecResponse) error + type Client struct + func NewClient(rwc io.ReadWriteCloser) (*Client, error) + func (c *Client) Artifact() packer.Artifact + func (c *Client) Build() packer.Build + func (c *Client) Builder() packer.Builder + func (c *Client) Close() error + func (c *Client) Communicator() packer.Communicator + func (c *Client) Datasource() packer.Datasource + func (c *Client) Hook() packer.Hook + func (c *Client) PostProcessor() packer.PostProcessor + func (c *Client) Provisioner() packer.Provisioner + func (c *Client) Ui() packer.Ui + type CommandFinished struct + ExitStatus int + type CommunicatorDownloadArgs struct + Path string + WriterStreamId uint32 + type CommunicatorDownloadDirArgs struct + Dst string + Exclude []string + Src string + type CommunicatorServer struct + func (c *CommunicatorServer) Download(args *CommunicatorDownloadArgs, reply *interface{}) (err error) + func (c *CommunicatorServer) DownloadDir(args *CommunicatorUploadDirArgs, reply *error) error + func (c *CommunicatorServer) Start(args *CommunicatorStartArgs, reply *interface{}) error + func (c *CommunicatorServer) Upload(args *CommunicatorUploadArgs, reply *interface{}) (err error) + func (c *CommunicatorServer) UploadDir(args *CommunicatorUploadDirArgs, reply *error) error + func (s *CommunicatorServer) ConfigSpec(_ interface{}, reply *ConfigSpecResponse) error + type CommunicatorStartArgs struct + Command string + ResponseStreamId uint32 + StderrStreamId uint32 + StdinStreamId uint32 + StdoutStreamId uint32 + type CommunicatorUploadArgs struct + FileInfo *fileInfo + Path string + ReaderStreamId uint32 + type CommunicatorUploadDirArgs struct + Dst string + Exclude []string + Src string + type ConfigSpecResponse struct + ConfigSpec []byte + type DatasourceConfigureArgs struct + Configs []interface{} + type DatasourceConfigureResponse struct + Error *BasicError + type DatasourceServer struct + func (d *DatasourceServer) Cancel(args *interface{}, reply *interface{}) error + func (d *DatasourceServer) Configure(args *DatasourceConfigureArgs, reply *DatasourceConfigureResponse) error + func (d *DatasourceServer) Execute(args *interface{}, reply *ExecuteResponse) error + func (d *DatasourceServer) OutputSpec(args *DatasourceConfigureArgs, reply *OutputSpecResponse) error + func (s *DatasourceServer) ConfigSpec(_ interface{}, reply *ConfigSpecResponse) error + type ExecuteResponse struct + Error *BasicError + Value []byte + type HookRunArgs struct + Data interface{} + Name string + StreamId uint32 + type HookServer struct + func (h *HookServer) Cancel(args *interface{}, reply *interface{}) error + func (h *HookServer) Run(args *HookRunArgs, reply *interface{}) error + type OutputSpecResponse struct + OutputSpec []byte + type PluginServer struct + func NewServer(conn io.ReadWriteCloser) (*PluginServer, error) + func (s *PluginServer) Close() error + func (s *PluginServer) RegisterArtifact(a packer.Artifact) error + func (s *PluginServer) RegisterBuild(b packer.Build) error + func (s *PluginServer) RegisterBuilder(b packer.Builder) error + func (s *PluginServer) RegisterCommunicator(c packer.Communicator) error + func (s *PluginServer) RegisterDatasource(d packer.Datasource) error + func (s *PluginServer) RegisterHook(h packer.Hook) error + func (s *PluginServer) RegisterPostProcessor(p packer.PostProcessor) error + func (s *PluginServer) RegisterProvisioner(p packer.Provisioner) error + func (s *PluginServer) RegisterUi(ui packer.Ui) error + func (s *PluginServer) Serve() + type PostProcessorConfigureArgs struct + Configs []interface{} + type PostProcessorProcessResponse struct + Err *BasicError + ForceOverride bool + Keep bool + StreamId uint32 + type PostProcessorServer struct + func (b *PostProcessorServer) Cancel(args *interface{}, reply *interface{}) error + func (p *PostProcessorServer) Configure(args *PostProcessorConfigureArgs, reply *interface{}) (err error) + func (p *PostProcessorServer) PostProcess(streamId uint32, reply *PostProcessorProcessResponse) error + func (s *PostProcessorServer) ConfigSpec(_ interface{}, reply *ConfigSpecResponse) error + type ProgressTrackingClient struct + func (u *ProgressTrackingClient) Close() error + func (u *ProgressTrackingClient) Read(b []byte) (read int, err error) + type ProgressTrackingServer struct + func (t *ProgressTrackingServer) Add(size int, _ *interface{}) error + func (t *ProgressTrackingServer) Close(_, _ *interface{}) error + type ProvisionerPrepareArgs struct + Configs []interface{} + type ProvisionerProvisionArgs struct + GeneratedData map[string]interface{} + StreamID uint32 + type ProvisionerServer struct + func (p *ProvisionerServer) Cancel(args *interface{}, reply *interface{}) error + func (p *ProvisionerServer) Prepare(args *ProvisionerPrepareArgs, reply *interface{}) error + func (p *ProvisionerServer) Provision(args *ProvisionerProvisionArgs, reply *interface{}) error + func (s *ProvisionerServer) ConfigSpec(_ interface{}, reply *ConfigSpecResponse) error + type TrackProgressParameters struct + CurrentSize int64 + Src string + TotalSize int64 + type Ui struct + func (p *Ui) ConfigSpec() hcldec.ObjectSpec + func (u *Ui) Ask(query string) (result string, err error) + func (u *Ui) Error(message string) + func (u *Ui) Machine(t string, args ...string) + func (u *Ui) Message(message string) + func (u *Ui) Say(message string) + func (u *Ui) TrackProgress(src string, currentSize, totalSize int64, stream io.ReadCloser) io.ReadCloser + type UiMachineArgs struct + Args []string + Category string + type UiServer struct + func (u *UiServer) Ask(query string, reply *string) (err error) + func (u *UiServer) Error(message *string, reply *interface{}) error + func (u *UiServer) Machine(args *UiMachineArgs, reply *interface{}) error + func (u *UiServer) Message(message *string, reply *interface{}) error + func (u *UiServer) Say(message *string, reply *interface{}) error + func (ui *UiServer) NewTrackProgress(pl *TrackProgressParameters, reply *string) error