nhctl

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBin

func GetBin() string

GetBin returns the path to the nhctl binary.

Types

type Client

type Client struct {
	// Path to the executable binary file of nhctl.
	Binary string

	genericclioptions.IOStreams
}

Client interactive with nhctl

func NewDefaultClient

func NewDefaultClient(streams genericclioptions.IOStreams) (*Client, error)

NewDefaultClient creates a default nhctl client and returns it.

func (*Client) Check

func (c *Client) Check() error

Check checks if the nhctl version is available.

func (*Client) CheckAndInstall

func (c *Client) CheckAndInstall() error

CheckAndInstall will install nhctl if necessary.

Jump to

Keyboard shortcuts

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