payloadshookcontext

package
v0.0.0-...-f88c608 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: AGPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(registry facade.FacadeRegistry)

Register is called to expose a package of facades onto a given registry.

Types

type UnitFacadeV1

type UnitFacadeV1 struct{}

UnitFacadeV1 serves payload-specific API methods.

func NewHookContextFacadeV1

func NewHookContextFacadeV1() (*UnitFacadeV1, error)

NewHookContextFacadeV1 returns a new payloads hook context facade for the State and Unit given. It is used for facade registration.

func NewUnitFacadeV1

func NewUnitFacadeV1() *UnitFacadeV1

NewUnitFacadeV1 builds a new facade for the given backend.

func (UnitFacadeV1) List

List builds the list of payload being tracked for the given unit and IDs. If no IDs are provided then all tracked payloads for the unit are returned.

func (UnitFacadeV1) LookUp

LookUp identifies the payload with the provided name and raw ID.

func (UnitFacadeV1) SetStatus

SetStatus sets the raw status of a payload.

func (UnitFacadeV1) Track

Track stores a payload to be tracked in state.

func (UnitFacadeV1) Untrack

Untrack marks the identified payload as no longer being tracked.

type UnitFacadeV2

type UnitFacadeV2 struct{}

UnitFacadeV2 serves payload-specific API methods.

func NewHookContextFacadeV2

func NewHookContextFacadeV2() (*UnitFacadeV2, error)

NewHookContextFacadeV2 returns a new payloads hook context facade for the State and Unit given. It is used for facade registration.

func NewUnitFacadeV2

func NewUnitFacadeV2() *UnitFacadeV2

NewUnitFacadeV2 builds a new facade for the given backend.

Jump to

Keyboard shortcuts

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