github.com/bartle-stripe/trillian@v1.2.1/storage/memory/doc.go (about)

     1  // Copyright 2017 Google Inc. All Rights Reserved.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Package memory provides a simple in-process implementation of the tree- and
    16  // log-storage interfaces.
    17  //
    18  // This implementation is intended SOLELY for use in integration tests which
    19  // exercise properties of the higher levels of Trillian componened - e.g.
    20  // an integration test which ensures that the Trillian Log is able to correctly
    21  // handle a tree which contains duplicate leaves.
    22  //
    23  // The storage implementation is based on a BTree, which provides an ordered
    24  // key-value space which can be used to store arbitrary items, as well as
    25  // scan ranges of keys in order.
    26  //
    27  // The implementation does provide transaction-like semantics for the
    28  // LogStorage interface, although conflict is avoided by each writable
    29  // transaction exclusively locking the tree until it's committed or
    30  // rolled-back.
    31  //
    32  // Currently, the Admin Storage does not honor transactional semantics.
    33  package memory