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 { // NewSpotinst returns an instance of Spotinst interface. NewSpotinst(options ...spotinst.ClientOption) (spotinst.Interface, error) // NewCloud returns an instance of cloud provider by name. NewCloud(name cloud.ProviderName, options ...cloud.ProviderOption) (cloud.Interface, error) // NewCommand returns an instance of a third-party command by name. NewCommand(name thirdparty.CommandName) (thirdparty.Command, error) // NewSurvey returns an instance of survey interface. NewSurvey() (survey.Interface, error) // NewDep returns an instance of dependency manager interface. NewDep() (dep.Interface, error) // NewEditor returns an instance of an editor. NewEditor() (editor.Editor, error) // NewWriter returns an instance of writer interface. 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.