Documentation ¶
Index ¶
Constants ¶
View Source
const AdaptedLocationType = "hostspool"
AdaptedLocationType is the location target for adapter
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocationAdapter ¶
type LocationAdapter interface { CreateLocationConfiguration(locationName string, props config.DynamicMap) error GetLocationConfiguration(locationName string) (config.DynamicMap, error) SetLocationConfiguration(locationName string, props config.DynamicMap) error RemoveLocation(locationName string) error GetLocations() (map[string]config.DynamicMap, error) }
LocationAdapter interface represents the behaviour of a specific adapter for locations management
func NewHostsPoolLocationAdapter ¶
func NewHostsPoolLocationAdapter(client *api.Client) LocationAdapter
NewHostsPoolLocationAdapter allows to create a new hostsPool location adapter
func NewHostsPoolLocationAdapterWithSSHFactory ¶
func NewHostsPoolLocationAdapterWithSSHFactory(client *api.Client, sshClientFactory hostspool.SSHClientFactory) LocationAdapter
NewHostsPoolLocationAdapterWithSSHFactory creates a Location Adapter with a given ssh factory
Currently this is used for testing purpose to mock the ssh connection.
Click to show internal directories.
Click to hide internal directories.