Documentation ¶
Index ¶
- Constants
- func NewProject(c *Context) (*project.Project, error)
- func Upload(p *project.Project, name string) (string, string, error)
- type ContainerInspect
- type Context
- type IsDone
- type RancherConfig
- type RancherService
- func (r *RancherService) Config() *project.ServiceConfig
- func (r *RancherService) Create() error
- func (r *RancherService) Delete() error
- func (r *RancherService) Down() error
- func (r *RancherService) Log() error
- func (r *RancherService) Name() string
- func (r *RancherService) Restart() error
- func (r *RancherService) Scale(count int) error
- func (r *RancherService) Up() 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 ¶
Types ¶
type ContainerInspect ¶
type ContainerInspect struct { Name string Config *runconfig.Config HostConfig *runconfig.HostConfig }
type Context ¶
type Context struct { RancherConfig map[string]RancherConfig Log bool RancherComposeFile string ComposeFile string ComposeBytes []byte ProjectName string Url string AccessKey string SecretKey string Client *rancherClient.RancherClient Environment *rancherClient.Environment Project *project.Project SidekickInfo *SidekickInfo // 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"` HealthCheck *rancherClient.InstanceHealthCheck `yaml:"health_check,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) Config ¶
func (r *RancherService) Config() *project.ServiceConfig
func (*RancherService) Create ¶
func (r *RancherService) Create() error
func (*RancherService) Delete ¶
func (r *RancherService) Delete() error
func (*RancherService) Down ¶
func (r *RancherService) Down() error
func (*RancherService) Log ¶
func (r *RancherService) Log() error
func (*RancherService) Name ¶
func (r *RancherService) Name() string
func (*RancherService) Restart ¶
func (r *RancherService) Restart() error
func (*RancherService) Scale ¶
func (r *RancherService) Scale(count int) error
func (*RancherService) Up ¶
func (r *RancherService) Up() error
type RancherServiceFactory ¶
type RancherServiceFactory struct {
// contains filtered or unexported fields
}
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
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.