revisions

package
v4.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: AGPL-3.0 Imports: 1 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 interface {
	Put(version *Version) error
	List(offset uint64, limit uint64) ([]*Version, error)
	Retrieve(id uint64) (*Version, error)
}

Store is the interface for storing and listing configs versions

type Version

type Version struct {
	Id   uint64      `json:"Id,omitempty"`
	Data interface{} `json:"Data,omitempty"`
	Date time.Time
	User string
	Log  string
}

Version is a structure for encapsulating a new version of configs with additional metadata

Jump to

Keyboard shortcuts

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