config

package
v0.4.0-preview Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKnativeConfig

func GenerateKnativeConfig(service ServiceSummary, cfg latest.Config) (v1.Service, error)

GenerateKnativeConfig generate knative yaml specifics to the Kuda workflow.

func GenerateSkaffoldConfig

func GenerateSkaffoldConfig(service ServiceSummary, manifest latest.Config, knativeFile string) (v1.SkaffoldConfig, error)

GenerateSkaffoldConfig generate skaffold yaml specifics to the Kuda workflow.

func MarshalKnativeConfig

func MarshalKnativeConfig(s v1.Service) ([]byte, error)

MarshalKnativeConfig generate yaml bytes from a knative config.

Types

type ProviderConfig

type ProviderConfig struct {
	AuthURL string     `yaml:"auth"`
	APIURL  string     `yaml:"api"`
	User    *auth.User `yaml:"user"`
}

ProviderConfig stores a remote deployer config.

type ServiceSummary

type ServiceSummary struct {
	Name           string
	Namespace      string
	DockerArtifact string
	BuildType      *v1.BuildType
}

ServiceSummary stores a summary of a knative service.

type UserConfig

type UserConfig struct {
	Namespace string         `yaml:"namespace"`
	Provider  ProviderConfig `yaml:"provider"`
}

UserConfig stores a local user configuration.

Jump to

Keyboard shortcuts

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