resource

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginResourceHandler = "resource"
)

Variables

This section is empty.

Functions

func NewResourcePlugin

func NewResourcePlugin(ctx context.Context, config *handlerTY.Config) (handlerTY.Plugin, error)

Types

type JobsConfig

type JobsConfig struct {
	Name      string                 `json:"name" yaml:"name"`
	Data      handlerTY.ResourceData `json:"date" yaml:"data"`
	Delay     time.Duration          `json:"delay" yaml:"delay"`
	CreatedAt time.Time              `json:"createdAt" yaml:"createdAt"`
}

JobsConfig used to keep the pre-delayed jobs

type ResourceClient

type ResourceClient struct {
	HandlerCfg *handlerTY.Config
	// contains filtered or unexported fields
}

ResourceClient struct

func (*ResourceClient) Close

func (c *ResourceClient) Close() error

Close handler implementation

func (*ResourceClient) Name

func (p *ResourceClient) Name() string

func (*ResourceClient) Post

func (c *ResourceClient) Post(parameters map[string]interface{}) error

Post handler implementation

func (*ResourceClient) Start

func (c *ResourceClient) Start() error

Start handler implementation

func (*ResourceClient) State

func (c *ResourceClient) State() *types.State

State implementation

Jump to

Keyboard shortcuts

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