files

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendToAFile

func AppendToAFile() types.Test

func AppendToExistingFile

func AppendToExistingFile() types.Test

func AppendToNonexistentFile

func AppendToNonexistentFile() types.Test

func ApplyDefaultDirectoryPermissions

func ApplyDefaultDirectoryPermissions() types.Test

func ApplyDefaultFilePermissions

func ApplyDefaultFilePermissions() types.Test

func CheckOrdering

func CheckOrdering() types.Test

func CreateDeepHardLinkToFile added in v2.4.0

func CreateDeepHardLinkToFile() types.Test

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 CreateDirectoryOnRoot() types.Test

func CreateEmptyDropinsUnit added in v2.4.0

func CreateEmptyDropinsUnit() types.Test

CreateEmptyDropinsUnit writes an empty dropin to the disk.

func CreateFileFromCompressedDataURL added in v2.3.0

func CreateFileFromCompressedDataURL() types.Test

func CreateFileFromRemoteContentsHTTP

func CreateFileFromRemoteContentsHTTP() types.Test

func CreateFileFromRemoteContentsHTTPCompressed added in v2.3.0

func CreateFileFromRemoteContentsHTTPCompressed() types.Test

func CreateFileFromRemoteContentsHTTPUsingHeaders added in v2.3.0

func CreateFileFromRemoteContentsHTTPUsingHeaders() types.Test

func CreateFileFromRemoteContentsHTTPUsingHeadersWithRedirect added in v2.3.0

func CreateFileFromRemoteContentsHTTPUsingHeadersWithRedirect() types.Test

func CreateFileFromRemoteContentsHTTPUsingOverwrittenHeaders added in v2.3.0

func CreateFileFromRemoteContentsHTTPUsingOverwrittenHeaders() types.Test

func CreateFileFromRemoteContentsTFTP

func CreateFileFromRemoteContentsTFTP() types.Test

func CreateFileOnRoot

func CreateFileOnRoot() types.Test

func CreateFileOnRootFromBase64 added in v2.13.0

func CreateFileOnRootFromBase64() types.Test

func CreateHardLinkOnRoot

func CreateHardLinkOnRoot() types.Test
func CreateHardLinkToSymlink() types.Test

func CreateInstantiatedService added in v2.2.0

func CreateInstantiatedService() types.Test

func CreateSymlinkOnRoot

func CreateSymlinkOnRoot() types.Test

func DirCreationOverNonemptyDir

func DirCreationOverNonemptyDir() types.Test

func ForceDirCreation

func ForceDirCreation() types.Test

func ForceDirCreationOverNonemptyDir

func ForceDirCreationOverNonemptyDir() types.Test

func ForceFileCreation

func ForceFileCreation() types.Test

func ForceHardLinkCreation

func ForceHardLinkCreation() types.Test

func ForceLinkCreation

func ForceLinkCreation() types.Test

func MatchHardLinkOnRoot

func MatchHardLinkOnRoot() types.Test

func MatchSymlinkOnRoot

func MatchSymlinkOnRoot() types.Test

func RemoveEnablementSymLinksforUnit added in v2.14.0

func RemoveEnablementSymLinksforUnit() types.Test

RemoveEnablementSymLinksforUnit checks if Ignition removes the enablement symlink for a given systemd unit marked as disabled. Also, verifies that the code doesn't error out when a non-existent unit marked as disabled.

func TestMaskUnit added in v2.8.0

func TestMaskUnit() types.Test

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 TestPresetsFileInAlphabeticalOrder added in v2.15.0

func TestPresetsFileInAlphabeticalOrder() types.Test

TestPresetsFileinAlphabeticalOrder checks if Ignition writes the systemd presets in alphabetical order by unit name into the 20-ignition.preset file.

func TestUnmaskUnit added in v2.8.0

func TestUnmaskUnit() types.Test

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 UserGroupByID() types.Test

func UserGroupByName

func UserGroupByName() types.Test

func ValidateFileHashFromDataURL

func ValidateFileHashFromDataURL() types.Test

func ValidateFileHashFromDataURLForSHA256 added in v2.3.0

func ValidateFileHashFromDataURLForSHA256() types.Test

func ValidateFileHashFromHTTPURL

func ValidateFileHashFromHTTPURL() types.Test

func ValidateFileHashFromHTTPURLForSHA256 added in v2.3.0

func ValidateFileHashFromHTTPURLForSHA256() types.Test

func ValidateFileHashFromHTTPURLUsingHeaders added in v2.3.0

func ValidateFileHashFromHTTPURLUsingHeaders() types.Test
func WriteOverBrokenSymlink() types.Test
func WriteOverSymlink() types.Test

Types

This section is empty.

Jump to

Keyboard shortcuts

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