core

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 14 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) GetIdentifier

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

func (*Store) GetNode

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

func (*Store) ListRunningWorkloadIDs added in v0.1.1

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

func (*Store) SetNodeStatus

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

SetNodeStatus reports the node alive under core's ttl.

func (*Store) SetWorkloadStatus

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

func (*Store) WorkloadExists added in v0.1.2

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

WorkloadExists reports whether core still owns the workload.

Jump to

Keyboard shortcuts

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