Documentation
¶
Index ¶
- type Config
- func (c *Config) AddMachine(name string, host Host) error
- func (c *Config) DisableMachine(name string) error
- func (c *Config) EnableMachine(name string) error
- func (c *Config) GetMachine(name string) (Host, error)
- func (c *Config) Init() error
- func (c *Config) IsMachineProvisioned(name string) bool
- func (c *Config) ListActiveMachines() (map[string]Host, error)
- func (c *Config) ListMachines() (map[string]Host, error)
- func (c *Config) RemoveHost(name string) error
- func (c *Config) UpdateProvisionedStatus(name string, ok bool) error
- type Configer
- type Host
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config config of fx
func (*Config) AddMachine ¶
AddMachine add host
func (*Config) DisableMachine ¶
DisableMachine disable a machine, after machine disabled, function will not be deployed onto it
func (*Config) EnableMachine ¶
EnableMachine enable a machine, after machine enabled, function will be deployed onto it when ever `fx up` invoked
func (*Config) GetMachine ¶
GetMachine get host by name
func (*Config) IsMachineProvisioned ¶
IsMachineProvisioned check if machine provisioned
func (*Config) ListActiveMachines ¶
ListActiveMachines list enabled machines
func (*Config) ListMachines ¶
ListMachines list hosts
type Configer ¶
type Configer interface { GetMachine(name string) (Host, error) AddMachine(name string, host Host) error RemoveHost(name string) error ListActiveMachines() (map[string]Host, error) ListMachines() (map[string]Host, error) EnableMachine(name string) error DisableMachine(name string) error UpdateProvisionedStatus(name string, ok bool) error }
Configer interface
Click to show internal directories.
Click to hide internal directories.