Documentation ¶
Index ¶
- Constants
- func Set(ctx ContextProvider, hasher string) error
- type Attribute
- type AttributeType
- func (a AttributeType) Convert(v interface{}) (interface{}, error)
- func (a AttributeType) Decode(data []byte, unmarshaller runtime.Unmarshaler) (interface{}, error)
- func (a AttributeType) Description() string
- func (a AttributeType) Encode(v interface{}, marshaller runtime.Marshaler) ([]byte, error)
- func (a AttributeType) Name() string
- type Config
- type Context
- type ContextProvider
- type Hasher
Constants ¶
View Source
const ( ATTR_KEY = "github.com/mandelsoft/ocm/hasher" ATTR_SHORT = "hasher" )
View Source
const ( ConfigType = "hasher" + cfgcpi.OCM_CONFIG_TYPE_SUFFIX ConfigTypeV1 = ConfigType + runtime.VersionSeparator + "v1" )
Variables ¶
This section is empty.
Functions ¶
func Set ¶
func Set(ctx ContextProvider, hasher string) error
Types ¶
type Attribute ¶
type Attribute struct {
DefaultHasher string
}
func Get ¶
func Get(ctx ContextProvider) *Attribute
type AttributeType ¶
type AttributeType struct{}
func (AttributeType) Convert ¶
func (a AttributeType) Convert(v interface{}) (interface{}, error)
func (AttributeType) Decode ¶
func (a AttributeType) Decode(data []byte, unmarshaller runtime.Unmarshaler) (interface{}, error)
func (AttributeType) Description ¶
func (a AttributeType) Description() string
func (AttributeType) Encode ¶
func (a AttributeType) Encode(v interface{}, marshaller runtime.Marshaler) ([]byte, error)
func (AttributeType) Name ¶
func (a AttributeType) Name() string
type Config ¶
type Config struct { runtime.ObjectVersionedType `json:",inline"` HashAlgorithm string `json:"hashAlgorithm"` }
Config describes a memory based repository interface.
type ContextProvider ¶
type ContextProvider = ocm.ContextProvider
Click to show internal directories.
Click to hide internal directories.