target

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{}) triggermesh.Component

Types

type Target

type Target struct {
	Name string

	CRD crd.CRD

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

func (*Target) AsDigitalOceanObject added in v1.2.0

func (t *Target) AsDigitalOceanObject(additionalEnvs map[string]string) (interface{}, error)

func (*Target) AsDockerComposeObject added in v1.2.0

func (t *Target) AsDockerComposeObject(additionalEnvs map[string]string) (interface{}, error)

func (*Target) AsK8sObject

func (t *Target) AsK8sObject() (kubernetes.Object, error)

func (*Target) AsKubernetesDeployment added in v1.4.0

func (t *Target) AsKubernetesDeployment(additionalEnvs map[string]string) (interface{}, error)

func (*Target) ConsumedEventTypes

func (t *Target) ConsumedEventTypes() ([]string, error)

func (*Target) GetAPIVersion

func (t *Target) GetAPIVersion() string

func (*Target) GetChildren

func (t *Target) GetChildren() ([]triggermesh.Component, error)

func (*Target) GetKind

func (t *Target) GetKind() string

func (*Target) GetName

func (t *Target) GetName() string

func (*Target) GetPort

func (t *Target) GetPort(ctx context.Context) (string, error)

func (*Target) GetSpec

func (t *Target) GetSpec() map[string]interface{}

func (*Target) Info

func (t *Target) Info(ctx context.Context) (*docker.Container, error)

func (*Target) Logs added in v1.2.0

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

func (*Target) SetSpec added in v1.2.0

func (t *Target) SetSpec(spec map[string]interface{})

func (*Target) Start

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

func (*Target) Stop

func (t *Target) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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