MCPcopy
hub / github.com/lxc/incus / CheckExtension

Method CheckExtension

client/incus_server.go:74–80  ·  view source on GitHub ↗

CheckExtension checks if the server has the specified extension.

(extensionName string)

Source from the content-addressed store, hash-verified

72
73// CheckExtension checks if the server has the specified extension.
74func (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.
83func (r *ProtocolIncus) IsClustered() bool {

Calls 2

HasExtensionMethod · 0.95
ErrorfMethod · 0.80

Tested by

no test coverage detected