Documentation ¶
Index ¶
- func AddMissings(jkpr *api.PluginsRegistry, pr *api.PluginsRegistry)
- func ExtractDetachedPluginsManifests(war string, detachedPlugins []string) (map[string]string, error)
- func GetStorePath(workingDir string) string
- func GetWarPath(jm *JenkinsManifest, workingDir string) string
- func NewPluginsRegistry(jk *api.Jenkins) *api.PluginsRegistry
- func Read(warfile string, workingDir string) (*api.Jenkins, error)
- func ReadWar(warPath string) (*api.Jenkins, error)
- func WriteWar(g *api.Jenkins, warPath string) error
- type JenkinsManifest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMissings ¶
func AddMissings(jkpr *api.PluginsRegistry, pr *api.PluginsRegistry)
AddMissings walks through a jenkins input to check if there are missing plugins in a plugin registry and add them
func ExtractDetachedPluginsManifests ¶
func ExtractDetachedPluginsManifests(war string, detachedPlugins []string) (map[string]string, error)
ExtractDetachedPluginsManifests takes a war and returns a reader to a detached plugin manifest content
func GetStorePath ¶
GetStorePath returns the path to the store
func GetWarPath ¶
func GetWarPath(jm *JenkinsManifest, workingDir string) string
GetWarPath returns the path to the war in the store
func NewPluginsRegistry ¶
func NewPluginsRegistry(jk *api.Jenkins) *api.PluginsRegistry
NewPluginsRegistry returns a PluginRegistry struct from a Jenkins struct.
func Read ¶
Read reads a Jenkins struct from a file. If it does not exist, it will parse it and write the processed data to the store. If it does exist, it will read it from the store directly.
Types ¶
type JenkinsManifest ¶
JenkinsManifest represents the Jenkins manifest file
func ParseManifest ¶
func ParseManifest(manifest string) (*JenkinsManifest, error)
ParseManifest parses a Jenkins manifest file content