Documentation ¶
Overview ¶
Package models :
Package models :
Package models :
Package models :
Index ¶
- func CompareHashAndPassword(hashedPassword, password string) (result bool)
- func HashAndSaltPassword(password string) (hashedPassword string)
- type Authorization
- type Command
- type CommandType
- type Config
- type ConfigurationDatabaseAggregator
- type ConnectorProduct
- type CreateDatabase
- type Domain
- type Environment
- type EnvironmentType
- type Event
- type EventType
- type EventTypeToPoll
- type Heartbeat
- type Key
- type KeyValue
- type Library
- type LogicalComponent
- type Model
- type Pivot
- type Product
- type ProductConnector
- type Resource
- type ResourceAuthorization
- type ResourceType
- type Role
- type Secret
- type SecretAssignement
- type State
- type Tag
- type Tenant
- type User
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareHashAndPassword ¶
func HashAndSaltPassword ¶
TODO REMOVE OU REVOIR
Types ¶
type Authorization ¶
type Command ¶
type Command struct { Model UUID string Tenant string Token string Timeout int64 Timestamp int64 Payload string Major int8 Minor int8 Target string Command string }
Command : Command struct.
func FromShosetCommand ¶
FromShosetCommand : Shoset command to core command.
type CommandType ¶
type Config ¶
type Config struct { Model UUID string Tenant string Token string Timeout int64 Timestamp int64 Payload string Major int8 Minor int8 Target string Command string }
Config : Config struct.
func FromShosetConfig ¶
FromShosetConfig : Shoset config to core config.
type ConfigurationDatabaseAggregator ¶
type ConfigurationDatabaseAggregator struct { Tenant string Password string DatabaseBindAddress string }
func NewConfigurationDatabaseAggregator ¶
func NewConfigurationDatabaseAggregator(tenant, password, bindAddress string) *ConfigurationDatabaseAggregator
type ConnectorProduct ¶
type CreateDatabase ¶
func NewCreateDatabase ¶
func NewCreateDatabase(login, password []string) *CreateDatabase
type Domain ¶
type Domain struct { Model Name string `gorm:"not null"` ParentID uuid.UUID `gorm:"type:uuid"` Parent *Domain `gorm:"constraint:OnDelete:CASCADE;"` Authorizations []Authorization Products []Product Libraries []Library `gorm:"many2many:domain_libraries;"` Tags []Tag `gorm:"many2many:domain_tags;"` Environments []Environment ShortDescription string Description string Logo string GitURL string Childs []*Domain }
type Environment ¶
type EnvironmentType ¶
type Event ¶
type Event struct { Model UUID string Tenant string Token string Timeout int64 Timestamp int64 Payload string Major int8 Minor int8 Topic string Event string ReferenceUUID string }
Event : Event struct.
func FromShosetEvent ¶
FromShosetEvent : Shoset event to core event.
type EventTypeToPoll ¶
type Heartbeat ¶
func FromShosetHeartbeat ¶
FromShosetCommand : Shoset command to core command.
type LogicalComponent ¶
type LogicalComponent struct { Model LogicalName string `gorm:"unique;not null"` Type string //connector/cluster/aggregator PivotID uuid.UUID `` /* 127-byte string literal not displayed */ Pivot Pivot ProductConnectorID uuid.UUID `gorm:"type:uuid;check:pivot_id IS NULL AND product_connector_id IS NOT NULL AND type == 'connector'"` ProductConnector ProductConnector Aggregator string `gorm:"check:aggregator IS NOT NULL AND type == 'connector'"` KeyValues []KeyValue `gorm:"foreignkey:LogicalComponentID"` Resources []Resource `gorm:"foreignkey:LogicalComponentID"` ShortDescription string Description string }
func (LogicalComponent) GetKeyValueByKey ¶
func (lc LogicalComponent) GetKeyValueByKey(key string) *KeyValue
type Model ¶
type Pivot ¶
type Pivot struct { Model Name string `gorm:"UNIQUE_INDEX:compositeindex;not null"` Major int8 `gorm:"UNIQUE_INDEX:compositeindex;not null"` Minor int8 `gorm:"UNIQUE_INDEX:compositeindex;not null"` ResourceTypes []ResourceType CommandTypes []CommandType EventTypes []EventType Keys []Key }
type Product ¶
type ProductConnector ¶
type ProductConnector struct { Model Name string `gorm:"unique;not null"` Major int8 Minor int8 PivotID uuid.UUID `gorm:"type:uuid"` Pivot Pivot ProductID uuid.UUID `gorm:"type:uuid"` Product ConnectorProduct ResourceTypes []ResourceType `gorm:"ForeignKey:ProductConnectorID"` CommandTypes []CommandType `gorm:"ForeignKey:ProductConnectorID"` EventTypes []EventType `gorm:"ForeignKey:ProductConnectorID"` Keys []Key `gorm:"ForeignKey:ProductConnectorID"` }
type Resource ¶
type Resource struct { Model Name string `gorm:"unique;not null"` LogicalComponentID uuid.UUID `gorm:"type:uuid"` LogicalComponent LogicalComponent DomainID uuid.UUID `gorm:"type:uuid"` Domain Domain ResourceTypeID uuid.UUID `gorm:"type:uuid"` ResourceType ResourceType EventTypeToPolls []EventTypeToPoll `gorm:"ForeignKey:ResourceID"` }
type ResourceAuthorization ¶
type ResourceType ¶
type Role ¶
type Role struct { Model Name string `gorm:"unique;not null"` ShortDescription string Description string Logo string }
Role : Role struct.
type Secret ¶
type Secret struct { Model UUID string Tenant string Timeout int64 Timestamp int64 Payload string TargetLogicalName string TargetAddress string Command string }
Secret : Secret struct.
func FromShosetSecret ¶
FromShosetSecret : Shoset secret to core secret.
type SecretAssignement ¶
type Tag ¶
type Tenant ¶
type Tenant struct { Model Name string `gorm:"unique"` Password string ShortDescription string Description string Logo string }
Tenant : Tenant struct.
Source Files ¶
- authorization.go
- command.go
- commandType.go
- config.go
- configurationDatabaseAggregator.go
- connectorProduct.go
- createDatabase.go
- domain.go
- environment.go
- environmentType.go
- event.go
- eventType.go
- eventTypeToPoll.go
- heartbeat.go
- key.go
- keyValue.go
- library.go
- logicalComponent.go
- model.go
- pivot.go
- product.go
- productConnector.go
- resource.go
- resourceAuthorization.go
- resourceType.go
- role.go
- secret.go
- secretAssignement.go
- state.go
- tag.go
- tenant.go
- user.go
- version.go
Click to show internal directories.
Click to hide internal directories.