source

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(name, kind, broker, version string, crd crd.CRD, params interface{}, status map[string]interface{}) triggermesh.Component

Types

type Source

type Source struct {
	Name string

	CRD crd.CRD

	Broker  string
	Kind    string
	Version string
	// contains filtered or unexported fields
}

func (*Source) AsDigitalOceanObject added in v1.2.0

func (s *Source) AsDigitalOceanObject(additionalEnvs map[string]string) (interface{}, error)

func (*Source) AsDockerComposeObject added in v1.2.0

func (s *Source) AsDockerComposeObject(additionalEnvs map[string]string) (interface{}, error)

func (*Source) AsK8sObject

func (s *Source) AsK8sObject() (kubernetes.Object, error)

func (*Source) AsKubernetesDeployment added in v1.4.0

func (s *Source) AsKubernetesDeployment(additionalEnvs map[string]string) (interface{}, error)

func (*Source) Finalize

func (s *Source) Finalize(ctx context.Context, secrets map[string]string) error

func (*Source) GetAPIVersion

func (s *Source) GetAPIVersion() string

func (*Source) GetChildren

func (s *Source) GetChildren() ([]triggermesh.Component, error)

func (*Source) GetEventSource

func (s *Source) GetEventSource() (string, error)

func (*Source) GetEventTypes

func (s *Source) GetEventTypes() ([]string, error)

func (*Source) GetExternalResources added in v0.0.2

func (s *Source) GetExternalResources() map[string]interface{}

func (*Source) GetKind

func (s *Source) GetKind() string

func (*Source) GetName

func (s *Source) GetName() string

func (*Source) GetSpec

func (s *Source) GetSpec() map[string]interface{}

func (*Source) Info

func (s *Source) Info(ctx context.Context) (*docker.Container, error)

func (*Source) Initialize

func (s *Source) Initialize(ctx context.Context, secrets map[string]string) (map[string]interface{}, error)

func (*Source) Logs added in v1.2.0

func (s *Source) Logs(ctx context.Context, since time.Time, follow bool) (io.ReadCloser, error)

func (*Source) SetEventAttributes

func (s *Source) SetEventAttributes(map[string]string) error

func (*Source) SetSpec added in v1.2.0

func (s *Source) SetSpec(spec map[string]interface{})

func (*Source) Start

func (s *Source) Start(ctx context.Context, additionalEnvs map[string]string, restart bool) (*docker.Container, error)

func (*Source) Stop

func (s *Source) Stop(ctx context.Context) error

func (*Source) UpdateStatus

func (s *Source) UpdateStatus(status map[string]interface{})

Jump to

Keyboard shortcuts

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