Documentation ¶
Index ¶
- func WithAcquire() options.AcquireOption
- func WithOperationCancelAfter(operationCancelAfter time.Duration) options.AcquireOption
- func WithOperationTimeout(operationTimeout time.Duration) options.AcquireOption
- func WithReport() options.AcquireOption
- type AcquireError
- type Client
- type HierarchicalDrrSettings
- type Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAcquire ¶ added in v3.11.0
func WithAcquire() options.AcquireOption
func WithOperationCancelAfter ¶ added in v3.11.0
func WithOperationCancelAfter(operationCancelAfter time.Duration) options.AcquireOption
func WithOperationTimeout ¶ added in v3.11.0
func WithOperationTimeout(operationTimeout time.Duration) options.AcquireOption
func WithReport ¶ added in v3.11.0
func WithReport() options.AcquireOption
Types ¶
type AcquireError ¶ added in v3.11.0
type Client ¶ added in v3.7.0
type Client interface { closer.Closer CreateResource( ctx context.Context, coordinationNodePath string, resource Resource, ) (err error) AlterResource( ctx context.Context, coordinationNodePath string, resource Resource, ) (err error) DropResource( ctx context.Context, coordinationNodePath string, resourcePath string, ) (err error) ListResource( ctx context.Context, coordinationNodePath string, resourcePath string, recursive bool, ) (_ []string, err error) DescribeResource( ctx context.Context, coordinationNodePath string, resourcePath string, ) (_ *Resource, err error) AcquireResource( ctx context.Context, coordinationNodePath string, resourcePath string, amount uint64, opts ...options.AcquireOption, ) (err error) }
type HierarchicalDrrSettings ¶
type Resource ¶
type Resource struct { ResourcePath string HierarchicalDrr HierarchicalDrrSettings }
Click to show internal directories.
Click to hide internal directories.