gopkg.in/openshift/source-to-image.v1@v1.2.0/pkg/scm/git/types.go (about)

     1  package git
     2  
     3  // CloneConfig specifies the options used when cloning the application source
     4  // code.
     5  type CloneConfig struct {
     6  	Recursive bool
     7  	Quiet     bool
     8  }
     9  
    10  // SourceInfo stores information about the source code
    11  type SourceInfo struct {
    12  	// Ref represents a commit SHA-1, valid Git branch name or a Git tag
    13  	// The output image will contain this information as 'io.openshift.build.commit.ref' label.
    14  	Ref string
    15  
    16  	// CommitID represents an arbitrary extended object reference in Git as SHA-1
    17  	// The output image will contain this information as 'io.openshift.build.commit.id' label.
    18  	CommitID string
    19  
    20  	// Date contains a date when the committer created the commit.
    21  	// The output image will contain this information as 'io.openshift.build.commit.date' label.
    22  	Date string
    23  
    24  	// AuthorName contains the name of the author
    25  	// The output image will contain this information (along with AuthorEmail) as 'io.openshift.build.commit.author' label.
    26  	AuthorName string
    27  
    28  	// AuthorEmail contains the e-mail of the author
    29  	// The output image will contain this information (along with AuthorName) as 'io.openshift.build.commit.author' lablel.
    30  	AuthorEmail string
    31  
    32  	// CommitterName contains the name of the committer
    33  	CommitterName string
    34  
    35  	// CommitterEmail contains the e-mail of the committer
    36  	CommitterEmail string
    37  
    38  	// Message represents the first 80 characters from the commit message.
    39  	// The output image will contain this information as 'io.openshift.build.commit.message' label.
    40  	Message string
    41  
    42  	// Location contains a valid URL to the original repository.
    43  	// The output image will contain this information as 'io.openshift.build.source-location' label.
    44  	Location string
    45  
    46  	// ContextDir contains path inside the Location directory that
    47  	// contains the application source code.
    48  	// The output image will contain this information as 'io.openshift.build.source-context-dir'
    49  	// label.
    50  	ContextDir string
    51  }