Documentation ¶
Index ¶
- Constants
- func Contains(list []string, item string) bool
- func MapUnion(left, right map[string]string) map[string]string
- func NestedMapsToMapInterface(data map[string]interface{}) map[string]interface{}
- func NewProject(context *Context) (*project.Project, error)
- func ToMapInterface(data map[string]string) map[string]interface{}
- func TrimSplit(str, sep string, count int) []string
- func Upload(c *Context, name string) (string, string, error)
- type Container
- type ContainerInspect
- type Context
- type IsDone
- type Link
- type RancherConfig
- type RancherService
- func (r *RancherService) Build() error
- func (r *RancherService) Client() *rancherClient.RancherClient
- func (r *RancherService) Config() *project.ServiceConfig
- func (r *RancherService) Containers() ([]project.Container, error)
- func (r *RancherService) Create() error
- func (r *RancherService) Delete() error
- func (r *RancherService) DependentServices() []project.ServiceRelationship
- func (r *RancherService) Down() error
- func (r *RancherService) Info() (project.InfoSet, error)
- func (r *RancherService) Kill() error
- func (r *RancherService) Log() error
- func (r *RancherService) Name() string
- func (r *RancherService) Pull() (err error)
- func (r *RancherService) RancherService() (*rancherClient.Service, error)
- func (r *RancherService) Restart() error
- func (r *RancherService) Scale(count int) error
- func (r *RancherService) Start() error
- func (r *RancherService) Up() error
- func (r *RancherService) Wait(service *rancherClient.Service) error
- func (r *RancherService) WaitFor(resource *rancherClient.Resource, output interface{}, ...) error
- type RancherServiceFactory
- type S3Uploader
- type Sidekick
- type SidekickInfo
- type Uploader
Constants ¶
View Source
const ( LB_IMAGE = "rancher/load-balancer-service" DNS_IMAGE = "rancher/dns-service" EXTERNAL_IMAGE = "rancher/external-service" )
Variables ¶
This section is empty.
Functions ¶
func NestedMapsToMapInterface ¶ added in v0.4.2
func ToMapInterface ¶ added in v0.4.0
Types ¶
type Container ¶ added in v0.2.0
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶ added in v0.2.0
type ContainerInspect ¶
type ContainerInspect struct { Name string Config *runconfig.Config HostConfig *runconfig.HostConfig }
type Context ¶
type Context struct { project.Context RancherConfig map[string]RancherConfig RancherComposeFile string RancherComposeBytes []byte Url string AccessKey string SecretKey string Client *rancherClient.RancherClient Environment *rancherClient.Environment SidekickInfo *SidekickInfo Uploader Uploader PullCached bool // contains filtered or unexported fields }
type RancherConfig ¶
type RancherConfig struct { Scale int `yaml:"scale,omitempty"` LoadBalancerConfig *rancherClient.LoadBalancerConfig `yaml:"load_balancer_config,omitempty"` ExternalIps []string `yaml:"external_ips,omitempty"` Hostname string `yaml:"hostname,omitempty"` HealthCheck *rancherClient.InstanceHealthCheck `yaml:"health_check,omitempty"` DefaultCert string `yaml:"default_cert,omitempty"` Certs []string `yaml:"certs,omitempty"` Metadata map[string]interface{} `yaml:"metadata,omitempty"` }
type RancherService ¶
type RancherService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(name string, config *project.ServiceConfig, context *Context) *RancherService
func (*RancherService) Build ¶ added in v0.2.2
func (r *RancherService) Build() error
func (*RancherService) Client ¶ added in v0.2.2
func (r *RancherService) Client() *rancherClient.RancherClient
func (*RancherService) Config ¶
func (r *RancherService) Config() *project.ServiceConfig
func (*RancherService) Containers ¶ added in v0.2.0
func (r *RancherService) Containers() ([]project.Container, error)
func (*RancherService) Create ¶
func (r *RancherService) Create() error
func (*RancherService) Delete ¶
func (r *RancherService) Delete() error
func (*RancherService) DependentServices ¶ added in v0.2.0
func (r *RancherService) DependentServices() []project.ServiceRelationship
func (*RancherService) Down ¶
func (r *RancherService) Down() error
func (*RancherService) Info ¶ added in v0.2.3
func (r *RancherService) Info() (project.InfoSet, error)
func (*RancherService) Kill ¶ added in v0.2.2
func (r *RancherService) Kill() error
func (*RancherService) Log ¶
func (r *RancherService) Log() error
func (*RancherService) Name ¶
func (r *RancherService) Name() string
func (*RancherService) Pull ¶ added in v0.2.0
func (r *RancherService) Pull() (err error)
func (*RancherService) RancherService ¶ added in v0.2.2
func (r *RancherService) RancherService() (*rancherClient.Service, error)
func (*RancherService) Restart ¶
func (r *RancherService) Restart() error
func (*RancherService) Scale ¶
func (r *RancherService) Scale(count int) error
func (*RancherService) Start ¶ added in v0.2.2
func (r *RancherService) Start() error
func (*RancherService) Up ¶
func (r *RancherService) Up() error
func (*RancherService) Wait ¶ added in v0.2.2
func (r *RancherService) Wait(service *rancherClient.Service) error
func (*RancherService) WaitFor ¶ added in v0.4.0
func (r *RancherService) WaitFor(resource *rancherClient.Resource, output interface{}, transitioning func() string) error
type RancherServiceFactory ¶
type RancherServiceFactory struct {
Context *Context
}
type S3Uploader ¶
type S3Uploader struct { }
func (*S3Uploader) Name ¶
func (s *S3Uploader) Name() string
type Sidekick ¶
type Sidekick struct { project.EmptyService // contains filtered or unexported fields }
func NewSidekick ¶
func NewSidekick(name string, serviceConfig *project.ServiceConfig, context *Context) *Sidekick
func (*Sidekick) Config ¶
func (s *Sidekick) Config() *project.ServiceConfig
func (*Sidekick) DependentServices ¶ added in v0.2.0
func (s *Sidekick) DependentServices() []project.ServiceRelationship
type SidekickInfo ¶
type SidekickInfo struct {
// contains filtered or unexported fields
}
func NewSidekickInfo ¶
func NewSidekickInfo(project *project.Project) *SidekickInfo
Click to show internal directories.
Click to hide internal directories.