Validate validates if BoltConfig is valid
()
| 83 | |
| 84 | // Validate validates if BoltConfig is valid |
| 85 | func (bc *BoltConfig) Validate() error { |
| 86 | switch bc.ContentSharingPolicy { |
| 87 | case SharingPolicyShared, SharingPolicyIsolated: |
| 88 | return nil |
| 89 | default: |
| 90 | return fmt.Errorf("unknown policy: %s: %w", bc.ContentSharingPolicy, errdefs.ErrInvalidArgument) |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | func init() { |
| 95 | registry.Register(&plugin.Registration{ |
no outgoing calls