github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/pkg/model/v1beta1/buildversion.go (about)

     1  package v1beta1
     2  
     3  import (
     4  	"time"
     5  )
     6  
     7  // BuildVersionInfo is the version of a Bacalhau binary (either client or server)
     8  type BuildVersionInfo struct {
     9  	// Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.0",
    10  	// GitCommit:"4ce5a8954017644c5420bae81d72b09b735c21f0", GitTreeState:"clean",
    11  	// BuildDate:"2022-05-03T13:46:05Z", GoVersion:"go1.18.1", Compiler:"gc", Platform:"darwin/arm64"}
    12  
    13  	Major      string    `json:"major,omitempty" example:"0"`
    14  	Minor      string    `json:"minor,omitempty" example:"3"`
    15  	GitVersion string    `json:"gitversion" example:"v0.3.12"`
    16  	GitCommit  string    `json:"gitcommit" example:"d612b63108f2b5ce1ab2b9e02444eb1dac1d922d"`
    17  	BuildDate  time.Time `json:"builddate" example:"2022-11-16T14:03:31Z"`
    18  	GOOS       string    `json:"goos" example:"linux"`
    19  	GOARCH     string    `json:"goarch" example:"amd64"`
    20  }