func (alloc *Allocator) Claim(ident string, cidr address.CIDR, isContainer, noErrorOnUnknown bool, hasBeenCancelled func() bool) error {
	resultChan := make(chan error)
	op := &claim{
		resultChan:       resultChan,
		ident:            ident,
		cidr:             cidr,
		isContainer:      isContainer,
		noErrorOnUnknown: noErrorOnUnknown,
		hasBeenCancelled: hasBeenCancelled,
	}
	alloc.doOperation(op, &alloc.pendingClaims)
	return <-resultChan
}
// Claim an address that we think we should own (Sync)
Claim an address that we think we should own (Sync)
// Claim an address that we think we should own ( Sync )
func (alloc *Allocator) Claim(ident string, cidr address.CIDR, isContainer, noErrorOnUnknown bool, hasBeenCancelled func() bool) error {
	resultChan := make(chan error)
	op := &claim{
		resultChan:       resultChan,
		ident:            ident,
		cidr:             cidr,
		isContainer:      isContainer,
		noErrorOnUnknown: noErrorOnUnknown,
		hasBeenCancelled: hasBeenCancelled,
	}
	alloc.doOperation(op, &alloc.pendingClaims)
	return <-resultChan
}
func ( alloc * Allocator ) Claim ( ident string , cidr address . CIDR , isContainer , noErrorOnUnknown bool , hasBeenCancelled func ( ) bool ) error { resultChan := make ( chan error ) op := & claim { resultChan : resultChan , ident : ident , cidr : cidr , isContainer : isContainer , noErrorOnUnknown : noErrorOnUnknown , hasBeenCancelled : hasBeenCancelled , } alloc . doOperation ( op , & alloc . pendingClaims ) return <- resultChan }
Claim an address that we think we should own (Sync)
Claim an address that we think we should own ( Sync )