resource

package
v0.1.62 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: GPL-3.0 Imports: 12 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() ishared.Shared

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  *clients.Http
}

func (*Shared) Drain added in v0.1.56

func (shared *Shared) Drain()

func (*Shared) GetCluster added in v0.1.56

func (shared *Shared) GetCluster() *cluster.Cluster

func (*Shared) IsDrained added in v0.1.56

func (shared *Shared) IsDrained() bool

Jump to

Keyboard shortcuts

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