resource

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	Started bool
	Shared  *Shared
}

func New

func New(mgr *manager.Manager) *Resource

func (*Resource) Apply added in v0.0.52

func (resource *Resource) Apply(user *authentication.User, definition []byte, agent string) (iresponse.Response, error)

func (*Resource) Delete

func (resource *Resource) Delete(user *authentication.User, definition []byte, agent string) (iresponse.Response, error)

func (*Resource) Event added in v0.0.137

func (resource *Resource) Event(event ievents.Event) error

func (*Resource) GetShared added in v0.0.52

func (resource *Resource) GetShared() interface{}

func (*Resource) Start added in v0.0.52

func (resource *Resource) Start() error

func (*Resource) State added in v0.1.31

func (resource *Resource) State(user *authentication.User, definition []byte, agent string) (iresponse.Response, error)

type Shared added in v0.0.52

type Shared struct {
	Manager *manager.Manager
	Client  *client.Http
}

func (*Shared) GetManager added in v0.1.30

func (shared *Shared) GetManager() *manager.Manager

Jump to

Keyboard shortcuts

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