~rogpeppe/juju-core/438-local-instance-Addresses

« back to all changes in this revision

Viewing changes to charm/config.go

  • Committer: Gustavo Niemeyer
  • Date: 2011-09-24 15:21:23 UTC
  • Revision ID: gustavo@niemeyer.net-20110924152123-aytdvquwlbmnv3tj
Applied the juju/charm renaming to the Go code base.

Dropped need for the silly "header" field in metadata.yaml.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package formula
 
1
package charm
2
2
 
3
3
import (
4
4
        "io"
5
5
        "io/ioutil"
6
 
        "launchpad.net/ensemble/go/schema"
 
6
        "launchpad.net/juju/go/schema"
7
7
        "launchpad.net/goyaml"
8
8
        "os"
9
9
        "strconv"
10
10
)
11
11
 
12
12
// Option represents a single configuration option that is declared
13
 
// as supported by a formula in its config.yaml file.
 
13
// as supported by a charm in its config.yaml file.
14
14
type Option struct {
15
15
        Title       string
16
16
        Description string
18
18
        Default     interface{}
19
19
}
20
20
 
21
 
// Config represents the supported configuration options for a formula,
 
21
// Config represents the supported configuration options for a charm,
22
22
// as declared in its config.yaml file.
23
23
type Config struct {
24
24
        Options map[string]Option