metamgr

package
v1.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectMetadataManager

type ProjectMetadataManager interface {
	// Add metadatas for project specified by projectID
	Add(projectID int64, meta map[string]string) error
	// Delete metadatas whose keys are specified in parameter meta, if it
	// is absent, delete all
	Delete(projecdtID int64, meta ...string) error
	// Update metadatas
	Update(projectID int64, meta map[string]string) error
	// Get metadatas whose keys are specified in parameter meta, if it is
	// absent, get all
	Get(projectID int64, meta ...string) (map[string]string, error)
	// List metadata according to the name and value
	List(name, value string) ([]*models.ProjectMetadata, error)
}

ProjectMetadataManager defines the operations that a project metadata manager should implement

func NewDefaultProjectMetadataManager

func NewDefaultProjectMetadataManager() ProjectMetadataManager

NewDefaultProjectMetadataManager ...

Jump to

Keyboard shortcuts

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