Structures
- PolicyLogHandler
-
This struct implements a custom logging backend (aka
LogHandler
) for the Swift-log library. - SettingsValidator
-
Helper structure that performs settings validation
- SettingsValidationResponse
-
This structure defines the response to provide when validating settings.
- ValidationRequest
-
Describes the ValidationRequest object given to the policy inside of the
validate
guest function. - ValidationResponse
-
This structure defines the response to provide when validating an admission request.
Enumerations
- SettingsValidationError
-
Errors raised when policy's settings validation fails
Protocols
- Validatable
-
Protocol that must be implemented by Kubewarden policies in order to be used by
SettingsValidator
Functions
- protocolVersionCallback(payload:)
-
This function provides the implementation of the
protocol_version
waPC guest function. - acceptSettings()
-
This function accepts the Settings as valid
- rejectSettings(message:)
-
This function rejects the Settings as invalid
- make_validate_payload(request:settings:)
-
Helper function to be used while writing unit tests
- acceptRequest()
-
This function accepts the admission request as valid
- mutateRequest(mutatedObject:)
-
This function accepts the admission request as valid
- rejectRequest(message:code:)
-
This function rejects the admission request as invalid