dispatch

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: 8 Imported by: 0

Documentation

Overview

A provider that dispatches provider level calls such as `Create` to resource level invocations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// The underlying provider if any
	p.Provider
	// contains filtered or unexported fields
}

A provider that dispatches URN based methods to their appropriate go instance.

func Wrap

func Wrap(provider p.Provider) *Provider

Create a new Dispatch provider around another provider. If `provider` is nil then an empty provider will be used.

func (*Provider) Check

func (d *Provider) Check(ctx p.Context, req p.CheckRequest) (p.CheckResponse, error)

func (*Provider) Construct

func (*Provider) Create

func (d *Provider) Create(ctx p.Context, req p.CreateRequest) (p.CreateResponse, error)

func (*Provider) Delete

func (d *Provider) Delete(ctx p.Context, req p.DeleteRequest) error

func (*Provider) Diff

func (d *Provider) Diff(ctx p.Context, req p.DiffRequest) (p.DiffResponse, error)

func (*Provider) Invoke

func (d *Provider) Invoke(ctx p.Context, req p.InvokeRequest) (p.InvokeResponse, error)

func (*Provider) Read

func (d *Provider) Read(ctx p.Context, req p.ReadRequest) (p.ReadResponse, error)

func (*Provider) Update

func (d *Provider) Update(ctx p.Context, req p.UpdateRequest) (p.UpdateResponse, error)

func (*Provider) WithComponentResources

func (d *Provider) WithComponentResources(components map[tokens.Type]t.ComponentResource) *Provider

Add component resources to be dispatched to.

func (*Provider) WithCustomResources

func (d *Provider) WithCustomResources(resources map[tokens.Type]t.CustomResource) *Provider

Add custom resources to be dispatched to.

func (*Provider) WithInvokes

func (d *Provider) WithInvokes(invokes map[tokens.Type]t.Invoke) *Provider

Add invokes to be dispatched to.

func (*Provider) WithModuleMap

func (d *Provider) WithModuleMap(m map[tokens.ModuleName]tokens.ModuleName) *Provider

Jump to

Keyboard shortcuts

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