resource

package
v0.0.59 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: GPL-3.0 Imports: 18 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) (contracts.ResponseImplementation, error)

func (*Resource) Compare added in v0.0.52

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

func (*Resource) Delete

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

func (*Resource) Get

func (*Resource) GetShared added in v0.0.52

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

func (*Resource) List

func (*Resource) ListSupported

func (resource *Resource) ListSupported(args ...interface{}) contracts.ResponseOperator

func (*Resource) Remove added in v0.0.52

func (resource *Resource) Remove(request contracts.RequestOperator) contracts.ResponseOperator

func (*Resource) Run

func (resource *Resource) Run(operation string, args ...interface{}) contracts.ResponseOperator

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