agentclient

package
v2.706.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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
	Drain(string) (int64, error)
	Apply(applyspec.ApplySpec) error
	Start() error
	GetState() (AgentState, error)
	AddPersistentDisk(string, interface{}) error
	RemovePersistentDisk(string) 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)
	RunScript(scriptName string, options map[string]interface{}) error
	SetUpSSH(username string, publicKey string) (SSHResult, error)
	CleanUpSSH(username string) (SSHResult, error)
	BundleLogs(owningUser string, logType string, filters []string) (BundleLogsResult, error)
	RemoveFile(path string) 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 BundleLogsResult

type BundleLogsResult struct {
	LogsTarPath  string
	SHA512Digest string
}

type NetworkSpec

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

type SSHResult

type SSHResult struct {
	Command       string
	Status        string
	Ip            string
	HostPublicKey string
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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