converter

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIKeyValueToLabel

func APIKeyValueToLabel(apiKeyValues []*api.KeyValue) map[string]string

func APIMetricsToCore added in v0.16.0

func APIMetricsToCore(metrics []*api.Metric) v1.Metrics

APIMetricsToCore converts []*api.Metric to v1.Metrics

func APIParameterOptionToInternal added in v0.8.0

func APIParameterOptionToInternal(option *api.ParameterOption) *v1.ParameterOption

func APIParameterOptionsToInternal added in v0.8.0

func APIParameterOptionsToInternal(options []*api.ParameterOption) []*v1.ParameterOption

func APIParameterToInternal added in v0.8.0

func APIParameterToInternal(param *api.Parameter) *v1.Parameter

func LabelToKeyValue added in v0.15.0

func LabelToKeyValue(label *v1.Label) *api.KeyValue

LabelToKeyValue converts a *v1.Label to *api.Label

func LabelsToKeyValues added in v0.15.0

func LabelsToKeyValues(labels []*v1.Label) []*api.KeyValue

LabelsToKeyValues converts []*v1.Label to []*api.Label

func MappingToKeyValue

func MappingToKeyValue(mapping map[string]string) []*api.KeyValue

func MetricsToAPI added in v0.16.0

func MetricsToAPI(metrics v1.Metrics) []*api.Metric

MetricsToAPI converts Metrics to the API version

func ParameterOptionToAPI

func ParameterOptionToAPI(option *v1.ParameterOption) *api.ParameterOption

func ParameterOptionsToAPI

func ParameterOptionsToAPI(options []*v1.ParameterOption) []*api.ParameterOption

func ParameterToAPI

func ParameterToAPI(param v1.Parameter) *api.Parameter

ParameterToAPI converts a v1.Parameter to a *api.Parameter

func ParametersToAPI

func ParametersToAPI(params []v1.Parameter) []*api.Parameter

func TimestampToAPIString added in v0.12.0

func TimestampToAPIString(ts *time.Time) string

TimestampToAPIString converts a *time.Time to an API string in the RFC3339 format if ts is nil, an empty string is returned

func WorkflowExecutionStatisticsReportToAPI added in v0.13.0

func WorkflowExecutionStatisticsReportToAPI(report *v1.WorkflowExecutionStatisticReport) *api.WorkflowExecutionStatisticReport

WorkflowExecutionStatisticsReportToAPI converts v1.WorkflowExecutionStatisticReport to api.WorkflowExecutionStatisticReport

func WorkspaceStatisticsReportToAPI added in v0.13.0

func WorkspaceStatisticsReportToAPI(report *v1.WorkspaceStatisticReport) *api.WorkspaceStatisticReport

WorkspaceStatisticsReportToAPI converts v1.WorkspaceStatisticReport to api.WorkspaceStatisticReport

Types

This section is empty.

Jump to

Keyboard shortcuts

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