middleware

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

middleware defines common interfaces multiple middleware components use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentResource

type ComponentResource interface {
	Construct(pctx p.Context, typ string, name string,
		ctx *pulumi.Context, inputs pprovider.ConstructInputs, opts pulumi.ResourceOption) (pulumi.ComponentResource, error)
}

A shared definition of a ComponentResource.

type CustomResource

A shared definition of a CustomResource.

type Invoke

type Invoke interface {
	Invoke(p.Context, p.InvokeRequest) (p.InvokeResponse, error)
}

A shared definition of an Invoke.

type Scaffold

type Scaffold struct {
	GetSchemaFn func(p.Context, p.GetSchemaRequest) (p.GetSchemaResponse, error)
	CancelFn    func(p.Context) error

	CheckConfigFn func(p.Context, p.CheckRequest) (p.CheckResponse, error)
	DiffConfigFn  func(p.Context, p.DiffRequest) (p.DiffResponse, error)
	ConfigureFn   func(p.Context, p.ConfigureRequest) error

	InvokeFn    func(p.Context, p.InvokeRequest) (p.InvokeResponse, error)
	CheckFn     func(p.Context, p.CheckRequest) (p.CheckResponse, error)
	DiffFn      func(p.Context, p.DiffRequest) (p.DiffResponse, error)
	CreateFn    func(p.Context, p.CreateRequest) (p.CreateResponse, error)
	ReadFn      func(p.Context, p.ReadRequest) (p.ReadResponse, error)
	UpdateFn    func(p.Context, p.UpdateRequest) (p.UpdateResponse, error)
	DeleteFn    func(p.Context, p.DeleteRequest) error
	ConstructFn func(pctx p.Context, typ string, name string,
		ctx *pulumi.Context, inputs pprovider.ConstructInputs, opts pulumi.ResourceOption) (pulumi.ComponentResource, error)
}

Scaffold is a Provider that allows overriding calls by setting a field. If the field associated with a Provider method call is not set, "not yet implemented" is returned. Every Provider method has an associated field in Scaffold.

func (*Scaffold) Cancel

func (s *Scaffold) Cancel(ctx p.Context) error

func (*Scaffold) Check

func (s *Scaffold) Check(ctx p.Context, req p.CheckRequest) (p.CheckResponse, error)

func (*Scaffold) CheckConfig

func (s *Scaffold) CheckConfig(ctx p.Context, req p.CheckRequest) (p.CheckResponse, error)

func (*Scaffold) Configure

func (s *Scaffold) Configure(ctx p.Context, req p.ConfigureRequest) error

func (*Scaffold) Construct

func (*Scaffold) Create

func (s *Scaffold) Create(ctx p.Context, req p.CreateRequest) (p.CreateResponse, error)

func (*Scaffold) Delete

func (s *Scaffold) Delete(ctx p.Context, req p.DeleteRequest) error

func (*Scaffold) Diff

func (s *Scaffold) Diff(ctx p.Context, req p.DiffRequest) (p.DiffResponse, error)

func (*Scaffold) DiffConfig

func (s *Scaffold) DiffConfig(ctx p.Context, req p.DiffRequest) (p.DiffResponse, error)

func (*Scaffold) GetSchema

func (s *Scaffold) GetSchema(ctx p.Context, req p.GetSchemaRequest) (p.GetSchemaResponse, error)

func (*Scaffold) Invoke

func (s *Scaffold) Invoke(ctx p.Context, req p.InvokeRequest) (p.InvokeResponse, error)

func (*Scaffold) Read

func (s *Scaffold) Read(ctx p.Context, req p.ReadRequest) (p.ReadResponse, error)

func (*Scaffold) Update

func (s *Scaffold) Update(ctx p.Context, req p.UpdateRequest) (p.UpdateResponse, error)

Directories

Path Synopsis
Cancel ensures that contexts are canceled when their associated tasks are completed.
Cancel ensures that contexts are canceled when their associated tasks are completed.
Context allows systemic wrapping of provider.Context before invoking a subsidiary provider.
Context allows systemic wrapping of provider.Context before invoking a subsidiary provider.
A provider that dispatches provider level calls such as `Create` to resource level invocations.
A provider that dispatches provider level calls such as `Create` to resource level invocations.
The schema middleware provides facilities to respond to GetSchema.
The schema middleware provides facilities to respond to GetSchema.

Jump to

Keyboard shortcuts

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