Skip to content

Instantly share code, notes, and snippets.

@spheromak
Last active August 29, 2015 14:15
Show Gist options
  • Save spheromak/552b88ff5576c8f24273 to your computer and use it in GitHub Desktop.
Save spheromak/552b88ff5576c8f24273 to your computer and use it in GitHub Desktop.
type Lock struct {
Name string `json:"name"`
RevisionId string `json:"revision_id"`
RunList []string `json:"run_list"`
CookBooks map[string]CookLock
}
type CookLock struct {
CacheKey string `json:"cache_key"`
DottedDecimalIdentifier string `json:"dotted_decimal_identifier"`
Identifier string `json:"identifier"`
Origin string `json:"origin"`
ScmInfo ScmInfo `json:"scm_info"`
Source string `json:"source"`
SourceOptions SourceOptions `json:"source_options"`
Version string `json:"version"`
}
type ScmInfo struct {
Published bool `json:"published"`
Remote string `json:"remote"`
Revision string `json:"revision"`
Scm string `json:"scm"`
SynchronizedRemoteBranches []string `json:"synchronized_remote_branches"`
WorkingTreeClean bool `json:"working_tree_clean"`
}
type SourceOptions struct {
Path string `json:"path"`
Artifactserver string `json:"artifactserver"`
Version string `json:"version"`
}
type Lock struct {
Name string `json:"name"`
RevisionId string `json:"revision_id"`
RunList []string `json:"run_list"`
CookBooks map[string]CookLock
}
type CookLock struct {
Version string `json:"version"`
CacheKey string `json:"cache_key"`
DottedDecimalIdentifier string `json:"dotted_decimal_identifier"`
Identifier string `json:"identifier"`
Origin string `json:"origin"`
Source string `json:"source"`
SourceOptions struct {
Path string `json:"path"`
Artifactserver string `json:"artifactserver"`
Version string `json:"version"`
} `json:"source_options"`
ScmInfo struct {
Published bool `json:"published"`
Remote string `json:"remote"`
Revision string `json:"revision"`
Scm string `json:"scm"`
SynchronizedRemoteBranches []string `json:"synchronized_remote_branches"`
WorkingTreeClean bool `json:"working_tree_clean"`
} `json:"scm_info"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment