| 1 | package sarifscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ |
| 2 | |
| 3 | import "timescip-go gomod github.com/golang/go/src go1.16 time/" |
| 4 | |
| 5 | // Invocation describes the runtime environment of the analysis tool run. |
| 6 | type Invocationscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation# struct { |
| 7 | PropertyBagscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation#PropertyBag. |
| 8 | StartTimeUTCscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation#StartTimeUTC. *timescip-go gomod github.com/golang/go/src go1.16 time/.Timescip-go gomod github.com/golang/go/src go1.16 time/Time# `json:"startTimeUtc,omitempty"` |
| 9 | EndTimeUTCscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation#EndTimeUTC. *timescip-go gomod github.com/golang/go/src go1.16 time/.Timescip-go gomod github.com/golang/go/src go1.16 time/Time# `json:"endTimeUtc,omitempty"` |
| 10 | ExecutionSuccessfulscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation#ExecutionSuccessful. bool `json:"executionSuccessful"` |
| 11 | WorkingDirectoryscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation#WorkingDirectory. *ArtifactLocationscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ArtifactLocation# `json:"workingDirectory,omitempty"` |
| 12 | } |
| 13 | |
| 14 | // WithStartTimeUTC sets the instant when the invocation started and returns the same Invocation. |
| 15 | func (i *Invocationscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation#) WithStartTimeUTCscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation#WithStartTimeUTC().(startTime timescip-go gomod github.com/golang/go/src go1.16 time/.Timescip-go gomod github.com/golang/go/src go1.16 time/Time#) *Invocationscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation# { |
| 16 | startTimeUTC := startTime.UTCscip-go gomod github.com/golang/go/src go1.16 time/Time#UTC().() |
| 17 | i.StartTimeUTCscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation#StartTimeUTC. = &startTimeUTC |
| 18 | return i |
| 19 | } |
| 20 | |
| 21 | // WithEndTimeUTC sets the instant when the invocation ended and returns the same Invocation. |
| 22 | func (i *Invocationscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation#) WithEndTimeUTCscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation#WithEndTimeUTC().(endTime timescip-go gomod github.com/golang/go/src go1.16 time/.Timescip-go gomod github.com/golang/go/src go1.16 time/Time#) *Invocationscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation# { |
| 23 | endTimeUTC := endTime.UTCscip-go gomod github.com/golang/go/src go1.16 time/Time#UTC().() |
| 24 | i.EndTimeUTCscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation#EndTimeUTC. = &endTimeUTC |
| 25 | return i |
| 26 | } |
| 27 | |
| 28 | // WithWorkingDirectory sets the current working directory of the invocation and returns the same Invocation. |
| 29 | func (i *Invocationscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation#) WithWorkingDirectoryscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation#WithWorkingDirectory().(workingDirectory *ArtifactLocationscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ArtifactLocation#) *Invocationscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation# { |
| 30 | i.WorkingDirectoryscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Invocation#WorkingDirectory. = workingDirectory |
| 31 | return i |
| 32 | } |