Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides the API for working with controller nodes.
func NewService ¶
NewService returns a new service reference wrapping the input state.
func (*Service) CurateNodes ¶
CurateNodes modifies the known control plane by adding and removing controller node records according to the input slices.
func (*Service) IsKnownDatabaseNamespace ¶
IsKnownDatabaseNamespace reports if the namespace is known to the controller. If the namespace is not valid an error satisfying errors.NotValid is returned.
type State ¶
type State interface { CurateNodes(context.Context, []string, []string) error UpdateDqliteNode(context.Context, string, uint64, string) error SelectDatabaseNamespace(context.Context, string) (string, error) }
State describes retrieval and persistence methods for controller node concerns.
Click to show internal directories.
Click to hide internal directories.