utils

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureOutput added in v0.3.0

func CaptureOutput(f func()) string

CaptureOutput is used to capture stdout to be compared on tests.

func ConnectorTable added in v1.4.0

func ConnectorTable(connector *meroxa.Connector) string

func ConnectorsTable added in v0.7.0

func ConnectorsTable(connectors []*meroxa.Connector, hideHeaders bool) string

func EndpointsTable added in v0.7.0

func EndpointsTable(ends []meroxa.Endpoint, hideHeaders bool) string

func EnvironmentPreflightTable added in v1.6.0

func EnvironmentPreflightTable(environment *meroxa.Environment) string

func EnvironmentTable added in v1.5.0

func EnvironmentTable(environment *meroxa.Environment) string

nolint:funlen

func EnvironmentsTable added in v1.5.0

func EnvironmentsTable(environments []*meroxa.Environment, hideHeaders bool) string

func FunctionTable added in v1.6.0

func FunctionTable(fun *meroxa.Function) string

func FunctionsTable added in v1.6.0

func FunctionsTable(funs []*meroxa.Function, hideHeaders bool) string

func GenerateConnector added in v0.3.0

func GenerateConnector(pipelineID int, connectorName string) meroxa.Connector

func GenerateConnectorWithEnvironment added in v1.6.0

func GenerateConnectorWithEnvironment(pipelineID int, connectorName, envNameOrUUID string) meroxa.Connector

func GenerateEndpoint added in v0.7.0

func GenerateEndpoint() meroxa.Endpoint

func GenerateEnvironment added in v1.5.0

func GenerateEnvironment(environmentName string) meroxa.Environment

func GenerateEnvironmentFailed added in v1.6.0

func GenerateEnvironmentFailed(environmentName string) meroxa.Environment

func GeneratePipeline added in v0.3.0

func GeneratePipeline() meroxa.Pipeline

func GeneratePipelineWithEnvironment added in v1.5.0

func GeneratePipelineWithEnvironment() meroxa.Pipeline

func GenerateResource added in v0.3.0

func GenerateResource() meroxa.Resource

func GenerateResourceWithEnvironment added in v1.5.0

func GenerateResourceWithEnvironment() meroxa.Resource

func GenerateTransform added in v0.7.0

func GenerateTransform() meroxa.Transform

func IsFlagRequired added in v0.3.0

func IsFlagRequired(flag *pflag.Flag) bool

func PipelineTable added in v1.5.0

func PipelineTable(p *meroxa.Pipeline) string

func PipelinesTable added in v0.7.0

func PipelinesTable(pipelines []*meroxa.Pipeline, hideHeaders bool) string

func PrettyString added in v1.6.0

func PrettyString(a interface{}) (string, error)

func PrintConnectorsTable

func PrintConnectorsTable(connectors []*meroxa.Connector, hideHeaders bool)

func PrintEnvironmentsTable added in v1.5.0

func PrintEnvironmentsTable(environments []*meroxa.Environment, hideHeaders bool)

func PrintPipelineTable added in v1.5.0

func PrintPipelineTable(pipeline *meroxa.Pipeline)

func PrintPipelinesTable

func PrintPipelinesTable(pipelines []*meroxa.Pipeline, hideHeaders bool)

func PrintResourceTypesTable

func PrintResourceTypesTable(types []string, hideHeaders bool)

func PrintResourcesTable

func PrintResourcesTable(resources []*meroxa.Resource, hideHeaders bool)

func ResourceTable added in v0.10.0

func ResourceTable(res *meroxa.Resource) string

func ResourceTypesTable added in v0.7.0

func ResourceTypesTable(types []string, hideHeaders bool) string

func ResourcesTable added in v0.7.0

func ResourcesTable(resources []*meroxa.Resource, hideHeaders bool) string

func TransformsTable added in v0.7.0

func TransformsTable(transforms []*meroxa.Transform, hideHeaders bool) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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