ranchercli

package
v0.0.0-...-235145b Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Session *session.Session
}

func NewClient

func NewClient(session *session.Session, token, host string, client *management.Client) (*Client, error)

NewClient will download the CLI and login to the Rancher server.

func (*Client) Create

func (c *Client) Create(name string, args ...string) error

func (*Client) Delete

func (c *Client) Delete(name string, args ...string) error

func (*Client) ExecuteCommand

func (c *Client) ExecuteCommand(name string, args ...string) error

ExecuteCommand will execute a command and log any errors.

func (*Client) Exists

func (c *Client) Exists(rancher, resourceType, name string) error

Jump to

Keyboard shortcuts

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