core

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, config *types.Config) (*Store, error)

func (*Store) GetClient

func (c *Store) GetClient() pb.CoreRPCClient

func (*Store) GetIdentifier

func (c *Store) GetIdentifier(ctx context.Context) string

func (*Store) GetNode

func (c *Store) GetNode(ctx context.Context, nodename string) (*types.Node, error)

func (*Store) ListRunningWorkloadIDs added in v0.1.1

func (c *Store) ListRunningWorkloadIDs(ctx context.Context) ([]string, error)

func (*Store) SetNodeStatus

func (c *Store) SetNodeStatus(ctx context.Context, ttl int64) error

SetNodeStatus always reports the node as alive, core expires the status by ttl.

func (*Store) SetWorkloadStatus

func (c *Store) SetWorkloadStatus(ctx context.Context, status *types.WorkloadStatus) error

func (*Store) WorkloadExists added in v0.1.2

func (c *Store) WorkloadExists(ctx context.Context, ID string) (bool, error)

WorkloadExists reports whether core still owns the workload; core answers a missing one with its count or not-exists sentinel.

Jump to

Keyboard shortcuts

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