factory

package
v0.0.0-...-a4d1c61 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFunc

func NewFunc(config interface{}, dependencies factory.Dependencies, out interface{}) error

NewFunc is the factory creation function for the EC2 Machines implementation.

Types

type Components

type Components struct {
	// Machines contains configuration to instance a Machines implementation using a factory.
	Machines *factory.Config `yaml:"machines"`
	// Storage contains configuration to instance a Storage implementation using a factory.
	Storage *factory.Config `yaml:"storage"`
	// Orchestrator contains configuration to instance an Orchestrator implementation using a factory.
	Orchestrator *factory.Config `yaml:"orchestrator"`
	// Store contains configuration to instance a Store implementation using a factory.
	Store *factory.Config `yaml:"store"`
	// Secrets contains configuration to instance a Secrets implementation using a factory.
	Secrets *factory.Config `yaml:"secrets"`
	// EmailSender contains configuration to instance a EmailSender implementation using a factory.
	EmailSender *factory.Config `yaml:"emailSender"`
}

Components contains configuration information for Platform components.

type Config

type Config struct {
	// Name is the platform name
	Name string `validate:"required"`
	// Components contains configuration information for Platform components.
	Components Components
}

Config is used to create a platform.

func (*Config) Validate

func (c *Config) Validate() error

Validate validates that the config values are valid.

type Dependencies

type Dependencies struct {
	// Logger is used to store log information.
	Logger gz.Logger `validate:"required"`
}

Dependencies is used to create an EC2 machines component.

func (*Dependencies) Validate

func (d *Dependencies) Validate() error

Validate validates that the dependencies values are valid.

Jump to

Keyboard shortcuts

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