Documentation ¶
Index ¶
Constants ¶
View Source
const ( RootUsername = "root" VCAPUsername = "vcap" AdminGroup = "admin" EphemeralUserPrefix = "bosh_" )
View Source
const ( BlobstoreTypeDummy = "dummy" BlobstoreTypeLocal = "local" )
Variables ¶
This section is empty.
Functions ¶
func NewServiceProvider ¶
func NewServiceProvider() concreteServiceProvider
Types ¶
type DefaultNetworkDelegate ¶
type DiskSettings ¶
type Disks ¶
type Disks struct { // e.g "/dev/sda", "1" System string `json:"system"` // e.g "/dev/sdb", "2" Ephemeral string `json:"ephemeral"` // Older CPIs returned disk settings as strings // e.g {"disk-3845-43758-7243-38754" => "/dev/sdc"} // {"disk-3845-43758-7243-38754" => "3"} // Newer CPIs will populate it in a hash: // e.g {"disk-3845-43758-7243-38754" => {"path" => "/dev/sdc"}} // {"disk-3845-43758-7243-38754" => {"volume_id" => "3"}} Persistent map[string]interface{} `json:"persistent"` }
type Network ¶
type Networks ¶
func (Networks) DefaultNetworkFor ¶
type Service ¶
type Service interface { LoadSettings() error // GetSettings does not return error // because without settings Agent cannot start. GetSettings() Settings InvalidateSettings() error }
func NewService ¶
func NewService( fs boshsys.FileSystem, settingsPath string, settingsFetcher Fetcher, defaultNetworkDelegate DefaultNetworkDelegate, logger boshlog.Logger, ) (service Service)
type ServiceProvider ¶
type ServiceProvider interface { NewService( boshsys.FileSystem, string, Fetcher, DefaultNetworkDelegate, boshlog.Logger, ) Service }
type Settings ¶
type Settings struct { AgentID string `json:"agent_id"` Blobstore Blobstore `json:"blobstore"` Disks Disks `json:"disks"` Env Env `json:"env"` Networks Networks `json:"networks"` Ntp []string `json:"ntp"` Mbus string `json:"mbus"` VM VM `json:"vm"` }
func (Settings) EphemeralDiskSettings ¶
func (s Settings) EphemeralDiskSettings() DiskSettings
func (Settings) PersistentDiskSettings ¶
func (s Settings) PersistentDiskSettings(diskID string) (DiskSettings, bool)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.