cmd

package
v0.0.0-...-1c5d739 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 41 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicEndpoint

type PublicEndpoint struct {
	Service     string
	ServiceID   string
	Application string
	EpType      string
	Protocol    string
	Name        string
	Enabled     bool
}

The vhost and port public endpoint structures are different, so we'll make a unified structure for output (both text and json) that matches the UI table. This is only needed for output, not for api commands.

func NewPublicEndpoint

func NewPublicEndpoint(service string, serviceID string, endpoint string, epType string,
	protocol string, name string, enabled bool) PublicEndpoint

type ServicedCli

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

ServicedCli is the client ui for serviced

func New

func New(driver api.API, config utils.ConfigReader, logControl logging.LogControl) *ServicedCli

New instantiates a new command-line client

func (*ServicedCli) Run

func (c *ServicedCli) Run(args []string)

Run builds the command-line interface for serviced and runs.

type Table

type Table struct {
	Fields  []string
	Padding int
	// contains filtered or unexported fields
}

func NewTable

func NewTable(fieldString string) *Table

func (*Table) AddRow

func (t *Table) AddRow(row map[string]interface{})

func (*Table) DedentRow

func (t *Table) DedentRow()

func (*Table) IndentRow

func (t *Table) IndentRow()

func (*Table) Print

func (t *Table) Print()

Jump to

Keyboard shortcuts

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