github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/clusterversion/cluster_version.proto (about)

     1  // Copyright 2017 The Cockroach Authors.
     2  //
     3  // Use of this software is governed by the Business Source License
     4  // included in the file licenses/BSL.txt.
     5  //
     6  // As of the Change Date specified in that file, in accordance with
     7  // the Business Source License, use of this software will be governed
     8  // by the Apache License, Version 2.0, included in the file
     9  // licenses/APL.txt.
    10  
    11  syntax = "proto3";
    12  package cockroach.base;
    13  option go_package = "clusterversion";
    14  
    15  import "roachpb/metadata.proto";
    16  import "gogoproto/gogo.proto";
    17  
    18  // ClusterVersion represents a cluster's "active version". It is returned by the
    19  // Version cluster setting. Its IsActive() method can be used to determine if a
    20  // particular migration is to be considered enabled or disabled.
    21  message ClusterVersion {
    22    option (gogoproto.goproto_stringer) = false;
    23  
    24    reserved 1;
    25    // The version of functionality in use in the cluster. This value must
    26    // monotonically increase.
    27    roachpb.Version active_version = 2 [(gogoproto.nullable) = false, (gogoproto.embed) = true];
    28  }