tag_store

package
v0.12.103 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 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 DynamoTagSchema

type DynamoTagSchema struct {
	EntityType string
	EntityID   string
	Tags       map[string]string
}

func (DynamoTagSchema) ToTags

func (s DynamoTagSchema) ToTags() models.Tags

type DynamoTagStore

type DynamoTagStore struct {
	// contains filtered or unexported fields
}

func NewDynamoTagStore

func NewDynamoTagStore(session *session.Session, table string) *DynamoTagStore

func (*DynamoTagStore) AddTTLValue added in v0.12.1

func (d *DynamoTagStore) AddTTLValue(enityType string, entityId string, ttlHours int) error

func (*DynamoTagStore) AddTTLValueToDeployJobs added in v0.12.1

func (d *DynamoTagStore) AddTTLValueToDeployJobs(entityType, entityID string) error

func (*DynamoTagStore) Clear

func (d *DynamoTagStore) Clear() error

func (*DynamoTagStore) Delete

func (d *DynamoTagStore) Delete(entityType, entityID, key string) error

func (*DynamoTagStore) Init

func (d *DynamoTagStore) Init() error

func (*DynamoTagStore) Insert

func (d *DynamoTagStore) Insert(tag models.Tag) error

func (*DynamoTagStore) SelectByType

func (d *DynamoTagStore) SelectByType(entityType string) (models.Tags, error)

func (*DynamoTagStore) SelectByTypeAndID

func (d *DynamoTagStore) SelectByTypeAndID(entityType, entityID string) (models.Tags, error)

type MemoryTagStore

type MemoryTagStore struct {
	// contains filtered or unexported fields
}

func NewMemoryTagStore

func NewMemoryTagStore() *MemoryTagStore

func (*MemoryTagStore) Delete

func (m *MemoryTagStore) Delete(entityType, entityID, key string) error

func (*MemoryTagStore) Init

func (m *MemoryTagStore) Init() error

func (*MemoryTagStore) Insert

func (m *MemoryTagStore) Insert(tag models.Tag) error

func (*MemoryTagStore) SelectByType

func (m *MemoryTagStore) SelectByType(entityType string) (models.Tags, error)

func (*MemoryTagStore) SelectByTypeAndID

func (m *MemoryTagStore) SelectByTypeAndID(entityType, entityID string) (models.Tags, error)

type TagStore

type TagStore interface {
	Init() error
	Delete(entityType, entityID, key string) error
	Insert(tag models.Tag) error
	SelectByType(entityType string) (models.Tags, error)
	SelectByTypeAndID(entityType, entityID string) (models.Tags, error)
}

Jump to

Keyboard shortcuts

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