convert

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Copyright 2018 The Knative Authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromCRD

func FromCRD(u *v1alpha1.BuildSpec) (*cloudbuild.Build, error)

func ToAssociativeListFromEnv

func ToAssociativeListFromEnv(og []corev1.EnvVar) ([]string, error)

func ToCRD

func ToCRD(u *cloudbuild.Build) (*v1alpha1.BuildSpec, error)

func ToContainerFromStep

func ToContainerFromStep(og *cloudbuild.BuildStep) (*corev1.Container, error)

func ToEnvFromAssociativeList

func ToEnvFromAssociativeList(og []string) ([]corev1.EnvVar, error)

func ToEnvVarFromString

func ToEnvVarFromString(og string) (*corev1.EnvVar, error)

func ToGCSFromStorageSource

func ToGCSFromStorageSource(og *cloudbuild.StorageSource) *v1alpha1.GCSSourceSpec

func ToStepFromContainer

func ToStepFromContainer(og *corev1.Container) (*cloudbuild.BuildStep, error)

func ToStorageSourceFromGCS

func ToStorageSourceFromGCS(og *v1alpha1.GCSSourceSpec) (*cloudbuild.StorageSource, error)

func ToStringFromEnvVar

func ToStringFromEnvVar(og *corev1.EnvVar) (string, error)

func ToVolumeFromVolumeMount

func ToVolumeFromVolumeMount(og *corev1.VolumeMount) (*cloudbuild.Volume, error)

func ToVolumeMountFromVolume

func ToVolumeMountFromVolume(og *cloudbuild.Volume) (*corev1.VolumeMount, error)

func ToVolumeMountsFromVolumes

func ToVolumeMountsFromVolumes(og []*cloudbuild.Volume) ([]corev1.VolumeMount, error)

func ToVolumesFromVolumeMounts

func ToVolumesFromVolumeMounts(og []corev1.VolumeMount) ([]*cloudbuild.Volume, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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