dummy

package
v0.0.0-...-8f56700 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDummy

func NewDummy(
	config *bltconfig.Config,
	fs boshsys.FileSystem,
	cmdRunner boshsys.CmdRunner,
	assetsProvider bltassets.Provider,
	logger boshlog.Logger,

) *dummy

Types

type Agent

type Agent struct {
	Blobs Blobs `json:"blobstore"`
}

type Blobs

type Blobs struct {
	Provider string            `json:"provider"`
	Options  map[string]string `json:"options"`
}

type CPIConfig

type CPIConfig struct {
	Dir   string `json:"dir"`
	NATS  string `json:"nats"`
	Agent Agent  `json:"agent"`
}

type ConfigServerOptions

type ConfigServerOptions struct {
	AssetsPath string
	Port       int
	Store      string
}

type ConfigServerService

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

func NewConfigServerService

func NewConfigServerService(
	startCommand string,
	options ConfigServerOptions,
	cmdRunner boshsys.CmdRunner,
	assetsProvider bltassets.Provider,
	fs boshsys.FileSystem,
	portWaiter PortWaiter,
) *ConfigServerService

func (*ConfigServerService) Start

func (u *ConfigServerService) Start() error

func (*ConfigServerService) Stop

func (u *ConfigServerService) Stop()

type Database

type Database interface {
	Create() error
	Drop() error
	Name() string
	Server() string
	User() string
	Password() string
	Port() int
}

type DirectorConfig

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

func NewDirectorConfig

func NewDirectorConfig(
	options DirectorOptions,
	fs boshsys.FileSystem,
	assetsProvider bltassets.Provider,
	numWorkers int,
) *DirectorConfig

func (*DirectorConfig) CPIConfigPath

func (c *DirectorConfig) CPIConfigPath() string

func (*DirectorConfig) CPIPath

func (c *DirectorConfig) CPIPath() string

func (*DirectorConfig) DirectorConfigPath

func (c *DirectorConfig) DirectorConfigPath() string

func (*DirectorConfig) DirectorPort

func (c *DirectorConfig) DirectorPort() int

func (*DirectorConfig) WorkerConfigPath

func (c *DirectorConfig) WorkerConfigPath(index int) string

func (*DirectorConfig) Write

func (c *DirectorConfig) Write() error

type DirectorOptions

type DirectorOptions struct {
	Port                   int
	DatabaseName           string
	DatabaseServer         string
	DatabaseUser           string
	DatabasePassword       string
	DatabasePort           int
	BaseDir                string
	DummyCPIPath           string
	RubyVersion            string
	VerifyMultidigestPath  string
	UAAEnabled             bool
	ConfigServerEnabled    bool
	AssetsPath             string
	MaxCpiAPIVersion       int
	PreferredCpiAPIVersion int
}

type DirectorService

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

func NewDirectorService

func NewDirectorService(
	directorMigrationCommand string,
	directorStartCommand string,
	workerStartCommand string,
	directorConfig *DirectorConfig,
	cmdRunner boshsys.CmdRunner,
	assetsProvider bltassets.Provider,
	portWaiter PortWaiter,
	numWorkers int,
) *DirectorService

func (*DirectorService) Start

func (s *DirectorService) Start() error

func (*DirectorService) Stop

func (s *DirectorService) Stop()

type MysqlDatabase

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

func NewMysqlDatabase

func NewMysqlDatabase(name string, cmdRunner boshsys.CmdRunner) *MysqlDatabase

func (*MysqlDatabase) Create

func (m *MysqlDatabase) Create() error

func (*MysqlDatabase) Drop

func (m *MysqlDatabase) Drop() error

func (*MysqlDatabase) Name

func (m *MysqlDatabase) Name() string

func (*MysqlDatabase) Password

func (m *MysqlDatabase) Password() string

func (*MysqlDatabase) Port

func (m *MysqlDatabase) Port() int

func (*MysqlDatabase) Server

func (m *MysqlDatabase) Server() string

func (*MysqlDatabase) User

func (m *MysqlDatabase) User() string

type NatsServerOptions

type NatsServerOptions struct {
	AssetsPath string
	Port       int
}

type NatsService

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

func NewNatsService

func NewNatsService(
	options NatsServerOptions,
	natsStartCommand string,
	cmdRunner boshsys.CmdRunner,
	assetsProvider bltassets.Provider,
	fs boshsys.FileSystem,
	portWaiter PortWaiter,
) *NatsService

func (*NatsService) Start

func (s *NatsService) Start() error

func (*NatsService) Stop

func (s *NatsService) Stop()

type NginxService

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

func NewNginxService

func NewNginxService(
	nginxStartCommand string,
	directorPort int,
	nginxPort int,
	cmdRunner boshsys.CmdRunner,
	assetsProvider bltassets.Provider,
	portWaiter PortWaiter,
) *NginxService

func (*NginxService) Start

func (s *NginxService) Start() error

func (*NginxService) Stop

func (s *NginxService) Stop()

type PortWaiter

type PortWaiter interface {
	Wait(serviceName string, host string, port int) error
}

func NewPortWaiter

func NewPortWaiter(attempts int, delay time.Duration) PortWaiter

type PostgresqlDatabase

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

func NewPostgresqlDatabase

func NewPostgresqlDatabase(name string, cmdRunner boshsys.CmdRunner) *PostgresqlDatabase

func (*PostgresqlDatabase) Create

func (p *PostgresqlDatabase) Create() error

func (*PostgresqlDatabase) Drop

func (p *PostgresqlDatabase) Drop() error

func (*PostgresqlDatabase) Name

func (p *PostgresqlDatabase) Name() string

func (*PostgresqlDatabase) Password

func (d *PostgresqlDatabase) Password() string

func (*PostgresqlDatabase) Port

func (d *PostgresqlDatabase) Port() int

func (*PostgresqlDatabase) Server

func (d *PostgresqlDatabase) Server() string

func (*PostgresqlDatabase) User

func (d *PostgresqlDatabase) User() string

type UAAService

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

func NewUAAService

func NewUAAService(
	options UAAServiceOptions,
	cmdRunner boshsys.CmdRunner,
	assetsProvider bltassets.Provider,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
) *UAAService

func (*UAAService) Start

func (u *UAAService) Start() error

func (*UAAService) Stop

func (u *UAAService) Stop()

type UAAServiceOptions

type UAAServiceOptions struct {
	AssetsPath            string
	TomcatPath            string
	UaaHttpPort           int
	UaaServerPort         int
	UaaAccessLogDirectory string
}

Jump to

Keyboard shortcuts

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