Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = errors.New("clients: not implemented")
ErrNotImplemented is the error returned if a method is not implemented.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface { // NewSpotClient returns an instance of spot.Client. NewSpotClient(options ...spot.ClientOption) (spot.Client, error) // NewCloud returns an instance of cloud.Interface. NewCloud(name cloud.ProviderName, options ...cloud.ProviderOption) (cloud.Provider, error) // NewCommand returns an instance of thirdparty.Command. NewCommand(name thirdparty.CommandName) (thirdparty.Command, error) // NewSurvey returns an instance of survey.Interface. NewSurvey() (survey.Interface, error) // NewDepManager returns an instance of dep.Manager. NewDepManager() (dep.Manager, error) // NewEditor returns an instance of editor.Editor. NewEditor() (editor.Editor, error) // NewWriter returns an instance of writer.Writer. NewWriter(format writer.Format) (writer.Writer, error) }
Factory interface represents a clients factory that creates instances of each client type. For example, to create an instance of the cloud provider client interface, call the following method Clientset.NewCloud().
Click to show internal directories.
Click to hide internal directories.