Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API allows controller machines to claim responsibility for; or to wait for no other machine to have responsibility for; administration for some model.
func NewAPI ¶
NewAPI returns a new API client for the Singular facade. It exposes methods for claiming and observing administration responsibility for the apiCaller's model, on behalf of the supplied controller machine.
func (*API) Claim ¶
Claim attempts to claim responsibility for model administration for the supplied duration. If the claim is denied, it will return lease.ErrClaimDenied.
Click to show internal directories.
Click to hide internal directories.