properties

package
v0.0.0-...-1c5d739 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const CCVERSION = "cc.version"

CCVERSION is the key used to access the version property

Variables

View Source
var (

	// MAPPING for elastic
	MAPPING, _ = elastic.NewMapping(mappingString)
)

Functions

func Key

func Key(id string) datastore.Key

Key for storing and retrieving

Types

type Store

type Store interface {
	Get(ctx datastore.Context) (*StoredProperties, error)

	// Put adds/updates an RSA Key to the registry
	Put(ctx datastore.Context, properties *StoredProperties) error
}

Store is used to access the stored properties

func NewStore

func NewStore() Store

NewStore creates a new RSA Key store

type StoredProperties

type StoredProperties struct {
	Props map[string]string
	datastore.VersionedEntity
}

StoredProperties entity containing a properties map

func New

func New() *StoredProperties

New create a new StoredProperties

func (*StoredProperties) CCVersion

func (s *StoredProperties) CCVersion() (string, bool)

CCVersion returns the CC version property

func (*StoredProperties) SetCCVersion

func (s *StoredProperties) SetCCVersion(version string)

SetCCVersion sets the CC version property

func (*StoredProperties) ValidEntity

func (s *StoredProperties) ValidEntity() error

ValidEntity validated type

Jump to

Keyboard shortcuts

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