github.com/alloyzeus/go-azfl@v0.0.0-20231220071816-9740126a2d07/azcore/entity_deletion.go (about)

     1  package azcore
     2  
     3  // EntityDeletionInfo provides information about the deletion of an entity
     4  // instance.
     5  type EntityDeletionInfo interface {
     6  	// Deleted returns true when the instance is positively deleted.
     7  	Deleted() bool
     8  }
     9  
    10  // EntityDeletionInfoBase is a base implementation of EntityDeletionInfo with
    11  // all attributes are public.
    12  type EntityDeletionInfoBase struct {
    13  	Deleted_ bool
    14  }
    15  
    16  // Deleted conforms EntityDeletionInfo interface.
    17  func (deletionInfo EntityDeletionInfoBase) Deleted() bool {
    18  	return deletionInfo.Deleted_
    19  }