repository

package
v0.0.0-...-67791ae Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package repository provides primitives for putting tasks into a persistence layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

type Actions interface {
	Create(id string, val Record) error
	Get(id string) (Record, error)
	Update(id string, val Record) error
	Delete(id string) error
}

Actions interface for interacting with the persistence layer.

type Error

type Error struct {
	Code    int32
	Message string
	Details []string
}

Error for all bmc actions.

func (*Error) Error

func (e *Error) Error() string

func (*Error) StructuredError

func (e *Error) StructuredError() *Error

StructuredError returns the error struct for convenience.

type Record

type Record struct {
	ID          string
	Description string
	Error       *Error
	State       string
	Result      string
	Complete    bool
	Messages    []string
}

Record that is stored in the repo.

Jump to

Keyboard shortcuts

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