service

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: Apache-2.0 Imports: 24 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Output io.Writer = os.Stdout

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(yamlFile string, functionsToDelete []string, threads int, clientset *client.ConfigSet) 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) DeployFunctions added in v0.0.11

func (s *Service) DeployFunctions(functions []Service, removeOrphans bool, threads int, clientset *client.ConfigSet) error

func (*Service) DeployYAML

func (s *Service) DeployYAML(yamlFile string, functionsToDeploy []string, threads int, clientset *client.ConfigSet) error

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)

func (*Service) ManifestToServices added in v0.0.11

func (s *Service) ManifestToServices(YAML string) ([]Service, error)

Jump to

Keyboard shortcuts

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