service

package
v0.15.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2017 License: Apache-2.0 Imports: 13 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTimeout = errors.New("Timeout waiting service")
)

Functions

func ActionWrapper added in v0.15.10

func ActionWrapper(c *client.RancherClient, service *client.Service, action string) func() error

func WaitFor

func WaitFor(ctx context.Context, client *client.RancherClient, resource *client.Resource, output interface{}, transitioning func() string) error

Types

type ContainerInspect

type ContainerInspect struct {
	Name       string
	Config     *container.Config
	HostConfig *container.HostConfig
}

type ContainerWrapper

type ContainerWrapper struct {
	// contains filtered or unexported fields
}

func (*ContainerWrapper) Create

func (s *ContainerWrapper) Create(ctx context.Context, options options.Options) error

func (*ContainerWrapper) Exists

func (s *ContainerWrapper) Exists() (bool, error)

func (*ContainerWrapper) Image

func (s *ContainerWrapper) Image() string

func (*ContainerWrapper) Labels

func (s *ContainerWrapper) Labels() map[string]interface{}

func (*ContainerWrapper) Up

func (s *ContainerWrapper) Up(ctx context.Context, options options.Options) error
type Link struct {
	ServiceName, Alias string
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(name string, p *project.Project) *Service

func NewService

func NewService(name string, p *project.Project) *Service

func NewSidekick

func NewSidekick(name string, p *project.Project) *Service

func (*Service) Create

func (s *Service) Create(ctx context.Context, options options.Options) error

func (*Service) Name

func (s *Service) Name() string

func (*Service) Pull

func (s *Service) Pull(ctx context.Context, options options.Pull) (err error)

func (*Service) Up

func (s *Service) Up(ctx context.Context, options options.Options) error

type ServiceWrapper

type ServiceWrapper struct {
	// contains filtered or unexported fields
}

func (*ServiceWrapper) Create

func (s *ServiceWrapper) Create(ctx context.Context, options options.Options) error

func (*ServiceWrapper) Exists

func (s *ServiceWrapper) Exists() (bool, error)

func (*ServiceWrapper) Image

func (s *ServiceWrapper) Image() string

func (*ServiceWrapper) Labels

func (s *ServiceWrapper) Labels() map[string]interface{}

func (*ServiceWrapper) Up

func (s *ServiceWrapper) Up(ctx context.Context, options options.Options) error

type SidekickWrapper

type SidekickWrapper struct {
	// contains filtered or unexported fields
}

func (*SidekickWrapper) Create

func (s *SidekickWrapper) Create(ctx context.Context, options options.Options) error

func (*SidekickWrapper) Exists

func (s *SidekickWrapper) Exists() (bool, error)

func (*SidekickWrapper) Image

func (s *SidekickWrapper) Image() string

func (*SidekickWrapper) Labels

func (s *SidekickWrapper) Labels() map[string]interface{}

func (*SidekickWrapper) Up

func (s *SidekickWrapper) Up(ctx context.Context, options options.Options) error

type Wrapper

type Wrapper interface {
	Exists() (bool, error)
	Create(ctx context.Context, options options.Options) error
	Up(ctx context.Context, options options.Options) error
	Image() string
	Labels() map[string]interface{}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL