utils

package
v1.5.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContainerName added in v0.2.0

func CreateContainerName(serviceContainerName string, dockerNetwork string) string

func CreateDirectory added in v0.3.0

func CreateDirectory(dir string) error

func GetSocket added in v1.5.0

func GetSocket(path, appID, protocol string) string

func IsAddressLegal added in v1.4.0

func IsAddressLegal(address string) bool

func IsDaprListeningOnPort added in v0.11.0

func IsDaprListeningOnPort(port int, timeout time.Duration) error

IsDaprListeningOnPort checks if Dapr is litening to a given port.

func IsDaprListeningOnSocket added in v1.5.0

func IsDaprListeningOnSocket(socket string, timeout time.Duration) error

func IsDockerInstalled added in v0.8.0

func IsDockerInstalled() bool

IsDockerInstalled checks whether docker is installed/running.

func MarshalAndWriteTable added in v1.0.0

func MarshalAndWriteTable(writer io.Writer, in interface{}) error

func PrintDetail added in v1.0.0

func PrintDetail(writer io.Writer, outputFormat string, list interface{}) error

func PrintTable

func PrintTable(csvContent string)

PrintTable to print in the table format.

func RunCmdAndWait

func RunCmdAndWait(name string, args ...string) (string, error)

func TruncateString

func TruncateString(str string, maxLength int) string

func WriteTable added in v1.0.0

func WriteTable(writer io.Writer, csvContent string)

WriteTable writes the csv table to writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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