github.com/abayer/test-infra@v0.0.5/prow/pod-utils/clone/types.go (about)

     1  /*
     2  Copyright 2018 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package clone
    18  
    19  import (
    20  	"k8s.io/test-infra/prow/kube"
    21  )
    22  
    23  // Record is a trace of what the desired
    24  // git state was, what steps we took to get there,
    25  // and whether or not we were successful.
    26  type Record struct {
    27  	Refs     *kube.Refs `json:"refs"`
    28  	Commands []Command  `json:"commands"`
    29  	Failed   bool       `json:"failed"`
    30  }
    31  
    32  // Command is a trace of a command executed
    33  // while achieving the desired git state.
    34  type Command struct {
    35  	Command string `json:"command"`
    36  	Output  string `json:"output,omitempty"`
    37  	Error   string `json:"error,omitempty"`
    38  }