Documentation ¶
Index ¶
- func BuildContext(path string, insts []*api.Installation) error
- func ContextPath() string
- func ManifestPath(repo string) (string, error)
- func ProjectManifestPath() string
- type Bundle
- type ChartManifest
- type Context
- func (c *Context) AddBucket(bucket string)
- func (c *Context) AddBundle(repo, name string)
- func (c *Context) AddDomain(domain string)
- func (c *Context) ContainsString(str, msg, ignoreRepo, ignoreKey string) error
- func (c *Context) HasBucket(bucket string) bool
- func (c *Context) HasDomain(domain string) bool
- func (this *Context) MarshalJSON() ([]byte, error)
- func (c *Context) Protected(name string) bool
- func (c *Context) Repo(name string) (res map[string]interface{}, ok bool)
- func (c *Context) Write(path string) error
- type Dependency
- type Globals
- type Links
- type Manifest
- type Metadata
- type NetworkConfig
- type Owner
- type ProjectManifest
- type SMTP
- type SmtpService
- type TerraformManifest
- type VersionedContext
- type VersionedManifest
- type VersionedProjectManifest
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildContext ¶
func BuildContext(path string, insts []*api.Installation) error
func ContextPath ¶
func ContextPath() string
func ManifestPath ¶
func ProjectManifestPath ¶
func ProjectManifestPath() string
Types ¶
type ChartManifest ¶
type Context ¶
type Context struct { Bundles []*Bundle Buckets []string Domains []string Protect []string `yaml:"protect,omitempty" json:"protect,omitempty"` SMTP *SMTP `yaml:"smtp,omitempty"` Globals *Globals `yaml:"globals,omitempty" json:"globals,omitempty"` Configuration map[string]map[string]interface{} }
func FetchContext ¶
func NewContext ¶
func NewContext() *Context
func ReadContext ¶
func (*Context) ContainsString ¶
func (*Context) MarshalJSON ¶
type Dependency ¶
type Dependency struct {
Repo string
}
type Manifest ¶
type Manifest struct { Id string Name string Cluster string Project string Bucket string Provider string Region string License string Wait bool Charts []*ChartManifest Terraform []*TerraformManifest Dependencies []*Dependency Context map[string]interface{} Links *Links `yaml:"links,omitempty"` }
type NetworkConfig ¶
type ProjectManifest ¶
type ProjectManifest struct { Cluster string Bucket string Project string Provider string Region string Owner *Owner Network *NetworkConfig AvailabilityZones []string BucketPrefix string `yaml:"bucketPrefix"` Context map[string]interface{} }
func FetchProject ¶
func FetchProject() (*ProjectManifest, error)
func ReadProject ¶
func ReadProject(path string) (man *ProjectManifest, err error)
func (*ProjectManifest) Configure ¶
func (pMan *ProjectManifest) Configure(cloud bool) Writer
func (*ProjectManifest) ConfigureNetwork ¶
func (pMan *ProjectManifest) ConfigureNetwork() error
func (*ProjectManifest) Flush ¶
func (man *ProjectManifest) Flush() error
func (*ProjectManifest) MarshalJSON ¶
func (this *ProjectManifest) MarshalJSON() ([]byte, error)
func (*ProjectManifest) Write ¶
func (pMan *ProjectManifest) Write(path string) error
type SMTP ¶
type SMTP struct { Service string Server string Port int Sender string User string Password string }
func (*SMTP) Configuration ¶
type SmtpService ¶
type TerraformManifest ¶
type VersionedContext ¶
type VersionedManifest ¶
type VersionedProjectManifest ¶
type VersionedProjectManifest struct { ApiVersion string `yaml:"apiVersion"` Kind string Metadata *Metadata Spec *ProjectManifest }
Click to show internal directories.
Click to hide internal directories.