Documentation ¶
Overview ¶
Package agentconfig stores and retrieves configuration settings for the OS Config agent.
Index ¶
- Constants
- func AptRepoDir() string
- func AptRepoFilePath() string
- func AptRepoFormat() string
- func CacheDir() string
- func Capabilities() []string
- func Debug() bool
- func DisableInventoryWrite() bool
- func DisableLocalLogging() bool
- func FreeOSMemory() bool
- func GooGetRepoDir() string
- func GooGetRepoFilePath() string
- func GooGetRepoFormat() string
- func GuestPoliciesEnabled() bool
- func ID() string
- func IDToken() (string, error)
- func Instance() string
- func LogFeatures(ctx context.Context)
- func Name() string
- func NumericProjectID() int64
- func OSInventoryEnabled() bool
- func OldRestartFile() string
- func OldTaskStateFile() string
- func ProjectID() string
- func RestartFile() string
- func SerialLogPort() string
- func SetVersion(v string)
- func Stdout() bool
- func SvcEndpoint() string
- func SvcPollInterval() time.Duration
- func TaskNotificationEnabled() bool
- func TaskStateFile() string
- func UserAgent() string
- func Version() string
- func WatchConfig(ctx context.Context) error
- func YumRepoDir() string
- func YumRepoFilePath() string
- func YumRepoFormat() string
- func Zone() string
- func ZypperRepoDir() string
- func ZypperRepoFilePath() string
- func ZypperRepoFormat() string
Constants ¶
const ( // InstanceMetadata is the compute metadata URL. InstanceMetadata = "http://metadata.google.internal/computeMetadata/v1/instance" // IdentityTokenPath is the instance identity token path. IdentityTokenPath = "instance/service-accounts/default/identity?audience=osconfig.googleapis.com&format=full" // ReportURL is the guest attributes endpoint. ReportURL = InstanceMetadata + "/guest-attributes" )
Variables ¶
This section is empty.
Functions ¶
func AptRepoFilePath ¶
func AptRepoFilePath() string
AptRepoFilePath is the location where the apt repo file will be created.
func DisableInventoryWrite ¶
func DisableInventoryWrite() bool
DisableInventoryWrite returns true if the DisableInventoryWrite setting is set.
func FreeOSMemory ¶
func FreeOSMemory() bool
FreeOSMemory returns true if the FreeOSMemory setting is set.
func GooGetRepoDir ¶
func GooGetRepoDir() string
GooGetRepoDir is the location of the googet repo files.
func GooGetRepoFilePath ¶
func GooGetRepoFilePath() string
GooGetRepoFilePath is the location where the googet repo file will be created.
func GooGetRepoFormat ¶
func GooGetRepoFormat() string
GooGetRepoFormat is the format of the googet repo files.
func GuestPoliciesEnabled ¶
func GuestPoliciesEnabled() bool
GuestPoliciesEnabled indicates whether GuestPolicies should be enabled.
func LogFeatures ¶
LogFeatures logs the osconfig feature status.
func NumericProjectID ¶
func NumericProjectID() int64
NumericProjectID is the numeric project ID of the instance.
func OSInventoryEnabled ¶
func OSInventoryEnabled() bool
OSInventoryEnabled indicates whether OSInventory should be enabled.
func OldRestartFile ¶
func OldRestartFile() string
OldRestartFile is the location of the restart required file.
func OldTaskStateFile ¶
func OldTaskStateFile() string
OldTaskStateFile is the location of the task state file.
func RestartFile ¶
func RestartFile() string
RestartFile is the location of the restart required file.
func SvcPollInterval ¶
SvcPollInterval returns the frequency to poll the service.
func TaskNotificationEnabled ¶
func TaskNotificationEnabled() bool
TaskNotificationEnabled indicates whether TaskNotification should be enabled.
func TaskStateFile ¶
func TaskStateFile() string
TaskStateFile is the location of the task state file.
func WatchConfig ¶
WatchConfig looks for changes in metadata keys. Upon receiving successful response, it create a new agent config.
func YumRepoFilePath ¶
func YumRepoFilePath() string
YumRepoFilePath is the location where the yum repo file will be created.
func ZypperRepoDir ¶
func ZypperRepoDir() string
ZypperRepoDir is the location of the zypper repo files.
func ZypperRepoFilePath ¶
func ZypperRepoFilePath() string
ZypperRepoFilePath is the location where the zypper repo file will be created.
func ZypperRepoFormat ¶
func ZypperRepoFormat() string
ZypperRepoFormat is the format of the zypper repo files.
Types ¶
This section is empty.