core

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 10 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 Get

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

Get returns the process-wide core store, creating it on first call.

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) GetNodeStatus

func (c *Store) GetNodeStatus(ctx context.Context, nodename string) (*types.NodeStatus, 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, ttl int64) error

Jump to

Keyboard shortcuts

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