Versions in this module Expand all Collapse all v1 v1.3.2 Oct 29, 2018 Changes in this version + const DefaultArtifactEndpoint + const DefaultBuildEndpoint + const DefaultBuilderEndpoint + const DefaultCacheEndpoint + const DefaultCommandEndpoint + const DefaultCommunicatorEndpoint + 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 + 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 + type CacheRLockResponse struct + Exists bool + Path string + type CacheServer struct + func (c *CacheServer) Lock(key string, result *string) error + func (c *CacheServer) RLock(key string, result *CacheRLockResponse) error + func (c *CacheServer) RUnlock(key string, result *interface{}) error + func (c *CacheServer) Unlock(key string, result *interface{}) 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) Cache() packer.Cache + func (c *Client) Close() error + func (c *Client) Communicator() packer.Communicator + 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 + 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 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 PostProcessorConfigureArgs struct + Configs []interface{} + type PostProcessorProcessResponse struct + Err *BasicError + Keep bool + StreamId uint32 + type PostProcessorServer struct + func (p *PostProcessorServer) Configure(args *PostProcessorConfigureArgs, reply *interface{}) error + func (p *PostProcessorServer) PostProcess(streamId uint32, reply *PostProcessorProcessResponse) error + type ProvisionerPrepareArgs struct + Configs []interface{} + 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(streamId uint32, reply *interface{}) error + type Server struct + func NewServer(conn io.ReadWriteCloser) *Server + func (s *Server) Close() error + func (s *Server) RegisterArtifact(a packer.Artifact) + func (s *Server) RegisterBuild(b packer.Build) + func (s *Server) RegisterBuilder(b packer.Builder) + func (s *Server) RegisterCache(c packer.Cache) + func (s *Server) RegisterCommunicator(c packer.Communicator) + func (s *Server) RegisterHook(h packer.Hook) + func (s *Server) RegisterPostProcessor(p packer.PostProcessor) + func (s *Server) RegisterProvisioner(p packer.Provisioner) + func (s *Server) RegisterUi(ui packer.Ui) + func (s *Server) Serve() + type Ui struct + func (pb *Ui) Add(current int64) + func (pb *Ui) Finish() + func (pb *Ui) NewProxyReader(r io.Reader) io.Reader + func (pb *Ui) Start(total int64) + 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) ProgressBar() packer.ProgressBar + func (u *Ui) Say(message string) + type UiMachineArgs struct + Args []string + Category string + type UiServer struct + func (pb *UiServer) Add(current int64, _ *interface{}) error + func (pb *UiServer) Finish(_ string, _ *interface{}) error + func (pb *UiServer) Start(total int64, _ *interface{}) error + 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) ProgressBar(_ *string, reply *interface{}) error + func (u *UiServer) Say(message *string, reply *interface{}) error