Documentation
¶
Index ¶
- func AppendToAFile() types.Test
- func AppendToExistingFile() types.Test
- func AppendToNonexistentFile() types.Test
- func ApplyDefaultDirectoryPermissions() types.Test
- func ApplyDefaultFilePermissions() types.Test
- func CheckOrdering() types.Test
- func CreateDeepHardLinkToFile() types.Test
- func CreateDirectoryOnRoot() types.Test
- func CreateEmptyDropinsUnit() types.Test
- func CreateFileFromCompressedDataURL() types.Test
- func CreateFileFromRemoteContentsHTTP() types.Test
- func CreateFileFromRemoteContentsHTTPCompressed() types.Test
- func CreateFileFromRemoteContentsHTTPUsingHeaders() types.Test
- func CreateFileFromRemoteContentsHTTPUsingHeadersWithRedirect() types.Test
- func CreateFileFromRemoteContentsHTTPUsingOverwrittenHeaders() types.Test
- func CreateFileFromRemoteContentsTFTP() types.Test
- func CreateFileOnRoot() types.Test
- func CreateHardLinkOnRoot() types.Test
- func CreateHardLinkToSymlink() types.Test
- func CreateInstantiatedService() types.Test
- func CreateSymlinkOnRoot() types.Test
- func DirCreationOverNonemptyDir() types.Test
- func ForceDirCreation() types.Test
- func ForceDirCreationOverNonemptyDir() types.Test
- func ForceFileCreation() types.Test
- func ForceHardLinkCreation() types.Test
- func ForceLinkCreation() types.Test
- func MatchHardLinkOnRoot() types.Test
- func MatchSymlinkOnRoot() types.Test
- func TestMaskUnit() types.Test
- func TestUnmaskUnit() types.Test
- func UserGroupByID() types.Test
- func UserGroupByName() types.Test
- func ValidateFileHashFromDataURL() types.Test
- func ValidateFileHashFromDataURLForSHA256() types.Test
- func ValidateFileHashFromHTTPURL() types.Test
- func ValidateFileHashFromHTTPURLForSHA256() types.Test
- func ValidateFileHashFromHTTPURLUsingHeaders() types.Test
- func WriteOverBrokenSymlink() types.Test
- func WriteOverSymlink() types.Test
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToAFile ¶
func AppendToExistingFile ¶
func AppendToNonexistentFile ¶
func CheckOrdering ¶
func CreateDeepHardLinkToFile ¶ added in v2.4.0
CreateDeepHardLinkToFile checks if Ignition can create a hard link to a file that's deeper than the hard link. For more information: https://github.com/coreos/ignition/issues/800
func CreateDirectoryOnRoot ¶
func CreateEmptyDropinsUnit ¶ added in v2.4.0
CreateEmptyDropinsUnit writes an empty dropin to the disk.
func CreateFileFromCompressedDataURL ¶ added in v2.3.0
func CreateFileFromRemoteContentsHTTPCompressed ¶ added in v2.3.0
func CreateFileFromRemoteContentsHTTPUsingHeaders ¶ added in v2.3.0
func CreateFileFromRemoteContentsHTTPUsingHeadersWithRedirect ¶ added in v2.3.0
func CreateFileFromRemoteContentsHTTPUsingOverwrittenHeaders ¶ added in v2.3.0
func CreateFileOnRoot ¶
func CreateHardLinkOnRoot ¶
func CreateHardLinkToSymlink ¶
func CreateInstantiatedService ¶ added in v2.2.0
func CreateSymlinkOnRoot ¶
func ForceDirCreation ¶
func ForceFileCreation ¶
func ForceHardLinkCreation ¶
func ForceLinkCreation ¶
func MatchHardLinkOnRoot ¶
func MatchSymlinkOnRoot ¶
func TestMaskUnit ¶ added in v2.8.0
TestMaskUnit tests masking systemd units. In this case foo.service verified to be masked by checking it's symlinked to /dev/null. We'll also mask a non-existent bar.service.
func TestUnmaskUnit ¶ added in v2.8.0
TestUnmaskUnit tests unmasking systemd units. In the case that a systemd unit is masked already it will unmask it. In the case it is not masked it will do nothing. In the code below we have foo.service, which is masked in the input, and bar.service, which is not masked in the input. We test that foo.service is properly unmasked and that the unmasking of bar.service is skipped (because it wasn't masked to begin with) and that bar.service gets enabled.
func UserGroupByID ¶
func UserGroupByName ¶
func ValidateFileHashFromDataURLForSHA256 ¶ added in v2.3.0
func ValidateFileHashFromHTTPURLForSHA256 ¶ added in v2.3.0
func ValidateFileHashFromHTTPURLUsingHeaders ¶ added in v2.3.0
func WriteOverBrokenSymlink ¶
func WriteOverSymlink ¶
Types ¶
This section is empty.