agentclient

package
v0.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2017 License: Apache-2.0 Imports: 5 Imported by: 533

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetStateRetryable

func NewGetStateRetryable(agentClient AgentClient) boshretry.Retryable

func NewPingRetryable

func NewPingRetryable(agentClient AgentClient) boshretry.Retryable

Types

type AgentClient

type AgentClient interface {
	Ping() (string, error)
	Stop() error
	Apply(applyspec.ApplySpec) error
	Start() error
	GetState() (AgentState, error)
	MountDisk(string) error
	UnmountDisk(string) error
	ListDisk() ([]string, error)
	MigrateDisk() error
	CompilePackage(packageSource BlobRef, compiledPackageDependencies []BlobRef) (compiledPackageRef BlobRef, err error)
	DeleteARPEntries(ips []string) error
	SyncDNS(blobID, sha1 string, version uint64) (string, error)
	UpdateSettings(settings.UpdateSettings) error
	RunScript(scriptName string, options map[string]interface{}) error
	SSH(cmd string, params action.SSHParams) error
}

type AgentState

type AgentState struct {
	JobState     string
	NetworkSpecs map[string]NetworkSpec
}

type BlobRef

type BlobRef struct {
	Name        string
	Version     string
	BlobstoreID string
	SHA1        string
}

type NetworkSpec

type NetworkSpec struct {
	IP string `json:"ip"`
}

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL