github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/cmn/ver_const.go (about)

     1  // Package cmn provides common constants, types, and utilities for AIS clients
     2  // and AIStore.
     3  /*
     4   * Copyright (c) 2022-2024, NVIDIA CORPORATION. All rights reserved.
     5   */
     6  package cmn
     7  
     8  import "github.com/NVIDIA/aistore/cmn/jsp"
     9  
    10  const GitHubHome = "https://github.com/NVIDIA/aistore"
    11  
    12  // ========================== IMPORTANT NOTE ==============================
    13  //
    14  // - (major.minor) version indicates the current version of AIS software
    15  //   and is updated manually prior to each release;
    16  //   making a build with an updated version is the precondition to
    17  //   creating the corresponding git tag
    18  //
    19  // - MetaVer* constants, on the other hand, specify all current on-disk
    20  //   formatting versions (meta-versions) with the intent to support backward
    21  //   compatibility in the future
    22  //
    23  // - Most of the enumerated types below utilize `jsp` package to serialize
    24  //   and format their (versioned) instances. In its turn, `jsp` itself
    25  //   has a certain meta-version that corresponds to the specific way
    26  //   `jsp` formats its *signature* and other implementation details.
    27  
    28  const (
    29  	VersionAIStore = "3.23.rc4"
    30  	VersionCLI     = "1.12"
    31  	VersionLoader  = "1.10"
    32  	VersionAuthN   = "1.0"
    33  )
    34  
    35  const (
    36  	MetaverSmap  = 2 // Smap (cluster map) formatting version a.k.a. meta-version (see core/meta/jsp.go)
    37  	MetaverBMD   = 2 // BMD (bucket metadata) --/--
    38  	MetaverRMD   = 1 // Rebalance MD (jsp)
    39  	MetaverVMD   = 2 // Volume MD (jsp)
    40  	MetaverEtlMD = 1 // ETL MD (jsp)
    41  
    42  	MetaverLOM = 1 // LOM
    43  
    44  	MetaverConfig      = 4 // Global Configuration (jsp)
    45  	MetaverAuthNConfig = 1 // Authn config (jsp) // ditto
    46  	MetaverAuthTokens  = 1 // Authn tokens (jsp) // ditto
    47  
    48  	MetaverMetasync = 1 // metasync over network formatting version (jsp)
    49  
    50  	MetaverJSP = jsp.Metaver // `jsp` own encoding version
    51  )