deploy

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var YAML string

Functions

func NewDeployCmd

func NewDeployCmd(clientset *client.ConfigSet) *cobra.Command

NewDeployCmd returns deploy cobra command and its subcommands

Types

type Build

type Build struct {
	Name          string
	Source        string
	Revision      string
	Step          string
	Command       []string
	Buildtemplate string
	Args          []string
	Image         string
}

Build structure represents knative build object

func (*Build) Deploy

func (b *Build) Deploy(clientset *client.ConfigSet) error

Deploy uses Build structure to generate and deploy knative build

type Buildtemplate

type Buildtemplate struct {
	Name           string
	File           string
	RegistrySecret string
}

Buildtemplate contains information about knative buildtemplate definition

func (*Buildtemplate) Deploy

func (b *Buildtemplate) Deploy(clientset *client.ConfigSet) (string, error)

Deploy deploys knative buildtemplate either from local file or by its URL

type Channel

type Channel struct {
	Name        string
	Provisioner string
}

Channel represents knative channel object

func (*Channel) Deploy

func (c *Channel) Deploy(clientset *client.ConfigSet) error

Deploy knative eventing channel

type Service

type Service struct {
	Name           string
	Source         string
	Revision       string
	PullPolicy     string
	ResultImageTag string
	Buildtemplate  string
	RegistrySecret string // Does not belong to the service, need to be deleted
	Env            []string
	Annotations    map[string]string
	Labels         []string
	BuildArgs      []string
	Wait           bool
}

Service represents knative service structure

func (*Service) Deploy

func (s *Service) Deploy(clientset *client.ConfigSet) error

Deploy receives Service structure and generate knative/service object to deploy it in knative cluster

func (*Service) DeployYAML

func (s *Service) DeployYAML(YAML string, functionsToDeploy []string, clientset *client.ConfigSet) (services []Service, err error)

DeployYAML deploys functions defined in serverless.yaml file

Jump to

Keyboard shortcuts

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