Documentation
¶
Index ¶
- func NewClientSpecValidator(opts ...Option) grpc.UnaryClientInterceptor
- func NewServerSpecValidator(opts ...Option) grpc.UnaryServerInterceptor
- type Option
- func WithDisableFieldLenCheck() Option
- func WithRequestValidation() Option
- func WithRequiresControllerCreateVolumeSecrets() Option
- func WithRequiresControllerDeleteVolumeSecrets() Option
- func WithRequiresControllerPublishVolumeSecrets() Option
- func WithRequiresControllerUnpublishVolumeSecrets() Option
- func WithRequiresNodePublishVolumeSecrets() Option
- func WithRequiresNodeStageVolumeSecrets() Option
- func WithRequiresPublishContext() Option
- func WithRequiresStagingTargetPath() Option
- func WithRequiresVolumeContext() Option
- func WithResponseValidation() Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientSpecValidator ¶
func NewClientSpecValidator( opts ...Option) grpc.UnaryClientInterceptor
NewClientSpecValidator provides a UnaryClientInterceptor that validates client request and response data against the CSI specification.
func NewServerSpecValidator ¶
func NewServerSpecValidator( opts ...Option) grpc.UnaryServerInterceptor
NewServerSpecValidator returns a new UnaryServerInterceptor that validates server request and response data against the CSI specification.
Types ¶
type Option ¶
type Option func(*opts)
Option configures the spec validator interceptor.
func WithDisableFieldLenCheck ¶ added in v1.2.3
func WithDisableFieldLenCheck() Option
WithDisableFieldLenCheck is a Option that indicates that the length of fields should not be validated
func WithRequestValidation ¶
func WithRequestValidation() Option
WithRequestValidation is a Option that enables request validation.
func WithRequiresControllerCreateVolumeSecrets ¶ added in v0.4.0
func WithRequiresControllerCreateVolumeSecrets() Option
WithRequiresControllerCreateVolumeSecrets is a Option that indicates the eponymous requests must contain non-empty secrets data.
func WithRequiresControllerDeleteVolumeSecrets ¶ added in v0.4.0
func WithRequiresControllerDeleteVolumeSecrets() Option
WithRequiresControllerDeleteVolumeSecrets is a Option that indicates the eponymous requests must contain non-empty credentials data.
func WithRequiresControllerPublishVolumeSecrets ¶ added in v0.4.0
func WithRequiresControllerPublishVolumeSecrets() Option
WithRequiresControllerPublishVolumeSecrets is a Option that indicates the eponymous requests must contain non-empty credentials data.
func WithRequiresControllerUnpublishVolumeSecrets ¶ added in v0.4.0
func WithRequiresControllerUnpublishVolumeSecrets() Option
WithRequiresControllerUnpublishVolumeSecrets is a Option that indicates the eponymous requests must contain non-empty credentials data.
func WithRequiresNodePublishVolumeSecrets ¶ added in v0.4.0
func WithRequiresNodePublishVolumeSecrets() Option
WithRequiresNodePublishVolumeSecrets is a Option that indicates the eponymous requests must contain non-empty credentials data.
func WithRequiresNodeStageVolumeSecrets ¶ added in v0.4.0
func WithRequiresNodeStageVolumeSecrets() Option
WithRequiresNodeStageVolumeSecrets is a Option that indicates the eponymous requests must contain non-empty credentials data.
func WithRequiresPublishContext ¶ added in v1.0.0
func WithRequiresPublishContext() Option
WithRequiresPublishContext is a Option that indicates ControllerPublishVolume responses, NodePublishVolume requests, and NodeStageVolume requests must contain non-empty publish volume context data.
func WithRequiresStagingTargetPath ¶ added in v0.4.0
func WithRequiresStagingTargetPath() Option
WithRequiresStagingTargetPath is a Option that indicates NodePublishVolume requests must have non-empty StagingTargetPath fields.
func WithRequiresVolumeContext ¶ added in v1.2.3
func WithRequiresVolumeContext() Option
WithRequiresVolumeContext is a Option that indicates ControllerPublishVolume requests, ValidateVolumeCapabilities requests, NodeStageVolume requests, and NodePublishVolume requests must contain non-empty publish volume context data.
func WithResponseValidation ¶
func WithResponseValidation() Option
WithResponseValidation is a Option that enables response validation.