Documentation ¶
Index ¶
- type Service
- func (s *Service) CreateCronjobSource(clientset *client.ConfigSet) error
- func (s *Service) Delete(clientset *client.ConfigSet) error
- func (s *Service) DeleteYAML(filepath string, functions []string, clientset *client.ConfigSet) (err error)
- func (s *Service) Deploy(clientset *client.ConfigSet) (string, error)
- func (s *Service) DeployYAML(YAML string, functionsToDeploy []string, clientset *client.ConfigSet) (services []Service, err error)
- func (s *Service) Get(clientset *client.ConfigSet) (*servingv1alpha1.Service, error)
- func (s *Service) List(clientset *client.ConfigSet) (*servingv1alpha1.ServiceList, error)
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 (*Service) DeleteYAML ¶
func (*Service) Deploy ¶
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) List ¶
func (s *Service) List(clientset *client.ConfigSet) (*servingv1alpha1.ServiceList, error)
Click to show internal directories.
Click to hide internal directories.