Versions in this module Expand all Collapse all v2 v2.706.0 Dec 17, 2024 v2.705.0 Dec 17, 2024 Changes in this version + func NewAgentClient(endpoint string, directorID string, getTaskDelay time.Duration, ...) agentclient.AgentClient + type AgentClient struct + AgentRequest agentRequest + func (c *AgentClient) AddPersistentDisk(diskCID string, diskHints interface{}) error + func (c *AgentClient) Apply(spec applyspec.ApplySpec) error + func (c *AgentClient) BundleLogs(owningUser string, logType string, filters []string) (agentclient.BundleLogsResult, error) + func (c *AgentClient) CleanUpSSH(user string) (agentclient.SSHResult, error) + func (c *AgentClient) CompilePackage(packageSource agentclient.BlobRef, ...) (compiledPackageRef agentclient.BlobRef, err error) + func (c *AgentClient) DeleteARPEntries(ips []string) error + func (c *AgentClient) Drain(drainType string) (int64, error) + func (c *AgentClient) GetState() (agentclient.AgentState, error) + func (c *AgentClient) ListDisk() ([]string, error) + func (c *AgentClient) MigrateDisk() error + func (c *AgentClient) MountDisk(diskCID string) error + func (c *AgentClient) Ping() (string, error) + func (c *AgentClient) RemoveFile(path string) error + func (c *AgentClient) RemovePersistentDisk(diskCID string) error + func (c *AgentClient) RunScript(scriptName string, options map[string]interface{}) error + func (c *AgentClient) SendAsyncTaskMessage(method string, arguments []interface{}) (value interface{}, err error) + func (c *AgentClient) SetUpSSH(user string, publicKey string) (agentclient.SSHResult, error) + func (c *AgentClient) Start() error + func (c *AgentClient) Stop() error + func (c *AgentClient) SyncDNS(blobID, sha1 string, version uint64) (string, error) + func (c *AgentClient) UnmountDisk(diskCID string) error + type AgentClientFactory interface + NewAgentClient func(directorID, mbusURL, caCert string) (agentclient.AgentClient, error) + func NewAgentClientFactory(getTaskDelay time.Duration, logger boshlog.Logger) AgentClientFactory + type AgentRequestMessage struct + Arguments []interface{} + Method string + ReplyTo string + type AgentState struct + JobState string + NetworkSpecs map[string]agentclient.NetworkSpec + type BlobRef struct + BlobstoreID string + Name string + SHA1 string + Version string + type BlobResponse struct + Exception *exception + Value map[string]string + func (r *BlobResponse) ServerError() error + func (r *BlobResponse) Unmarshal(message []byte) error + type BundleLogsResponse struct + Exception *exception + Value BundleLogsState + func (r *BundleLogsResponse) ServerError() error + func (r *BundleLogsResponse) Unmarshal(message []byte) error + type BundleLogsState struct + LogsTarPath string + SHA512Digest string + type ListResponse struct + Exception *exception + Value []string + func (r *ListResponse) ServerError() error + func (r *ListResponse) Unmarshal(message []byte) error + type Response interface + ServerError func() error + Unmarshal func([]byte) error + type SSHResponse struct + Exception *exception + Value SSHState + func (r *SSHResponse) ServerError() error + func (r *SSHResponse) Unmarshal(message []byte) error + type SSHState struct + Command string + HostPublicKey string + Ip string + Status string + type SimpleTaskResponse struct + Exception *exception + Value string + func (r *SimpleTaskResponse) ServerError() error + func (r *SimpleTaskResponse) Unmarshal(message []byte) error + type StateResponse struct + Exception *exception + Value AgentState + func (r *StateResponse) ServerError() error + func (r *StateResponse) Unmarshal(message []byte) error + type SyncDNSResponse struct + Exception *exception + Value string + func (r *SyncDNSResponse) ServerError() error + func (r *SyncDNSResponse) Unmarshal(message []byte) error + type TaskResponse struct + Exception *exception + Value interface{} + func (r *TaskResponse) ServerError() error + func (r *TaskResponse) TaskID() (string, error) + func (r *TaskResponse) TaskState() (string, error) + func (r *TaskResponse) Unmarshal(message []byte) error Other modules containing this package github.com/cloudfoundry/bosh-agent