resource

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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