resource

package
v0.0.92 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const KIND string = "resource"

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	Started    bool
	Shared     *Shared
	Definition v1.ResourceDefinition
}

func New

func New(mgr *manager.Manager) *Resource

func (*Resource) Apply added in v0.0.52

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

func (*Resource) Compare added in v0.0.52

func (resource *Resource) Compare(user *authentication.User, jsonData []byte) (contracts.Response, error)

func (*Resource) Delete

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

func (*Resource) Get

func (resource *Resource) Get(request contracts.Control) contracts.Response

func (*Resource) GetShared added in v0.0.52

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

func (*Resource) List

func (resource *Resource) List(request contracts.Control) contracts.Response

func (*Resource) ListSupported

func (resource *Resource) ListSupported(request contracts.Control) contracts.Response

func (*Resource) Remove added in v0.0.52

func (resource *Resource) Remove(request contracts.Control) contracts.Response

func (*Resource) Run

func (resource *Resource) Run(operation string, request contracts.Control) contracts.Response

func (*Resource) Start added in v0.0.52

func (resource *Resource) Start() error

type Shared added in v0.0.52

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

Jump to

Keyboard shortcuts

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