-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
267 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package client | ||
|
||
import "encoding/xml" | ||
|
||
type GitScmCleanBeforeCheckoutExtension struct { | ||
XMLName xml.Name `xml:"hudson.plugins.git.extensions.impl.CleanBeforeCheckout"` | ||
Id string `xml:"id,attr"` | ||
} | ||
|
||
func NewGitScmCleanBeforeCheckoutExtension() *GitScmCleanBeforeCheckoutExtension { | ||
return &GitScmCleanBeforeCheckoutExtension{} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package client | ||
|
||
type GitScmExtension interface{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package client | ||
|
||
type GitScmExtensions struct { | ||
Items *[]GitScmExtension | ||
} | ||
|
||
func NewGitScmExtensions() *GitScmExtensions { | ||
return &GitScmExtensions{ | ||
Items: &[]GitScmExtension{}, | ||
} | ||
} | ||
|
||
func (extensions *GitScmExtensions) Append(extension GitScmExtension) *GitScmExtensions { | ||
var newExtensionItems []GitScmExtension | ||
if extensions.Items != nil { | ||
newExtensionItems = append(*extensions.Items, extension) | ||
} else { | ||
newExtensionItems = append(newExtensionItems, extension) | ||
} | ||
newExtensions := NewGitScmExtensions() | ||
newExtensions.Items = &newExtensionItems | ||
return newExtensions | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package client | ||
|
||
type GitUserRemoteConfigs struct { | ||
Items *[]*GitUserRemoteConfig `xml:"hudson.plugins.git.UserRemoteConfig"` | ||
} | ||
|
||
func NewGitUserRemoteConfigs() *GitUserRemoteConfigs { | ||
return &GitUserRemoteConfigs{ | ||
Items: &[]*GitUserRemoteConfig{}, | ||
} | ||
} | ||
|
||
func (configs *GitUserRemoteConfigs) Append(config *GitUserRemoteConfig) *GitUserRemoteConfigs { | ||
var newConfigItems []*GitUserRemoteConfig | ||
if configs.Items != nil { | ||
newConfigItems = append(*configs.Items, config) | ||
} else { | ||
newConfigItems = append(newConfigItems, config) | ||
} | ||
newConfigs := NewGitUserRemoteConfigs() | ||
newConfigs.Items = &newConfigItems | ||
return newConfigs | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package client | ||
|
||
type JobGerritTriggerOnEvent interface {} | ||
type JobGerritTriggerOnEvent interface{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package client | ||
|
||
// Job Property | ||
type JobParameterDefinitionProperty interface{} | ||
|
||
type JobParameterDefinitionPropertyChoice struct { | ||
// DefaultParameterValue map[string]string `xml:"defaultParameterValue"` | ||
Description string `xml:"description"` | ||
Name string `xml:"name"` | ||
// Type string `xml:"type"` | ||
Choices *[]string `xml:"choices"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
package client | ||
|
||
type JobPipelineBuildDiscarderPropertyStrategy interface { | ||
} | ||
type JobPipelineBuildDiscarderPropertyStrategy interface{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.