Versions in this module Expand all Collapse all v2 v2.707.0 Dec 19, 2024 v2.706.0 Dec 17, 2024 v2.705.0 Dec 17, 2024 Changes in this version + const AdminGroup + const EphemeralUserPrefix + const RootUsername + const SshersGroup + const SudoersGroup + const VCAPUsername + func NetmaskToCIDR(netmask string, ipv6 bool) (string, error) + type AgentEnv struct + Settings AgentSettings + type AgentSettings struct + TmpFS bool + type Blobstore struct + Options map[string]interface{} + Type string + type BoshEnv struct + Agent AgentEnv + AuthorizedKeys []string + Blobstores []Blobstore + IPv6 IPv6 + JobDir JobDir + KeepRootPassword bool + Mbus MBus + NTP []string + Parallel *int + Password string + RemoveDevTools bool + RemoveStaticLibraries bool + RunDir RunDir + SwapSizeInMB *uint64 + type CertKeyPair struct + CA string + Certificate string + PrivateKey string + type DNSRecords struct + Records [][2]string + Version uint64 + type DefaultNetworkResolver interface + GetDefaultNetwork func() (Network, error) + type DiskAssociation struct + DiskCID string + Name string + type DiskAssociations []DiskAssociation + type DiskSettings struct + DeviceID string + FileSystemType disk.FileSystemType + HostDeviceID string + ID string + ISCSISettings ISCSISettings + Lun string + MountOptions []string + Partitioner string + Path string + VolumeID string + type Disks struct + Ephemeral interface{} + Persistent map[string]interface{} + RawEphemeral []DiskSettings + System string + type Env struct + Bosh BoshEnv + PersistentDiskFS disk.FileSystemType + PersistentDiskMountOptions []string + PersistentDiskPartitioner string + func (e Env) GetAuthorizedKeys() []string + func (e Env) GetKeepRootPassword() bool + func (e Env) GetParallel() *int + func (e Env) GetPassword() string + func (e Env) GetRemoveDevTools() bool + func (e Env) GetRemoveStaticLibraries() bool + func (e Env) GetSwapSizeInBytes() *uint64 + type IPv6 struct + Enable bool + type ISCSISettings struct + InitiatorName string + Password string + Target string + Username string + type JobDir struct + TmpFS bool + TmpFSSize string + type MBus struct + Cert CertKeyPair + URLs []string + type Network struct + Alias string + DNS []string + Default []string + Gateway string + IP string + Mac string + Netmask string + Preconfigured bool + Resolved bool + Routes Routes + Type NetworkType + UseDHCP bool + func (n Network) IsDHCP() bool + func (n Network) IsDefaultFor(category string) bool + func (n Network) IsVIP() bool + func (n Network) String() string + type NetworkType string + const NetworkTypeDynamic + const NetworkTypeVIP + type Networks map[string]Network + func (n Networks) DefaultIP() (ip string, found bool) + func (n Networks) DefaultNetworkFor(category string) (Network, bool) + func (n Networks) HasInterfaceAlias() bool + func (n Networks) IPs() (ips []string) + func (n Networks) IsPreconfigured() bool + func (n Networks) NetworkForMac(mac string) (Network, bool) + type PlatformSettingsGetter interface + GetAgentSettingsPath func(tmpfs bool) string + GetPersistentDiskSettingsPath func(tmpfs bool) string + GetUpdateSettingsPath func(tmpfs bool) string + SetupBoshSettingsDisk func() error + type Route struct + Destination string + Gateway string + Netmask string + type Routes []Route + type RunDir struct + TmpFSSize string + type Service interface + GetAllPersistentDiskSettings func() (map[string]DiskSettings, error) + GetPersistentDiskSettings func(diskCID string) (DiskSettings, error) + GetSettings func() Settings + InvalidateSettings func() error + LoadSettings func() error + PublicSSHKeyForUsername func(string) (string, error) + RemovePersistentDiskSettings func(string) error + SavePersistentDiskSettings func(DiskSettings) error + SaveUpdateSettings func(updateSettings UpdateSettings) error + func NewService(fs boshsys.FileSystem, settingsSource Source, platform PlatformSettingsGetter, ...) Service + type Settings struct + AgentID string + Blobstore Blobstore + Disks Disks + Env Env + Mbus string + NTP []string + Networks Networks + UpdateSettings UpdateSettings + VM VM + func (s Settings) EphemeralDiskSettings() DiskSettings + func (s Settings) GetBlobstore() Blobstore + func (s Settings) GetMbusCerts() CertKeyPair + func (s Settings) GetMbusURL() string + func (s Settings) GetNtpServers() []string + func (s Settings) PersistentDiskSettings(diskID string) (DiskSettings, bool) + func (s Settings) PersistentDiskSettingsFromHint(diskID string, diskHint interface{}) DiskSettings + func (s Settings) RawEphemeralDiskSettings() (devices []DiskSettings) + func (s Settings) TmpFSEnabled() bool + type Source interface + PublicSSHKeyForUsername func(string) (string, error) + Settings func() (Settings, error) + type UpdateSettings struct + Blobstores []Blobstore + DiskAssociations DiskAssociations + Mbus MBus + TrustedCerts string + func (updateSettings *UpdateSettings) MergeSettings(newSettings UpdateSettings) bool + type VM struct + Name string Other modules containing this package github.com/cloudfoundry/bosh-agent