CheckExtension checks if the server has the specified extension.
(extensionName string)
| 72 | |
| 73 | // CheckExtension checks if the server has the specified extension. |
| 74 | func (r *ProtocolIncus) CheckExtension(extensionName string) error { |
| 75 | if !r.HasExtension(extensionName) { |
| 76 | return fmt.Errorf("The server is missing the required %q API extension", extensionName) |
| 77 | } |
| 78 | |
| 79 | return nil |
| 80 | } |
| 81 | |
| 82 | // IsClustered returns true if the server is part of an Incus cluster. |
| 83 | func (r *ProtocolIncus) IsClustered() bool { |
no test coverage detected