Documentation ¶
Index ¶
- Constants
- func TarballDirectory(dirname, rootdir, tarname string) (string, error)
- type BlobClient
- type CompileTemplate
- type MarshalableBlobRef
- type NatCommand
- type NatsClient
- func (n *NatsClient) CheckErrandResultStatus(taskID string) func() (action.ErrandResult, error)
- func (n *NatsClient) Cleanup()
- func (n *NatsClient) CompilePackage(packageName string) (*MarshalableBlobRef, error)
- func (n *NatsClient) CompilePackageWithDeps(packageName string, deps map[string]MarshalableBlobRef) (*MarshalableBlobRef, error)
- func (n *NatsClient) FetchLogs(destinationDir string)
- func (n *NatsClient) GetNextAlert(timeout time.Duration) (*boshalert.Alert, error)
- func (n *NatsClient) GetState() action.GetStateV1ApplySpec
- func (n *NatsClient) GetTask(id string) (*http.TaskResponse, error)
- func (n *NatsClient) PrepareJob(jobName string)
- func (n *NatsClient) RunDrain() error
- func (n *NatsClient) RunErrand() (map[string]map[string]string, error)
- func (n *NatsClient) RunScript(scriptName string) error
- func (n *NatsClient) RunStart() (map[string]string, error)
- func (n *NatsClient) RunStop() error
- func (n *NatsClient) SendMessage(message string) (map[string]map[string]string, error)
- func (n *NatsClient) SendRawMessage(message string) ([]byte, error)
- func (n *NatsClient) SendRawMessageWithTimeout(message string, timeout time.Duration) ([]byte, error)
- func (n *NatsClient) Setup() error
- func (n *NatsClient) WaitForTask(id string, timeout time.Duration) (*http.TaskResponse, error)
- type PrepareTemplateConfig
- type TarWalker
Constants ¶
View Source
const ( DefaultTimeout = time.Minute DefaultInterval = time.Second )
View Source
const DefaultNatsTimeout = time.Second * 15
View Source
const DefaultTaskTimeout = time.Second * 30
Variables ¶
This section is empty.
Functions ¶
func TarballDirectory ¶
TarballDirectory - rootdir is equivalent to tar -C 'rootdir'
Types ¶
type BlobClient ¶
type BlobClient struct {
// contains filtered or unexported fields
}
func NewBlobstore ¶
func NewBlobstore(uri string) BlobClient
type CompileTemplate ¶
type CompileTemplate struct { BlobstoreID string SHA1 string Name string Version string Dependencies map[string]MarshalableBlobRef }
func (CompileTemplate) Arguments ¶
func (c CompileTemplate) Arguments() []interface{}
type MarshalableBlobRef ¶
type NatCommand ¶
type NatCommand struct { Protocol int `json:"protocol"` Method string `json:"method"` Arguments []interface{} `json:"arguments"` ReplyTo string `json:"reply_to"` }
func (NatCommand) Marshal ¶
func (n NatCommand) Marshal() (string, error)
type NatsClient ¶
type NatsClient struct {
// contains filtered or unexported fields
}
func NewNatsClient ¶
func NewNatsClient( compressor boshfileutil.Compressor, blobstoreClient BlobClient, natsIP string, ) *NatsClient
func (*NatsClient) CheckErrandResultStatus ¶
func (n *NatsClient) CheckErrandResultStatus(taskID string) func() (action.ErrandResult, error)
func (*NatsClient) Cleanup ¶
func (n *NatsClient) Cleanup()
func (*NatsClient) CompilePackage ¶
func (n *NatsClient) CompilePackage(packageName string) (*MarshalableBlobRef, error)
func (*NatsClient) CompilePackageWithDeps ¶
func (n *NatsClient) CompilePackageWithDeps(packageName string, deps map[string]MarshalableBlobRef) (*MarshalableBlobRef, error)
func (*NatsClient) FetchLogs ¶
func (n *NatsClient) FetchLogs(destinationDir string)
func (*NatsClient) GetNextAlert ¶
func (*NatsClient) GetState ¶
func (n *NatsClient) GetState() action.GetStateV1ApplySpec
func (*NatsClient) GetTask ¶
func (n *NatsClient) GetTask(id string) (*http.TaskResponse, error)
func (*NatsClient) PrepareJob ¶
func (n *NatsClient) PrepareJob(jobName string)
func (*NatsClient) RunDrain ¶
func (n *NatsClient) RunDrain() error
func (*NatsClient) RunErrand ¶
func (n *NatsClient) RunErrand() (map[string]map[string]string, error)
func (*NatsClient) RunScript ¶
func (n *NatsClient) RunScript(scriptName string) error
func (*NatsClient) RunStop ¶
func (n *NatsClient) RunStop() error
func (*NatsClient) SendMessage ¶
func (*NatsClient) SendRawMessage ¶
func (n *NatsClient) SendRawMessage(message string) ([]byte, error)
func (*NatsClient) SendRawMessageWithTimeout ¶
func (*NatsClient) Setup ¶
func (n *NatsClient) Setup() error
func (*NatsClient) WaitForTask ¶
func (n *NatsClient) WaitForTask(id string, timeout time.Duration) (*http.TaskResponse, error)
type PrepareTemplateConfig ¶
Click to show internal directories.
Click to hide internal directories.