Documentation ¶
Index ¶
- Constants
- Variables
- func Logr(l logr.Logger) lapi.Option
- func MakePropertiesModification(current, expected map[string]string) *lclient.GenericPropsModify
- func PerClusterNodeCache(timeout time.Duration) lapi.Option
- func PerClusterRateLimiter(r rate.Limit, b int) lapi.Option
- func UpdateLastApplyProperty(props map[string]string) map[string]string
- type Client
Constants ¶
View Source
const ( LastApplyProperty = linstor.NamespcAuxiliary + "/" + vars.ApplyAnnotation ManagedByProperty = linstor.NamespcAuxiliary + "/" + vars.ManagedByLabel )
Variables ¶
View Source
var (
NodeInterfaceProperty = linstor.NamespcAuxiliary + "/" + vars.NodeInterfaceAnnotation
)
Functions ¶
func MakePropertiesModification ¶
func MakePropertiesModification(current, expected map[string]string) *lclient.GenericPropsModify
MakePropertiesModification returns the modification that need to be applied to update the current properties.
func PerClusterNodeCache ¶ added in v2.5.1
PerClusterNodeCache creates a node cache for each distinct cluster.
Client(s) pointing to the same URL will share a cache.
func PerClusterRateLimiter ¶ added in v2.5.1
PerClusterRateLimiter creates a rate limiter for each distinct cluster.
Client(s) pointing to the same URL will share a rate limiter.
Types ¶
type Client ¶
Client is a LINSTOR client with convenience functions.
func NewClientForCluster ¶
func NewClientForCluster(ctx context.Context, cl client.Client, namespace, clusterName, clientSecretName string, caRef *piraeusv1.CAReference, externalCluster *piraeusv1.LinstorExternalControllerRef, options ...lapi.Option) (*Client, error)
NewClientForCluster returns a LINSTOR client for a LINSTOR Controller managed by the operator.
Click to show internal directories.
Click to hide internal directories.