-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-52121 Add ServerlessManager interface support
Implements the service.ServerlessManager interface Change-Id: If76bd4a5f1a1a37c43ad2bd1faf86512a9cc1d26
- Loading branch information
Showing
3 changed files
with
70 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// @copyright 2021-Present Couchbase, Inc. | ||
// | ||
// Use of this software is governed by the Business Source License included | ||
// in the file licenses/BSL-Couchbase.txt. As of the Change Date specified | ||
// in that file, in accordance with the Business Source License, use of this | ||
// software will be governed by the Apache License, Version 2.0, included in | ||
// the file licenses/APL2.txt. | ||
package indexer | ||
|
||
import ( | ||
"github.com/couchbase/cbauth/service" | ||
) | ||
|
||
//////////////////////////////////////////////////////////////////////////////////////////////////// | ||
// ServerlessManager class | ||
//////////////////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
// ServerlessManager provides the implementation of the ns_server RPC interface | ||
// ServerlessManager(defined in cbauth/service/interface.go). | ||
type ServerlessManager struct { | ||
httpAddr string | ||
} | ||
|
||
// NewServerlessManager is the constructor for the ServerlessManager class. | ||
// httpAddr gives the host:port of the local node for Index Service HTTP calls. | ||
func NewServerlessManager(httpAddr string) *ServerlessManager { | ||
m := &ServerlessManager{ | ||
httpAddr: httpAddr, | ||
} | ||
return m | ||
} | ||
|
||
//////////////////////////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// service.ServerlessManager interface implementation | ||
// Interface defined in cbauth/service/interface.go | ||
// | ||
//////////////////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
func (m *ServerlessManager) GetDefragmentedUtilization() (*service.DefragmentedUtilizationInfo, error) { | ||
return nil, nil | ||
|
||
} |