util

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const BasePath = "mgmt/tm/util"
View Source
const BashEndpoint = "/bash"

BashEndpoint represents the REST resource used to execute bash commands.

Variables

This section is empty.

Functions

This section is empty.

Types

type BashCommand

type BashCommand struct {
	Command         string `json:"command,omitempty"`
	UtilCommandArgs string `json:"utilCmdArgs,omitempty"`
	CommandResult   string `json:"commandResult,omitempty"`
}

type BashResource

type BashResource struct {
	// contains filtered or unexported fields
}

A BashResource provides an API to run bash commands

func (*BashResource) Run

func (br *BashResource) Run(cmd string) (*f5.ExecOutput, error)

type Util

type Util struct {
	// contains filtered or unexported fields
}

func New

func New(c *f5.Client) Util

New creates a new NET client.

func (Util) Bash

func (util Util) Bash() *BashResource

Jump to

Keyboard shortcuts

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