Documentation ¶
Index ¶
- func Artifact(client *rpc.Client) *artifact
- func Build(client *rpc.Client) *build
- func Builder(client *rpc.Client) *builder
- func Cache(client *rpc.Client) *cache
- func Command(client *rpc.Client) *command
- func Communicator(client *rpc.Client) *communicator
- func Hook(client *rpc.Client) *hook
- func PortRange(min, max int)
- func PostProcessor(client *rpc.Client) *postProcessor
- func Provisioner(client *rpc.Client) *provisioner
- func RegisterArtifact(s *rpc.Server, a packer.Artifact)
- func RegisterBuild(s *rpc.Server, b packer.Build)
- func RegisterBuilder(s *rpc.Server, b packer.Builder)
- func RegisterCache(s *rpc.Server, c packer.Cache)
- func RegisterCommand(s *rpc.Server, c packer.Command)
- func RegisterCommunicator(s *rpc.Server, c packer.Communicator)
- func RegisterEnvironment(s *rpc.Server, e packer.Environment)
- func RegisterHook(s *rpc.Server, hook packer.Hook)
- func RegisterPostProcessor(s *rpc.Server, p packer.PostProcessor)
- func RegisterProvisioner(s *rpc.Server, p packer.Provisioner)
- func RegisterUi(s *rpc.Server, ui packer.Ui)
- type ArtifactServer
- 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) String(args *interface{}, reply *string) error
- type BasicError
- type BuildRunArgs
- type BuildServer
- func (b *BuildServer) Cancel(args *interface{}, reply *interface{}) error
- func (b *BuildServer) Name(args *interface{}, reply *string) error
- func (b *BuildServer) Prepare(v map[string]string, reply *error) error
- func (b *BuildServer) Run(args *BuildRunArgs, reply *[]string) error
- func (b *BuildServer) SetDebug(val *bool, reply *interface{}) error
- func (b *BuildServer) SetForce(val *bool, reply *interface{}) error
- type BuilderPrepareArgs
- type BuilderRunArgs
- type BuilderRunResponse
- type BuilderServer
- type CacheRLockResponse
- type CacheServer
- type CommandFinished
- type CommandRunArgs
- type CommandServer
- type CommandSynopsisArgs
- type CommunicatorDownloadArgs
- type CommunicatorServer
- type CommunicatorStartArgs
- type CommunicatorUploadArgs
- type Environment
- func (e *Environment) Builder(name string) (b packer.Builder, err error)
- func (e *Environment) Cache() packer.Cache
- func (e *Environment) Cli(args []string) (result int, err error)
- func (e *Environment) Hook(name string) (h packer.Hook, err error)
- func (e *Environment) PostProcessor(name string) (p packer.PostProcessor, err error)
- func (e *Environment) Provisioner(name string) (p packer.Provisioner, err error)
- func (e *Environment) Ui() packer.Ui
- type EnvironmentCliArgs
- type EnvironmentServer
- func (e *EnvironmentServer) Builder(name *string, reply *string) error
- func (e *EnvironmentServer) Cache(args *interface{}, reply *string) error
- func (e *EnvironmentServer) Cli(args *EnvironmentCliArgs, reply *int) (err error)
- func (e *EnvironmentServer) Hook(name *string, reply *string) error
- func (e *EnvironmentServer) PostProcessor(name *string, reply *string) error
- func (e *EnvironmentServer) Provisioner(name *string, reply *string) error
- func (e *EnvironmentServer) Ui(args *interface{}, reply *string) error
- type HookRunArgs
- type HookServer
- type PostProcessorConfigureArgs
- type PostProcessorProcessResponse
- type PostProcessorServer
- type ProvisionerPrepareArgs
- type ProvisionerProvisionArgs
- type ProvisionerServer
- type Ui
- type UiMachineArgs
- type UiServer
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Communicator ¶
func PortRange ¶
func PortRange(min, max int)
This sets the port range that the RPC stuff will use when creating new temporary servers. Some RPC calls require the creation of temporary RPC servers. These allow you to pick a range these bind to.
func PostProcessor ¶
func Provisioner ¶
func RegisterArtifact ¶
Registers the appropriate endpoint on an RPC server to serve an Artifact.
func RegisterBuild ¶
Registers the appropriate endpoint on an RPC server to serve a Packer Build.
func RegisterBuilder ¶
Registers the appropriate endpoint on an RPC server to serve a Packer Builder.
func RegisterCache ¶
Registers the appropriate endpoint on an RPC server to serve a Packer Cache.
func RegisterCommand ¶
Registers the appropriate endpoint on an RPC server to serve a Packer Command.
func RegisterCommunicator ¶
func RegisterCommunicator(s *rpc.Server, c packer.Communicator)
Registers the appropriate endpoint on an RPC server to serve a Packer Communicator.
func RegisterEnvironment ¶
func RegisterEnvironment(s *rpc.Server, e packer.Environment)
Registers the appropriate endpoint on an RPC server to serve a Packer Environment
func RegisterHook ¶
Registers the appropriate endpoint on an RPC server to serve a Hook.
func RegisterPostProcessor ¶
func RegisterPostProcessor(s *rpc.Server, p packer.PostProcessor)
Registers the appropriate endpoing on an RPC server to serve a PostProcessor.
func RegisterProvisioner ¶
func RegisterProvisioner(s *rpc.Server, p packer.Provisioner)
Registers the appropriate endpoint on an RPC server to serve a packer.Provisioner
Types ¶
type ArtifactServer ¶
type ArtifactServer struct {
// contains filtered or unexported fields
}
ArtifactServer wraps a packer.Artifact implementation and makes it exportable as part of a Golang RPC server.
func (*ArtifactServer) BuilderId ¶
func (s *ArtifactServer) BuilderId(args *interface{}, reply *string) error
func (*ArtifactServer) Destroy ¶
func (s *ArtifactServer) Destroy(args *interface{}, reply *error) error
func (*ArtifactServer) Files ¶
func (s *ArtifactServer) Files(args *interface{}, reply *[]string) error
func (*ArtifactServer) Id ¶
func (s *ArtifactServer) Id(args *interface{}, reply *string) error
func (*ArtifactServer) String ¶
func (s *ArtifactServer) String(args *interface{}, reply *string) error
type BasicError ¶
type BasicError struct {
Message string
}
This is a type that wraps error types so that they can be messaged across RPC channels. Since "error" is an interface, we can't always gob-encode the underlying structure. This is a valid error interface implementer that we will push across.
func NewBasicError ¶
func NewBasicError(err error) *BasicError
func (*BasicError) Error ¶
func (e *BasicError) Error() string
type BuildRunArgs ¶
type BuildRunArgs struct {
UiRPCAddress string
}
type BuildServer ¶
type BuildServer struct {
// contains filtered or unexported fields
}
BuildServer wraps a packer.Build implementation and makes it exportable as part of a Golang RPC server.
func (*BuildServer) Cancel ¶
func (b *BuildServer) Cancel(args *interface{}, reply *interface{}) error
func (*BuildServer) Name ¶
func (b *BuildServer) Name(args *interface{}, reply *string) error
func (*BuildServer) Prepare ¶
func (b *BuildServer) Prepare(v map[string]string, reply *error) error
func (*BuildServer) Run ¶
func (b *BuildServer) Run(args *BuildRunArgs, reply *[]string) error
func (*BuildServer) SetDebug ¶
func (b *BuildServer) SetDebug(val *bool, reply *interface{}) error
func (*BuildServer) SetForce ¶ added in v0.2.0
func (b *BuildServer) SetForce(val *bool, reply *interface{}) error
type BuilderPrepareArgs ¶
type BuilderPrepareArgs struct {
Configs []interface{}
}
type BuilderRunArgs ¶
type BuilderRunResponse ¶
type BuilderServer ¶
type BuilderServer struct {
// contains filtered or unexported fields
}
BuilderServer wraps a packer.Builder implementation and makes it exportable as part of a Golang RPC server.
func (*BuilderServer) Cancel ¶
func (b *BuilderServer) Cancel(args *interface{}, reply *interface{}) error
func (*BuilderServer) Prepare ¶
func (b *BuilderServer) Prepare(args *BuilderPrepareArgs, reply *error) error
func (*BuilderServer) Run ¶
func (b *BuilderServer) Run(args *BuilderRunArgs, reply *interface{}) error
type CacheRLockResponse ¶
type CacheServer ¶
type CacheServer struct {
// contains filtered or unexported fields
}
CacheServer wraps a packer.Cache implementation and makes it exportable as part of a Golang RPC server.
func (*CacheServer) RLock ¶
func (c *CacheServer) RLock(key string, result *CacheRLockResponse) error
func (*CacheServer) RUnlock ¶
func (c *CacheServer) RUnlock(key string, result *interface{}) error
func (*CacheServer) Unlock ¶
func (c *CacheServer) Unlock(key string, result *interface{}) error
type CommandFinished ¶
type CommandFinished struct {
ExitStatus int
}
type CommandRunArgs ¶
type CommandServer ¶
type CommandServer struct {
// contains filtered or unexported fields
}
A CommandServer wraps a packer.Command and makes it exportable as part of a Golang RPC server.
func (*CommandServer) Help ¶
func (c *CommandServer) Help(args *interface{}, reply *string) error
func (*CommandServer) Run ¶
func (c *CommandServer) Run(args *CommandRunArgs, reply *int) error
func (*CommandServer) Synopsis ¶
func (c *CommandServer) Synopsis(args *CommandSynopsisArgs, reply *string) error
type CommandSynopsisArgs ¶
type CommandSynopsisArgs byte
type CommunicatorServer ¶
type CommunicatorServer struct {
// contains filtered or unexported fields
}
CommunicatorServer wraps a packer.Communicator implementation and makes it exportable as part of a Golang RPC server.
func (*CommunicatorServer) Download ¶
func (c *CommunicatorServer) Download(args *CommunicatorDownloadArgs, reply *interface{}) (err error)
func (*CommunicatorServer) Start ¶
func (c *CommunicatorServer) Start(args *CommunicatorStartArgs, reply *interface{}) (err error)
func (*CommunicatorServer) Upload ¶
func (c *CommunicatorServer) Upload(args *CommunicatorUploadArgs, reply *interface{}) (err error)
type CommunicatorStartArgs ¶
type CommunicatorUploadArgs ¶
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
A Environment is an implementation of the packer.Environment interface where the actual environment is executed over an RPC connection.
func (*Environment) Builder ¶
func (e *Environment) Builder(name string) (b packer.Builder, err error)
func (*Environment) Cache ¶
func (e *Environment) Cache() packer.Cache
func (*Environment) PostProcessor ¶
func (e *Environment) PostProcessor(name string) (p packer.PostProcessor, err error)
func (*Environment) Provisioner ¶
func (e *Environment) Provisioner(name string) (p packer.Provisioner, err error)
func (*Environment) Ui ¶
func (e *Environment) Ui() packer.Ui
type EnvironmentCliArgs ¶
type EnvironmentCliArgs struct {
Args []string
}
type EnvironmentServer ¶
type EnvironmentServer struct {
// contains filtered or unexported fields
}
A EnvironmentServer wraps a packer.Environment and makes it exportable as part of a Golang RPC server.
func (*EnvironmentServer) Builder ¶
func (e *EnvironmentServer) Builder(name *string, reply *string) error
func (*EnvironmentServer) Cache ¶
func (e *EnvironmentServer) Cache(args *interface{}, reply *string) error
func (*EnvironmentServer) Cli ¶
func (e *EnvironmentServer) Cli(args *EnvironmentCliArgs, reply *int) (err error)
func (*EnvironmentServer) Hook ¶
func (e *EnvironmentServer) Hook(name *string, reply *string) error
func (*EnvironmentServer) PostProcessor ¶
func (e *EnvironmentServer) PostProcessor(name *string, reply *string) error
func (*EnvironmentServer) Provisioner ¶
func (e *EnvironmentServer) Provisioner(name *string, reply *string) error
func (*EnvironmentServer) Ui ¶
func (e *EnvironmentServer) Ui(args *interface{}, reply *string) error
type HookRunArgs ¶
type HookServer ¶
type HookServer struct {
// contains filtered or unexported fields
}
HookServer wraps a packer.Hook implementation and makes it exportable as part of a Golang RPC server.
func (*HookServer) Run ¶
func (h *HookServer) Run(args *HookRunArgs, reply *interface{}) error
type PostProcessorConfigureArgs ¶ added in v0.1.4
type PostProcessorConfigureArgs struct {
Configs []interface{}
}
type PostProcessorServer ¶
type PostProcessorServer struct {
// contains filtered or unexported fields
}
PostProcessorServer wraps a packer.PostProcessor implementation and makes it exportable as part of a Golang RPC server.
func (*PostProcessorServer) Configure ¶
func (p *PostProcessorServer) Configure(args *PostProcessorConfigureArgs, reply *error) error
func (*PostProcessorServer) PostProcess ¶
func (p *PostProcessorServer) PostProcess(address string, reply *PostProcessorProcessResponse) error
type ProvisionerPrepareArgs ¶
type ProvisionerPrepareArgs struct {
Configs []interface{}
}
type ProvisionerProvisionArgs ¶
type ProvisionerProvisionArgs struct {
RPCAddress string
}
type ProvisionerServer ¶
type ProvisionerServer struct {
// contains filtered or unexported fields
}
ProvisionerServer wraps a packer.Provisioner implementation and makes it exportable as part of a Golang RPC server.
func (*ProvisionerServer) Prepare ¶
func (p *ProvisionerServer) Prepare(args *ProvisionerPrepareArgs, reply *error) error
func (*ProvisionerServer) Provision ¶
func (p *ProvisionerServer) Provision(args *ProvisionerProvisionArgs, reply *interface{}) error
type Ui ¶
type Ui struct {
// contains filtered or unexported fields
}
An implementation of packer.Ui where the Ui is actually executed over an RPC connection.
type UiMachineArgs ¶ added in v0.3.0
The arguments sent to Ui.Machine