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.
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.
Click to show internal directories.
Click to hide internal directories.