Files
ispctl/cfg/domain.go
T
DeniskaRediska 8b8815d2f2 add 'contain' command for common configs
add flag 'full' for 'get' command
update bash complete
2019-10-30 14:58:50 +03:00

84 lines
1.6 KiB
Go

package cfg
import (
"github.com/integration-system/isp-lib/config/schema"
"github.com/integration-system/isp-lib/structure"
"time"
)
type getModuleByUuidAndNameRequest struct {
ModuleName string
Uuid string
}
type getSchemaByModuleIdRequest struct {
ModuleId string
}
type Config struct {
Id string
Name string
CommonConfigs []string
Description string
ModuleId string
Version int32
Active bool
CreatedAt time.Time
UpdatedAt time.Time
Data map[string]interface{}
}
type CommonConfig struct {
Id string
Name string
Description string
CreatedAt time.Time
UpdatedAt time.Time
Data map[string]interface{}
}
type Connection struct {
LibVersion string
Version string
Address structure.AddressConfiguration
Endpoints []structure.EndpointConfig `json:",omitempty"`
EstablishedAt time.Time
}
type ModuleInfo struct {
Id string
Name string
Active bool
CreatedAt time.Time
LastConnectedAt time.Time
LastDisconnectedAt time.Time
Configs []Config `json:",omitempty"`
ConfigSchema *schema.Schema `json:",omitempty"`
Status []Connection `json:",omitempty"`
}
type ConfigSchema struct {
Id string
Version string
ModuleId string
Schema schema.Schema
CreatedAt time.Time
UpdatedAt time.Time
}
type Deleted struct {
Deleted bool
Links Links
}
type Links map[string][]string
type identityRequest struct {
Id string
}
type CompileConfigs struct {
Data map[string]interface{}
CommonConfigsIdList []string
}