clientset

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 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 {
	// 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().

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