Permalink
Please sign in to comment.
Browse files
Implemented new schema for charm revision handling in an
independent file in the Go port, including backwards compatibility with the previous schema, and also SetVersion methods that enable bundling and expanding charms with custom revisions (necessary for store).
- Loading branch information...
Showing
with
313 additions
and 55 deletions.
- +61 −7 bundle.go
- +62 −4 bundle_test.go
- +2 −9 charm.go
- +1 −0 charm_test.go
- +5 −4 config.go
- +1 −1 config_test.go
- +61 −9 dir.go
- +100 −4 dir_test.go
- +7 −4 meta.go
- +2 −2 meta_test.go
- 0 testrepo/{ → series}/dummy/.dir/ignored
- 0 testrepo/{ → series}/dummy/.ignored
- 0 testrepo/{ → series}/dummy/build/ignored
- 0 testrepo/{ → series}/dummy/config.yaml
- 0 testrepo/{ → series}/dummy/hooks/install
- +0 −1 testrepo/{ → series}/dummy/metadata.yaml
- +1 −0 testrepo/series/dummy/revision
- 0 testrepo/{ → series}/dummy/src/hello.c
- +1 −2 testrepo/{mysql2 → series/mysql-alternative}/metadata.yaml
- +1 −0 testrepo/series/mysql-alternative/revision
- +0 −1 testrepo/{ → series}/mysql/metadata.yaml
- +1 −0 testrepo/series/mysql/revision
- +0 −1 testrepo/{old → series/new}/metadata.yaml
- +1 −0 testrepo/series/new/revision
- +0 −1 testrepo/{new → series/old}/metadata.yaml
- +1 −0 testrepo/series/old/revision
- +0 −1 testrepo/{ → series}/riak/metadata.yaml
- +1 −0 testrepo/series/riak/revision
- 0 testrepo/{varnish2 → series/varnish-alternative}/hooks/install
- +1 −2 testrepo/{varnish → series/varnish-alternative}/metadata.yaml
- +1 −0 testrepo/series/varnish-alternative/revision
- +0 −1 testrepo/{varnish2 → series/varnish}/metadata.yaml
- +1 −0 testrepo/series/varnish/revision
- 0 testrepo/{ → series}/wordpress/config.yaml
- +0 −1 testrepo/{ → series}/wordpress/metadata.yaml
- +1 −0 testrepo/series/wordpress/revision
| @@ -1,17 +1,10 @@ | ||
| package charm | ||
| -import ( | ||
| - "fmt" | ||
| - "os" | ||
| -) | ||
| - | ||
| // The Charm interface is implemented by any type that | ||
| // may be handled as a charm. | ||
| type Charm interface { | ||
| Meta() *Meta | ||
| Config() *Config | ||
| -} | ||
| - | ||
| -func errorf(format string, args ...interface{}) os.Error { | ||
| - return os.NewError(fmt.Sprintf(format, args...)) | ||
| + Revision() int | ||
| + SetRevision(revision int) | ||
| } |
Oops, something went wrong.
0 comments on commit
ddf98e0