github.com/chenbh/concourse/v6@v6.4.2/atc/debug_versions_db.go (about)

     1  package atc
     2  
     3  type DebugVersionsDB struct {
     4  	Jobs             []DebugJob
     5  	Resources        []DebugResource
     6  	ResourceVersions []DebugResourceVersion
     7  	BuildOutputs     []DebugBuildOutput
     8  	BuildInputs      []DebugBuildInput
     9  	BuildReruns      []DebugBuildRerun
    10  
    11  	// backwards-compatibility with pre-6.0 VersionsDB
    12  	LegacyJobIDs      map[string]int `json:"JobIDs,omitempty"`
    13  	LegacyResourceIDs map[string]int `json:"ResourceIDs,omitempty"`
    14  }
    15  
    16  type DebugResourceVersion struct {
    17  	VersionID  int
    18  	ResourceID int
    19  	CheckOrder int
    20  
    21  	// not present pre-6.0
    22  	ScopeID int
    23  }
    24  
    25  type DebugBuildOutput struct {
    26  	DebugResourceVersion
    27  	BuildID int
    28  	JobID   int
    29  }
    30  
    31  type DebugBuildInput struct {
    32  	DebugResourceVersion
    33  	BuildID   int
    34  	JobID     int
    35  	InputName string
    36  }
    37  
    38  type DebugBuildRerun struct {
    39  	BuildID int
    40  	JobID   int
    41  	RerunOf int
    42  }
    43  
    44  type DebugJob struct {
    45  	Name string
    46  	ID   int
    47  }
    48  
    49  type DebugResource struct {
    50  	Name    string
    51  	ID      int
    52  	ScopeID *int
    53  }