Documentation ¶
Index ¶
- Variables
- func DecorateWithInteractiveLog(fn func() error, start, complete string) error
- func DecorateWithInteractiveLogWithPersist(fn func() (level ILogLevel, msg string), start string)
- func DockerAPI() *api
- func DockerBuildDrivers(ctxPath string) ([]build.DriverInfo, error)
- func GetInstallationPath() (string, error)
- func InitCore()
- func ParseDockerResponse(reader io.ReadCloser) (io.Reader, error)
- func StartInteractiveConsole(ctx context.Context) console.File
- type ILogLevel
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Docker *docker.Client DockerCLI *command.DockerCli )
View Source
var ( K8s *kubernetes.Clientset K8sConfig *rest.Config )
K8s defines shared client interface for Kubernetes cli.
View Source
var ( // Logger is an instance of the shared logger tool. Logger *logging.Logger // ILogger is an instance of the interactive logger. ILogger *wow.Wow )
View Source
var Helm helmclient.Client
Helm defines shared client interface for Helm cli.
View Source
var (
ILogPrefixes map[ILogLevel]spin.Spinner
)
Functions ¶
func DecorateWithInteractiveLog ¶
DecorateWithInteractiveLog wraps `fn` call into interactive logging with loading, displaying `start` message on loading, `complete` on successful end, and err return value on failure.
func DecorateWithInteractiveLogWithPersist ¶
DecorateWithInteractiveLogWithPersist wraps `fn` call into interactive logging with loading, displaying `start` message on loading and custom persist on end.
func DockerBuildDrivers ¶
func DockerBuildDrivers(ctxPath string) ([]build.DriverInfo, error)
func GetInstallationPath ¶
GetInstallationPath determines cli binary installation path
func ParseDockerResponse ¶
func ParseDockerResponse(reader io.ReadCloser) (io.Reader, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.