client

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

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

CLI is a wrapper around os.execs.

func NewCLI

func NewCLI(path string) (*CLI, error)

NewCLI returns a wrapper around CLI.

func (*CLI) Run

func (cli *CLI) Run(commands ...string) (string, error)

Run executes a command.

type JobListOutput

type JobListOutput struct {
	Jobs []wkldDescription `json:"jobs"`
}

JobListOutput contains summaries of jobs.

func ToJobListOutput

func ToJobListOutput(jsonInput string) (*JobListOutput, error)

ToJobListOutput unmarshal a JSON string to a JobListOutput struct.

type SvcListOutput

type SvcListOutput struct {
	Services []wkldDescription `json:"services"`
}

SvcListOutput contains summaries of services.

func ToSvcListOutput

func ToSvcListOutput(jsonInput string) (*SvcListOutput, error)

ToSvcListOutput unmarshal a JSON string to a SvcListOutput struct.

type SvcShowOutput

type SvcShowOutput struct {
	SvcName            string                            `json:"service"`
	Type               string                            `json:"type"`
	AppName            string                            `json:"application"`
	Configs            []svcShowConfigurations           `json:"configurations"`
	ServiceDiscoveries []svcShowServiceDiscoveries       `json:"serviceDiscovery"`
	Routes             []svcShowRoutes                   `json:"routes"`
	Variables          []svcShowVariables                `json:"variables"`
	Resources          map[string][]*svcShowResourceInfo `json:"resources"`
}

SvcShowOutput contains detailed information about a service.

func ToSvcShowOutput

func ToSvcShowOutput(jsonInput string) (*SvcShowOutput, error)

ToSvcShowOutput unmarshal a JSON string to a SvcShowOutput struct.

Jump to

Keyboard shortcuts

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