store

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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 NewStore

func NewStore(path string) (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) CreateMachineInstance

func (s *Store) CreateMachineInstance(mi structs.MachineInstance) error

func (*Store) DeleteAllocation

func (s *Store) DeleteAllocation(id string) error

func (*Store) DeleteInstance

func (s *Store) DeleteInstance(id string) error

func (*Store) DeleteMachineInstance

func (s *Store) DeleteMachineInstance(id string) error

func (*Store) DeleteMachineInstanceEvent

func (s *Store) DeleteMachineInstanceEvent(eventId ulid.ULID) error

func (*Store) Init

func (s *Store) Init() error

func (*Store) LoadAllocations

func (s *Store) LoadAllocations() ([]structs.Allocation, error)

func (*Store) LoadInstances

func (s *Store) LoadInstances() ([]instance.Instance, error)

func (*Store) LoadMachineInstanceEvents

func (s *Store) LoadMachineInstanceEvents() ([]api.MachineEvent, error)

func (*Store) LoadMachineInstances

func (s *Store) LoadMachineInstances() ([]structs.MachineInstance, error)

func (*Store) PutAllocation

func (s *Store) PutAllocation(a structs.Allocation) error

func (*Store) PutInstance

func (s *Store) PutInstance(instance instance.Instance) error

func (*Store) PutMachineInstanceEvent

func (s *Store) PutMachineInstanceEvent(event api.MachineEvent) error

func (*Store) UpdateMachineInstanceState

func (s *Store) UpdateMachineInstanceState(id string, mi structs.MachineInstanceState) error

Jump to

Keyboard shortcuts

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