Documentation ¶
Index ¶
- Constants
- func New(name, image, broker string, role Role, params map[string]string) triggermesh.Component
- type Role
- type Service
- func (s *Service) AsDigitalOceanObject(additionalEnvs map[string]string) (interface{}, error)
- func (s *Service) AsDockerComposeObject(additionalEnvs map[string]string) (interface{}, error)
- func (s *Service) AsK8sObject() (kubernetes.Object, error)
- func (s *Service) AsKubernetesDeployment(additionalEnvs map[string]string) (interface{}, error)
- func (s *Service) ConsumedEventTypes() ([]string, error)
- func (s *Service) GetAPIVersion() string
- func (s *Service) GetEventSource() (string, error)
- func (s *Service) GetEventTypes() ([]string, error)
- func (s *Service) GetKind() string
- func (s *Service) GetName() string
- func (s *Service) GetPort(ctx context.Context) (string, error)
- func (s *Service) GetSpec() map[string]interface{}
- func (s *Service) Info(ctx context.Context) (*docker.Container, error)
- func (s *Service) IsSource() bool
- func (s *Service) IsTarget() bool
- func (s *Service) Logs(ctx context.Context, since time.Time, follow bool) (io.ReadCloser, error)
- func (s *Service) SetEventAttributes(attributes map[string]string) error
- func (s *Service) SetSpec(spec map[string]interface{})
- func (s *Service) Start(ctx context.Context, additionalEnvs map[string]string, restart bool) (*docker.Container, error)
- func (s *Service) Stop(ctx context.Context) error
Constants ¶
View Source
const ( APIVersion = "serving.knative.dev/v1" Kind = "Service" RoleLabel = "triggermesh.io/role" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct { Name string Broker string Image string // contains filtered or unexported fields }
func (*Service) AsDigitalOceanObject ¶ added in v1.2.0
func (*Service) AsDockerComposeObject ¶ added in v1.2.0
func (*Service) AsK8sObject ¶
func (s *Service) AsK8sObject() (kubernetes.Object, error)
func (*Service) AsKubernetesDeployment ¶ added in v1.4.0
func (*Service) ConsumedEventTypes ¶
func (*Service) GetAPIVersion ¶
func (*Service) GetEventSource ¶
func (*Service) GetEventTypes ¶
func (*Service) SetEventAttributes ¶
Click to show internal directories.
Click to hide internal directories.