Versions in this module Expand all Collapse all v0 v0.5.0 Aug 8, 2018 Changes in this version + func IsAlreadyExistsError(err error) bool + func IsNotFoundError(err error) bool + type Config struct + Driver DriverType + Memory memory.Config + Provide ProviderConfigMap + type ConfigList []Config + func ConfigParse(inByte []byte) (*ConfigList, error) + type DriverType string + const DriverMemory + type EntityName string + const EntityAll + const EntityInstance + const EntityInstanceOperation + const EntityRemoteEnvironment + type Factory interface + Instance func() Instance + InstanceOperation func() InstanceOperation + RemoteEnvironment func() RemoteEnvironment + func NewFactory(cl *ConfigList) (Factory, error) + type Instance interface + FindOne func(func(i *internal.Instance) bool) (*internal.Instance, error) + Get func(id internal.InstanceID) (*internal.Instance, error) + Insert func(i *internal.Instance) error + Remove func(id internal.InstanceID) error + UpdateState func(iID internal.InstanceID, state internal.InstanceState) error + type InstanceOperation interface + Get func(internal.InstanceID, internal.OperationID) (*internal.InstanceOperation, error) + GetAll func(internal.InstanceID) ([]*internal.InstanceOperation, error) + Insert func(*internal.InstanceOperation) error + Remove func(internal.InstanceID, internal.OperationID) error + UpdateState func(internal.InstanceID, internal.OperationID, internal.OperationState) error + UpdateStateDesc func(internal.InstanceID, internal.OperationID, internal.OperationState, *string) error + type ProviderConfig struct + type ProviderConfigMap map[EntityName]ProviderConfig + type RemoteEnvironment interface + FindAll func() ([]*internal.RemoteEnvironment, error) + FindOneByServiceID func(id internal.RemoteServiceID) (*internal.RemoteEnvironment, error) + Get func(name internal.RemoteEnvironmentName) (*internal.RemoteEnvironment, error) + Remove func(name internal.RemoteEnvironmentName) error + Upsert func(re *internal.RemoteEnvironment) (bool, error)