Documentation
¶
Overview ¶
Package nodeshare converts how a node is handed out to groups between the admin API and the store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Choice ¶
func Choice(m *adminv1.NodeSharing) (store.NodeShareChoice, error)
Choice reads the share of a request that makes a node: unset or UNSPECIFIED is the panel's own choice. INVALID_ARGUMENT for a mode with the wrong groups (see Valid).
func Valid ¶
func Valid(mode adminv1.NodeShareMode, groupIDs []string) (store.NodeShareChoice, error)
Valid is the store's choice for an explicit mode: ALL and NONE name no groups, LISTED names at least one.
Types ¶
This section is empty.