util

package
v0.0.0-...-ad3a29e Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoopClientFactory

func NoopClientFactory(config.Profile) linode.Client

Types

type ClientFactoryFunc

type ClientFactoryFunc func(config.Profile) linode.Client

type CommandFactoryFunc

type CommandFactoryFunc func(Factory, IOStreams) *cobra.Command

type Factory

type Factory interface {
	ConfigProvider() config.Provider
	Client(profileName string) (linode.Client, error)
	Config() *config.Config
}

func NewFactory

func NewFactory(configProvider config.Provider, config *config.Config, clientFactory ClientFactoryFunc) Factory

type IOStreams

type IOStreams struct {
	In       io.Reader
	Out, Err io.Writer
}

Jump to

Keyboard shortcuts

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