Documentation
¶
Overview ¶
middleware defines common interfaces multiple middleware components use.
Index ¶
- type ComponentResource
- type CustomResource
- type Invoke
- type Scaffold
- func (s *Scaffold) Cancel(ctx p.Context) error
- func (s *Scaffold) Check(ctx p.Context, req p.CheckRequest) (p.CheckResponse, error)
- func (s *Scaffold) CheckConfig(ctx p.Context, req p.CheckRequest) (p.CheckResponse, error)
- func (s *Scaffold) Configure(ctx p.Context, req p.ConfigureRequest) error
- func (s *Scaffold) Construct(pctx p.Context, typ string, name string, ctx *pulumi.Context, ...) (pulumi.ComponentResource, error)
- func (s *Scaffold) Create(ctx p.Context, req p.CreateRequest) (p.CreateResponse, error)
- func (s *Scaffold) Delete(ctx p.Context, req p.DeleteRequest) error
- func (s *Scaffold) Diff(ctx p.Context, req p.DiffRequest) (p.DiffResponse, error)
- func (s *Scaffold) DiffConfig(ctx p.Context, req p.DiffRequest) (p.DiffResponse, error)
- func (s *Scaffold) GetSchema(ctx p.Context, req p.GetSchemaRequest) (p.GetSchemaResponse, error)
- func (s *Scaffold) Invoke(ctx p.Context, req p.InvokeRequest) (p.InvokeResponse, error)
- func (s *Scaffold) Read(ctx p.Context, req p.ReadRequest) (p.ReadResponse, error)
- func (s *Scaffold) Update(ctx p.Context, req p.UpdateRequest) (p.UpdateResponse, error)
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 ¶
type CustomResource interface { Check(p.Context, p.CheckRequest) (p.CheckResponse, error) Diff(p.Context, p.DiffRequest) (p.DiffResponse, error) Create(p.Context, p.CreateRequest) (p.CreateResponse, error) Read(p.Context, p.ReadRequest) (p.ReadResponse, error) Update(p.Context, p.UpdateRequest) (p.UpdateResponse, error) Delete(p.Context, p.DeleteRequest) error }
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) 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) Construct ¶
func (s *Scaffold) Construct(pctx p.Context, typ string, name string, ctx *pulumi.Context, inputs pprovider.ConstructInputs, opts pulumi.ResourceOption) (pulumi.ComponentResource, error)
func (*Scaffold) Create ¶
func (s *Scaffold) Create(ctx p.Context, req p.CreateRequest) (p.CreateResponse, 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. |
Click to show internal directories.
Click to hide internal directories.