utils

package
v0.0.0-...-d51a12e Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuildResource

func GetBuildResource(rnInfo *RuntimeInfo, fn *runtimev1alpha1.Function, imageName string, buildName string) *buildv1alpha1.Build

func GetServiceSpec

func GetServiceSpec(imageName string, fn runtimev1alpha1.Function, rnInfo *RuntimeInfo) servingv1alpha1.ServiceSpec

GetServiceSpec gets ServiceSpec for a function

Types

type Runtime

type Runtime interface {
	ReadConfigMap() error
}

type RuntimeInfo

type RuntimeInfo struct {
	RegistryInfo      string
	AvailableRuntimes []RuntimesSupported
	ServiceAccount    string
}

func New

func New(config *corev1.ConfigMap) (*RuntimeInfo, error)

func (*RuntimeInfo) DockerFileConfigMapName

func (ri *RuntimeInfo) DockerFileConfigMapName(runtime string) string

type RuntimesSupported

type RuntimesSupported struct {
	ID             string `json:"ID"`
	DockerFileName string `json:"DockerFileName"`
}

Jump to

Keyboard shortcuts

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