Documentation ¶
Index ¶
- func NewPostgres(logger logger.Logger) bindings.OutputBinding
- type Postgres
- func (p *Postgres) Close() error
- func (p *Postgres) GetComponentMetadata() map[string]string
- func (p *Postgres) Init(ctx context.Context, meta bindings.Metadata) error
- func (p *Postgres) Invoke(ctx context.Context, req *bindings.InvokeRequest) (resp *bindings.InvokeResponse, err error)
- func (p *Postgres) Operations() []bindings.OperationKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPostgres ¶
func NewPostgres(logger logger.Logger) bindings.OutputBinding
NewPostgres returns a new PostgreSQL output binding.
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
Postgres represents PostgreSQL output binding.
func (*Postgres) GetComponentMetadata ¶ added in v1.11.0
GetComponentMetadata returns the metadata of the component.
func (*Postgres) Invoke ¶
func (p *Postgres) Invoke(ctx context.Context, req *bindings.InvokeRequest) (resp *bindings.InvokeResponse, err error)
Invoke handles all invoke operations.
func (*Postgres) Operations ¶
func (p *Postgres) Operations() []bindings.OperationKind
Operations returns list of operations supported by PostgreSql binding.
Click to show internal directories.
Click to hide internal directories.