clientset

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

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().

func NewFactory

func NewFactory(in io.Reader, out, err io.Writer) Factory

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL