github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/cmd/aisnode/main.go (about)

     1  // Package main for the AIS node executable.
     2  /*
     3   * Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
     4   */
     5  package main
     6  
     7  import (
     8  	"os"
     9  
    10  	"github.com/NVIDIA/aistore/ais"
    11  	"github.com/NVIDIA/aistore/cmn"
    12  	"github.com/NVIDIA/aistore/cmn/debug"
    13  	"github.com/NVIDIA/aistore/cmn/nlog"
    14  )
    15  
    16  var (
    17  	build     string
    18  	buildtime string
    19  )
    20  
    21  func main() {
    22  	debug.Assert(build != "", "missing build")
    23  	ecode := ais.Run(cmn.VersionAIStore+"."+build, buildtime)
    24  	nlog.Flush(nlog.ActExit)
    25  	os.Exit(ecode)
    26  }