behaviors/

directory
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT

Directories

Path Synopsis
all
Package all registers every behavior.
Package all registers every behavior.
gen
Package gen imports the generated code of every behavior with an API or a CLI: its commands and its routes.
Package gen imports the generated code of every behavior with an API or a CLI: its commands and its routes.
Package certificate is the certificate behavior: the certificate authorities that the host trusts.
Package certificate is the certificate behavior: the certificate authorities that the host trusts.
gen
mocks
Package mocks holds the generated double of the certificate provider, for the methods' tests.
Package mocks holds the generated double of the certificate provider, for the methods' tests.
Package command is the command behavior: run a program, or a command line through /bin/sh -c, on the host.
Package command is the command behavior: run a program, or a command line through /bin/sh -c, on the host.
gen
mocks
Package mocks holds the generated double of the command provider, for the methods' tests.
Package mocks holds the generated double of the command provider, for the methods' tests.
container
docker
Package docker is the docker behavior: the Docker containers of the host.
Package docker is the docker behavior: the Docker containers of the host.
docker/mocks
Package mocks holds the generated double of the docker provider, for the methods' tests.
Package mocks holds the generated double of the docker provider, for the methods' tests.
image
Package image is the image behavior: the Docker images of the host.
Package image is the image behavior: the Docker images of the host.
image/mocks
Package mocks holds the generated double of the image provider, for the methods' tests.
Package mocks holds the generated double of the image provider, for the methods' tests.
Package disk is the disk behavior: the usage of the host's local filesystems.
Package disk is the disk behavior: the usage of the host's local filesystems.
gen
mocks
Package mocks holds the generated double of the disk provider, for the methods' tests.
Package mocks holds the generated double of the disk provider, for the methods' tests.
Package file is the file behavior: it deploys the objects of the object store to a host, through the object and managedfile building blocks, and reads how a deployed file is against what osapi wrote.
Package file is the file behavior: it deploys the objects of the object store to a host, through the object and managedfile building blocks, and reads how a deployed file is against what osapi wrote.
gen
mocks
Package mocks holds the generated double of the file provider, for the methods' tests.
Package mocks holds the generated double of the file provider, for the methods' tests.
Package group is the group behavior: the groups of the host.
Package group is the group behavior: the groups of the host.
gen
mocks
Package mocks holds the generated double of the group provider, for the methods' tests.
Package mocks holds the generated double of the group provider, for the methods' tests.
Package hostname is the hostname behavior: the name of the host, and on Debian, setting it.
Package hostname is the hostname behavior: the name of the host, and on Debian, setting it.
gen
mocks
Package mocks holds the generated double of the hostname provider, for the methods' tests.
Package mocks holds the generated double of the hostname provider, for the methods' tests.
Package load is the load behavior: the load averages of the host.
Package load is the load behavior: the load averages of the host.
gen
mocks
Package mocks holds the generated double of the load provider, for the methods' tests.
Package mocks holds the generated double of the load provider, for the methods' tests.
log
entry
Package entry is the log behavior: the entries of the systemd journal of the host, read with journalctl on each Linux host.
Package entry is the log behavior: the entries of the systemd journal of the host, read with journalctl on each Linux host.
entry/mocks
Package mocks holds the generated double of the entry provider, for the methods' tests.
Package mocks holds the generated double of the entry provider, for the methods' tests.
source
Package source is the source behavior: the syslog identifiers that wrote to the systemd journal of the host, read with journalctl on each Linux host.
Package source is the source behavior: the syslog identifiers that wrote to the systemd journal of the host, read with journalctl on each Linux host.
source/mocks
Package mocks holds the generated double of the source provider, for the methods' tests.
Package mocks holds the generated double of the source provider, for the methods' tests.
Package managedfile is the managedfile behavior: files osapi writes on a host and keeps a record of, so it can tell its own files from the rest, leave a file alone when it already holds what was asked, and stop managing one.
Package managedfile is the managedfile behavior: files osapi writes on a host and keeps a record of, so it can tell its own files from the rest, leave a file alone when it already holds what was asked, and stop managing one.
mocks
Package mocks provides mock implementations for testing.
Package mocks provides mock implementations for testing.
Package memory is the memory behavior: the memory of the host, in bytes.
Package memory is the memory behavior: the memory of the host, in bytes.
gen
mocks
Package mocks holds the generated double of the memory provider, for the methods' tests.
Package mocks holds the generated double of the memory provider, for the methods' tests.
Package netplan is the netplan behavior: the netplan files that osapi writes, validated and applied.
Package netplan is the netplan behavior: the netplan files that osapi writes, validated and applied.
mocks
Package mocks holds the generated double of the netplan provider, for the methods' tests.
Package mocks holds the generated double of the netplan provider, for the methods' tests.
network
connectivity
Package connectivity is the connectivity behavior: whether the host reaches an address, by ICMP ping.
Package connectivity is the connectivity behavior: whether the host reaches an address, by ICMP ping.
connectivity/mocks
Package mocks holds the generated double of the connectivity provider, for the methods' tests.
Package mocks holds the generated double of the connectivity provider, for the methods' tests.
dns
Package dns is the dns behavior: the DNS resolvers of each interface of the host.
Package dns is the dns behavior: the DNS resolvers of each interface of the host.
dns/mocks
Package mocks holds the generated double of the dns provider, for the methods' tests.
Package mocks holds the generated double of the dns provider, for the methods' tests.
iface
Package iface is the interface behavior: the network interfaces of the host.
Package iface is the interface behavior: the network interfaces of the host.
iface/mocks
Package mocks holds the generated double of the interface provider, for the methods' tests.
Package mocks holds the generated double of the interface provider, for the methods' tests.
route
Package route is the route behavior: the routes of an interface.
Package route is the route behavior: the routes of an interface.
route/mocks
Package mocks holds the generated double of the route provider, for the methods' tests.
Package mocks holds the generated double of the route provider, for the methods' tests.
ntp
Package ntp is the ntp behavior: the NTP servers that chrony uses, and its sync status.
Package ntp is the ntp behavior: the NTP servers that chrony uses, and its sync status.
gen
mocks
Package mocks holds the generated double of the ntp provider, for the methods' tests.
Package mocks holds the generated double of the ntp provider, for the methods' tests.
Package object is the object behavior: the objects of the Object Store of the fleet, which other behaviors read, such as the content of a file.
Package object is the object behavior: the objects of the Object Store of the fleet, which other behaviors read, such as the content of a file.
mocks
Package mocks holds the generated double of the object provider, for the methods' tests.
Package mocks holds the generated double of the object provider, for the methods' tests.
os
Package os is the os behavior: the operating system of the host, its distribution and version.
Package os is the os behavior: the operating system of the host, its distribution and version.
gen
mocks
Package mocks holds the generated double of the os provider, for the methods' tests.
Package mocks holds the generated double of the os provider, for the methods' tests.
Package packages is the package behavior: the packages installed on the host.
Package packages is the package behavior: the packages installed on the host.
gen
mocks
Package mocks holds the generated double of the package provider, for the methods' tests.
Package mocks holds the generated double of the package provider, for the methods' tests.
Package password is the password behavior: the password of a user, under the user.
Package password is the password behavior: the password of a user, under the user.
gen
mocks
Package mocks holds the generated double of the password provider, for the methods' tests.
Package mocks holds the generated double of the password provider, for the methods' tests.
Package power is the power behavior: reboot or shut down the host.
Package power is the power behavior: reboot or shut down the host.
gen
mocks
Package mocks holds the generated double of the power provider, for the methods' tests.
Package mocks holds the generated double of the power provider, for the methods' tests.
Package process is the process behavior: the processes of the host.
Package process is the process behavior: the processes of the host.
gen
mocks
Package mocks holds the generated double of the process provider, for the methods' tests.
Package mocks holds the generated double of the process provider, for the methods' tests.
Package schedule is the schedule behavior: the cron entries that osapi deploys.
Package schedule is the schedule behavior: the cron entries that osapi deploys.
gen
mocks
Package mocks holds the generated double of the group provider, for the methods' tests.
Package mocks holds the generated double of the group provider, for the methods' tests.
Package service is the service behavior: the services of the host, systemd on Linux and launchd on macOS.
Package service is the service behavior: the services of the host, systemd on Linux and launchd on macOS.
gen
mocks
Package mocks holds the generated double of the service provider, for the methods' tests.
Package mocks holds the generated double of the service provider, for the methods' tests.
Package sshkey is the sshkey behavior: the authorized SSH keys of a user.
Package sshkey is the sshkey behavior: the authorized SSH keys of a user.
gen
mocks
Package mocks holds the generated double of the sshkey provider, for the methods' tests.
Package mocks holds the generated double of the sshkey provider, for the methods' tests.
Package status is the status behavior: the status summary of a node.
Package status is the status behavior: the status summary of a node.
gen
mocks
Package mocks holds the generated double of the status provider, for the methods' tests.
Package mocks holds the generated double of the status provider, for the methods' tests.
Package sysctl is the sysctl behavior: kernel parameters osapi writes to /etc/sysctl.d and applies.
Package sysctl is the sysctl behavior: kernel parameters osapi writes to /etc/sysctl.d and applies.
gen
mocks
Package mocks provides mock implementations for testing.
Package mocks provides mock implementations for testing.
Package timezone is the timezone behavior: the timezone of the host.
Package timezone is the timezone behavior: the timezone of the host.
gen
mocks
Package mocks holds the generated double of the timezone provider, for the methods' tests.
Package mocks holds the generated double of the timezone provider, for the methods' tests.
Package updatepackages is the updates behavior: the updates that the package index has for the host.
Package updatepackages is the updates behavior: the updates that the package index has for the host.
gen
mocks
Package mocks holds the generated double of the updatepackages provider, for the methods' tests.
Package mocks holds the generated double of the updatepackages provider, for the methods' tests.
Package uptime is the uptime behavior: how long the host has run since it booted.
Package uptime is the uptime behavior: how long the host has run since it booted.
gen
mocks
Package mocks holds the generated double of the uptime provider, for the methods' tests.
Package mocks holds the generated double of the uptime provider, for the methods' tests.
Package user is the user behavior: the accounts of the host.
Package user is the user behavior: the accounts of the host.
gen
mocks
Package mocks holds the generated double of the user provider, for the methods' tests.
Package mocks holds the generated double of the user provider, for the methods' tests.

Jump to

Keyboard shortcuts

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