service

package
v0.0.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Name           string
	Namespace      string
	Registry       string
	Source         string
	Revision       string
	PullPolicy     string
	Concurrency    int
	ResultImageTag string
	Buildtemplate  string
	RegistrySecret string // Does not belong to the service, need to be deleted
	Env            []string
	EnvSecrets     []string
	Annotations    map[string]string
	Labels         []string
	BuildArgs      []string
	BuildTimeout   string
	Cronjob        struct {
		Schedule string
		Data     string
	}
}

Service represents knative service structure

func (*Service) CreateCronjobSource

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

func (*Service) Delete

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

DeleteService remove knative service object

func (*Service) DeleteYAML

func (s *Service) DeleteYAML(filepath string, functions []string, clientset *client.ConfigSet) (err error)

func (*Service) Deploy

func (s *Service) Deploy(clientset *client.ConfigSet) (string, 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

func (*Service) Get

func (s *Service) Get(clientset *client.ConfigSet) (*servingv1alpha1.Service, error)

func (*Service) List

func (s *Service) List(clientset *client.ConfigSet) (*servingv1alpha1.ServiceList, error)

Jump to

Keyboard shortcuts

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