pressurepublish

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetClusterMember(string) (*api.ClusterMember, string, error)
	UpdateClusterMember(string, api.ClusterMemberPut, string) error
}

type Options

type Options struct {
	MemberName       string
	StatePath        string
	Policy           pressuregate.Policy
	Sample           pressuregate.Sample
	Apply            bool
	ForceCloseReason string
	Now              time.Time
}

type Result

type Result struct {
	MemberName string             `json:"member_name"`
	State      pressuregate.State `json:"state"`
	Metadata   map[string]string  `json:"metadata"`
	Scheduler  string             `json:"scheduler_instance"`
	Changed    bool               `json:"changed"`
	Applied    bool               `json:"applied"`
}

func Reconcile

func Reconcile(ctx context.Context, client Client, options Options) (Result, error)

Jump to

Keyboard shortcuts

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