mappers

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFirstColumn

func GetFirstColumn(row *TableRow) string

GetFirstColumn returns first table row column

func GetSecondColumn

func GetSecondColumn(row *TableRow) string

GetSecondColumn returns second table row column

func GetThirdColumn

func GetThirdColumn(row *TableRow) string

GetThirdColumn returns third table row column

func MapBuildResourceRequirementsTable

func MapBuildResourceRequirementsTable(table *godog.Table, build *v1.ResourceRequirements) error

MapBuildResourceRequirementsTable maps Cucumber table of build resource requirements

func MapInfinispanCredentialsFromTable

func MapInfinispanCredentialsFromTable(table *godog.Table) (username, password string, err error)

MapInfinispanCredentialsFromTable maps Cucumber table to Infinispan credentials

func MapKogitoBuildTable

func MapKogitoBuildTable(table *godog.Table, buildHolder *types.KogitoBuildHolder) error

MapKogitoBuildTable maps Cucumber table to KogitoBuildHolder

func MapKogitoInfraTable

func MapKogitoInfraTable(table *godog.Table, kogitoInfra *v1beta1.KogitoInfra) error

MapKogitoInfraTable maps Cucumber table to KogitoInfra information

func MapKogitoServiceTable

func MapKogitoServiceTable(table *godog.Table, serviceHolder *types.KogitoServiceHolder) error

MapKogitoServiceTable maps Cucumber table to KogitoServiceHolder

func MapKogitoServiceTableRow

func MapKogitoServiceTableRow(row *TableRow, kogitoService *bddtypes.KogitoServiceHolder) (mappingFound bool, err error)

MapKogitoServiceTableRow maps Cucumber table row to KogitoServiceHolder

func MapMavenCommandConfigTable

func MapMavenCommandConfigTable(table *godog.Table, config *MavenCommandConfig) error

MapMavenCommandConfigTable maps Cucumber table with Maven options to a slice

func MapMongoDBCredentialsFromTable

func MapMongoDBCredentialsFromTable(table *godog.Table, creds *MongoDBCredentialsConfig) error

MapMongoDBCredentialsFromTable maps Cucumber table to MongoDB credentials

func MapPostgresqlCredentialsFromTable added in v1.9.0

func MapPostgresqlCredentialsFromTable(table *godog.Table, creds *PostgresqlCredentialsConfig) error

MapPostgresqlCredentialsFromTable maps Cucumber table to PostgreSQL credentials

func MapRuntimeResourceRequirementsTable

func MapRuntimeResourceRequirementsTable(table *godog.Table, runtime *v1.ResourceRequirements) error

MapRuntimeResourceRequirementsTable maps Cucumber table of runtime resource requirements

func MustParseEnabledDisabled

func MustParseEnabledDisabled(value string) bool

MustParseEnabledDisabled parse a boolean string value

Types

type MavenCommandConfig

type MavenCommandConfig struct {
	Profiles []string
	Options  []string
	Native   bool
}

MavenCommandConfig contains configuration for Maven Command execution

type MongoDBCredentialsConfig

type MongoDBCredentialsConfig struct {
	Username     string
	Password     string
	Database     string
	AuthDatabase string
}

MongoDBCredentialsConfig contains credentials information for MongoDB, taken from configuration table

type PostgresqlCredentialsConfig added in v1.9.0

type PostgresqlCredentialsConfig struct {
	Username string
	Password string
	Database string
}

PostgresqlCredentialsConfig contains credentials information for PostgreSQL, taken from configuration table

type TableRow

type TableRow = messages.PickleStepArgument_PickleTable_PickleTableRow

TableRow represents a row of godog.Table made to a step definition

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳