Documentation
¶
Index ¶
- func CloudAccount(fqdn, account string) basic.Op
- func CloudBindingOp(fqdn, account, plan string) basic.Op
- func CloudPlan(fqdn, plan string) basic.Op
- func Description(value string) basic.Op
- func Email(value string) basic.Op
- func Id(value string) basic.Op
- func Name(value string) basic.Op
- type CloudBinding
- type Getter
- type Option
- type Project
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloudAccount ¶ added in v1.2.0
func CloudBindingOp ¶ added in v1.2.0
CloudBindingOp sets `clouds.<fqdn>.{account, plan}` in one call. Each child uses an independent c.Config() chain because yaseer's Query.Get() mutates the receiver.
func Description ¶
Types ¶
type CloudBinding ¶ added in v1.2.0
type CloudBinding struct {
Account string `json:"account,omitempty" yaml:"account,omitempty"`
Plan string `json:"plan,omitempty" yaml:"plan,omitempty"`
}
CloudBinding is the (account, plan) pair a project pins to on a specific tau cloud (identified by FQDN).
func (CloudBinding) IsEmpty ¶ added in v1.2.0
func (b CloudBinding) IsEmpty() bool
type Getter ¶
type Getter interface {
basic.Getter
Applications() []string
Tags() []string
Email() string
// CloudBinding returns the (account, plan) pair the project declares
// for the given cloud FQDN, and a flag indicating whether the entry
// exists. Both fields are optional; missing entries (dream / local /
// projects not deployed to that cloud) return (zero, false).
CloudBinding(fqdn string) (CloudBinding, bool)
// Clouds returns the FQDNs the project has declared bindings for.
// Empty when the project doesn't declare any.
Clouds() []string
Services(string) (local []string, global []string)
Libraries(string) (local []string, global []string)
Websites(string) (local []string, global []string)
Messaging(string) (local []string, global []string)
Databases(string) (local []string, global []string)
Storages(string) (local []string, global []string)
Domains(string) (local []string, global []string)
SmartOps(string) (local []string, global []string)
Functions(string) (local []string, global []string)
}
type Project ¶
type Project interface {
Get() Getter
Set(sync bool, ops ...basic.Op) (err error)
Delete(attributes ...string) (err error)
Prettify(p pretty.Prettier) map[string]interface{}
ResourceMethods() []pretty.PrettyResourceIface
Application(name string) (application.Application, error)
Database(name string, application string) (databases.Database, error)
Domain(name string, application string) (domains.Domain, error)
Function(name string, application string) (functions.Function, error)
Library(name string, application string) (libraries.Library, error)
Messaging(name string, application string) (messaging.Messaging, error)
Service(name string, application string) (services.Service, error)
SmartOps(name string, application string) (smartops.SmartOps, error)
Storage(name string, application string) (storages.Storage, error)
Website(name string, application string) (website.Website, error)
}