Documentation
¶
Index ¶
- Constants
- Variables
- func Destroy(dbPath string) error
- type BinomialModel
- type Cluster
- type ClusterType
- type ClusterTypeKeys
- type Connection
- type Dataset
- type Datasource
- type Datastore
- func (ds *Datastore) ActivateIdentity(pz az.Principal, identityId int64) error
- func (ds *Datastore) CountModelsForProject(pz az.Principal, projectId int64) (int64, error)
- func (ds *Datastore) CreateBinomialModel(pz az.Principal, modelId int64, mse, rSquared, logloss, auc, gini float64) error
- func (ds *Datastore) CreateDataset(pz az.Principal, dataset Dataset) (int64, error)
- func (ds *Datastore) CreateDatasource(pz az.Principal, datasource Datasource) (int64, error)
- func (ds *Datastore) CreateEngine(pz az.Principal, name, location string) (int64, error)
- func (ds *Datastore) CreateExternalCluster(pz az.Principal, name, address, state string) (int64, error)
- func (ds *Datastore) CreateIdentity(pz az.Principal, name, password string) (int64, int64, error)
- func (ds *Datastore) CreateLabel(pz az.Principal, projectId int64, name, description string) (int64, error)
- func (ds *Datastore) CreateModel(pz az.Principal, model Model) (int64, error)
- func (ds *Datastore) CreateMultinomialModel(pz az.Principal, modelId int64, mse, rSquared, logloss float64) error
- func (ds *Datastore) CreatePrivilege(pz az.Principal, privilege Privilege) error
- func (ds *Datastore) CreateProject(pz az.Principal, name, description, modelCategory string) (int64, error)
- func (ds *Datastore) CreateRegressionModel(pz az.Principal, modelId int64, mse, rSquared, deviance float64) error
- func (ds *Datastore) CreateRole(pz az.Principal, name, description string) (int64, error)
- func (ds *Datastore) CreateService(pz az.Principal, service Service) (int64, error)
- func (ds *Datastore) CreateSuperuser(name, password string) (int64, int64, error)
- func (ds *Datastore) CreateWorkgroup(pz az.Principal, name, description string) (int64, error)
- func (ds *Datastore) CreateYarnCluster(pz az.Principal, name, address, state string, cluster YarnCluster) (int64, error)
- func (ds *Datastore) DeactivateIdentity(pz az.Principal, identityId int64) error
- func (ds *Datastore) DeleteCluster(pz az.Principal, clusterId int64) error
- func (ds *Datastore) DeleteDataset(pz az.Principal, datasetId int64) error
- func (ds *Datastore) DeleteDatasource(pz az.Principal, datasourceId int64) error
- func (ds *Datastore) DeleteEngine(pz az.Principal, engineId int64) error
- func (ds *Datastore) DeleteLabel(pz az.Principal, labelId int64) error
- func (ds *Datastore) DeleteModel(pz az.Principal, modelId int64) error
- func (ds *Datastore) DeletePrivilege(pz az.Principal, privilege Privilege) error
- func (ds *Datastore) DeleteProject(pz az.Principal, projectId int64) error
- func (ds *Datastore) DeleteRole(pz az.Principal, roleId int64) error
- func (ds *Datastore) DeleteService(pz az.Principal, serviceId int64) error
- func (ds *Datastore) DeleteWorkgroup(pz az.Principal, workgroupId int64) error
- func (ds *Datastore) LinkIdentityAndRole(pz az.Principal, identityId, roleId int64) error
- func (ds *Datastore) LinkIdentityAndWorkgroup(pz az.Principal, identityId, workgroupId int64) error
- func (ds *Datastore) LinkLabelWithModel(pz az.Principal, labelId, modelId int64) error
- func (ds *Datastore) LinkRoleAndPermissions(pz az.Principal, roleId int64, permissionIds []int64) error
- func (ds *Datastore) LinkRoleWithPermission(pz az.Principal, roleId int64, permissionId int64) error
- func (ds *Datastore) Lookup(name string) (az.Principal, error)
- func (ds *Datastore) ReadAllPermissions(pz az.Principal) ([]Permission, error)
- func (ds *Datastore) ReadBinomialModel(pz az.Principal, modelId int64) (BinomialModel, error)
- func (ds *Datastore) ReadBinomialModels(pz az.Principal, projectId int64, namePart, sortBy string, ascending bool, ...) ([]BinomialModel, error)
- func (ds *Datastore) ReadCluster(pz az.Principal, clusterId int64) (Cluster, error)
- func (ds *Datastore) ReadClusterByAddress(pz az.Principal, address string) (Cluster, bool, error)
- func (ds *Datastore) ReadClusterByName(pz az.Principal, name string) (Cluster, bool, error)
- func (ds *Datastore) ReadClusterTypes(pz az.Principal) []ClusterType
- func (ds *Datastore) ReadClusters(pz az.Principal, offset, limit int64) ([]Cluster, error)
- func (ds *Datastore) ReadDataset(pz az.Principal, datasetId int64) (Dataset, error)
- func (ds *Datastore) ReadDatasetByDatasource(pz az.Principal, datasourceId int64) (Dataset, bool, error)
- func (ds *Datastore) ReadDatasets(pz az.Principal, datasourceId, offset, limit int64) ([]Dataset, error)
- func (ds *Datastore) ReadDatasource(pz az.Principal, datasourceId int64) (Datasource, error)
- func (ds *Datastore) ReadDatasourceByProject(pz az.Principal, projectId int64) (Datasource, bool, error)
- func (ds *Datastore) ReadDatasources(pz az.Principal, projectId, offset, limit int64) ([]Datasource, error)
- func (ds *Datastore) ReadEngine(pz az.Principal, engineId int64) (Engine, error)
- func (ds *Datastore) ReadEngines(pz az.Principal) ([]Engine, error)
- func (ds *Datastore) ReadEntityPrivileges(pz az.Principal, entityTypeId, entityId int64) ([]EntityPrivilege, error)
- func (ds *Datastore) ReadEntityTypes(pz az.Principal) []EntityType
- func (ds *Datastore) ReadHistoryForEntity(pz az.Principal, entityTypeId, entityId, offset, limit int64) ([]EntityHistory, error)
- func (ds *Datastore) ReadIdentities(pz az.Principal, offset, limit int64) ([]Identity, error)
- func (ds *Datastore) ReadIdentitiesForRole(pz az.Principal, roleId int64) ([]Identity, error)
- func (ds *Datastore) ReadIdentitiesForWorkgroup(pz az.Principal, workgroupId int64) ([]Identity, error)
- func (ds *Datastore) ReadIdentity(pz az.Principal, identityId int64) (Identity, error)
- func (ds *Datastore) ReadIdentityByName(pz az.Principal, name string) (Identity, error)
- func (ds *Datastore) ReadLabel(pz az.Principal, labelId int64) (Label, error)
- func (ds *Datastore) ReadLabelByModel(pz az.Principal, modelId int64) (Label, bool, error)
- func (ds *Datastore) ReadLabelsForProject(pz az.Principal, projectId int64) ([]Label, error)
- func (ds *Datastore) ReadModel(pz az.Principal, modelId int64) (Model, error)
- func (ds *Datastore) ReadModelByDataset(pz az.Principal, datasetId int64) (Model, bool, error)
- func (ds *Datastore) ReadModels(pz az.Principal, offset, limit int64) ([]Model, error)
- func (ds *Datastore) ReadModelsForProject(pz az.Principal, projectId, offset, limit int64) ([]Model, bool, error)
- func (ds *Datastore) ReadMultinomialModel(pz az.Principal, modelId int64) (MultinomialModel, error)
- func (ds *Datastore) ReadMultinomialModels(pz az.Principal, projectId int64, namePart, sortBy string, ascending bool, ...) ([]MultinomialModel, error)
- func (ds *Datastore) ReadPermissionsForIdentity(pz az.Principal, identityId int64) ([]Permission, error)
- func (ds *Datastore) ReadPermissionsForRole(pz az.Principal, roleId int64) ([]Permission, error)
- func (ds *Datastore) ReadProject(pz az.Principal, projectId int64) (Project, error)
- func (ds *Datastore) ReadProjects(pz az.Principal, offset, limit int64) ([]Project, error)
- func (ds *Datastore) ReadRegressionModel(pz az.Principal, modelId int64) (RegressionModel, error)
- func (ds *Datastore) ReadRegressionModels(pz az.Principal, projectId int64, namePart, sortBy string, ascending bool, ...) ([]RegressionModel, error)
- func (ds *Datastore) ReadRole(pz az.Principal, roleId int64) (Role, error)
- func (ds *Datastore) ReadRoleByName(pz az.Principal, name string) (Role, error)
- func (ds *Datastore) ReadRoles(pz az.Principal, offset, limit int64) ([]Role, error)
- func (ds *Datastore) ReadRolesForIdentity(pz az.Principal, identityId int64) ([]Role, error)
- func (ds *Datastore) ReadService(pz az.Principal, serviceId int64) (Service, error)
- func (ds *Datastore) ReadServices(pz az.Principal, offset, limit int64) ([]Service, error)
- func (ds *Datastore) ReadServicesForModelId(pz az.Principal, modelId int64) ([]Service, error)
- func (ds *Datastore) ReadServicesForProjectId(pz az.Principal, projectId, offset, limit int64) ([]Service, error)
- func (ds *Datastore) ReadUsersForEntity(pz az.Principal, entityTypeId, entityId int64) ([]IdentityAndRole, error)
- func (ds *Datastore) ReadWorkgroup(pz az.Principal, workgroupId int64) (Workgroup, error)
- func (ds *Datastore) ReadWorkgroupByName(pz az.Principal, name string) (Workgroup, error)
- func (ds *Datastore) ReadWorkgroups(pz az.Principal, offset, limit int64) ([]Workgroup, error)
- func (ds *Datastore) ReadWorkgroupsForIdentity(pz az.Principal, identityId int64) ([]Workgroup, error)
- func (ds *Datastore) ReadYarnCluster(pz az.Principal, clusterId int64) (YarnCluster, error)
- func (ds *Datastore) UnlinkIdentityAndRole(pz az.Principal, identityId, roleId int64) error
- func (ds *Datastore) UnlinkIdentityAndWorkgroup(pz az.Principal, identityId, workgroupId int64) error
- func (ds *Datastore) UnlinkLabelFromModel(pz az.Principal, labelId, modelId int64) error
- func (ds *Datastore) UnlinkRoleFromPermission(pz az.Principal, roleId int64, permissionId int64) error
- func (ds *Datastore) UpdateClusterState(pz az.Principal, clusterId int64, state string) error
- func (ds *Datastore) UpdateDataset(pz az.Principal, datasetId int64, dataset Dataset) error
- func (ds *Datastore) UpdateDatasource(pz az.Principal, datasourceId int64, datasource Datasource) error
- func (ds *Datastore) UpdateIdentity(pz az.Principal, identityId int64, password string) error
- func (ds *Datastore) UpdateLabel(pz az.Principal, labelId int64, name, description string) error
- func (ds *Datastore) UpdateModelLocation(pz az.Principal, modelId int64, location, logicalName string) error
- func (ds *Datastore) UpdateModelName(pz az.Principal, modelId int64, name string) error
- func (ds *Datastore) UpdateModelObjectType(pz az.Principal, modelId int64, typ string) error
- func (ds *Datastore) UpdateRole(pz az.Principal, roleId int64, name, description string) error
- func (ds *Datastore) UpdateServiceName(pz az.Principal, serviceId int64, name string) error
- func (ds *Datastore) UpdateServiceState(pz az.Principal, serviceId int64, state string) error
- func (ds *Datastore) UpdateWorkgroup(pz az.Principal, workgroupId int64, name, description string) error
- type Engine
- type EntityHistory
- type EntityPrivilege
- type EntityType
- type EntityTypeKeys
- type Identity
- type IdentityAndPassword
- type IdentityAndRole
- type Label
- type Meta
- type Model
- type MultinomialModel
- type Permission
- type PermissionKeys
- type Principal
- func (pz *Principal) CanEdit(entityTypeId, entityId int64) (bool, error)
- func (pz *Principal) CanView(entityTypeId, entityId int64) (bool, error)
- func (pz *Principal) CheckEdit(entityTypeId, entityId int64) error
- func (pz *Principal) CheckOwns(entityTypeId, entityId int64) error
- func (pz *Principal) CheckPermission(code int64) error
- func (pz *Principal) CheckView(entityTypeId, entityId int64) error
- func (pz *Principal) HasPermission(code int64) bool
- func (pz *Principal) Id() int64
- func (pz *Principal) IsActive() bool
- func (pz *Principal) IsSuperuser() bool
- func (pz *Principal) Name() string
- func (pz *Principal) Owns(entityTypeId, entityId int64) (bool, error)
- func (pz *Principal) Password() string
- func (pz *Principal) String() string
- func (pz *Principal) WorkgroupId() int64
- type Privilege
- type Project
- type RegressionModel
- type Role
- type Service
- type Workgroup
- type YarnCluster
Constants ¶
View Source
const ( View = 1 << iota Edit // 2 Own // 4 )
View Source
const ( Version = "1.1.0" SuperuserRoleName = "Superuser" CanView = "view" CanEdit = "edit" Owns = "own" ForIdentity = "identity" ForWorkgroup = "workgroup" RoleEntity = "role" WorkgroupEntity = "workgroup" IdentityEntity = "identity" EngineEntity = "engine" ClusterEntity = "cluster" ProjectEntity = "project" DatasourceEntity = "datasource" DatasetEntity = "dataset" ModelEntity = "model" LabelEntity = "label" ServiceEntity = "service" ClusterExternal = "external" ClusterYarn = "yarn" )
View Source
const ( IdleState = "idle" StartingState = "starting" StartedState = "started" SuspendingState = "suspending" SuspendedState = "suspended" StoppingState = "stopping" StoppedState = "stopped" BlockedState = "blocked" DisconnectedState = "disconnected" FailedState = "failed" CompletedState = "completed" )
View Source
const ( ManageRole = "ManageRole" ViewRole = "ViewRole" ManageWorkgroup = "ManageWorkgroup" ViewWorkgroup = "ViewWorkgroup" ManageIdentity = "ManageIdentity" ViewIdentity = "ViewIdentity" ManageEngine = "ManageEngine" ViewEngine = "ViewEngine" ManageCluster = "ManageCluster" ViewCluster = "ViewCluster" ManageProject = "ManageProject" ViewProject = "ViewProject" ManageDatasource = "ManageDatasource" ViewDatasource = "ViewDatasource" ManageDataset = "ManageDataset" ViewDataset = "ViewDataset" ManageModel = "ManageModel" ViewModel = "ViewModel" ManageLabel = "ManageLabel" ViewLabel = "ViewLabel" ManageService = "ManageService" ViewService = "ViewService" )
Variables ¶
View Source
var ( Privileges map[string]int Permissions []Permission EntityTypes []EntityType ClusterTypes []ClusterType )
Functions ¶
Types ¶
type BinomialModel ¶
type BinomialModel struct {
Id int64
ProjectId int64
TrainingDatasetId int64
ValidationDatasetId sql.NullInt64
Name string
ClusterId int64
ClusterName string
ModelKey string
Algorithm string
ModelCategory string
DatasetName string
ResponseColumnName string
LogicalName sql.NullString
Location string
ModelObjectType sql.NullString
MaxRunTime int64
Metrics string
MetricsVersion string
Created time.Time
LabelId sql.NullInt64
LabelName sql.NullString
Mse float64
RSquared float64
Logloss float64
Auc float64
Gini float64
}
func ScanBinomialModel ¶
func ScanBinomialModel(r *sql.Row) (BinomialModel, error)
func ScanBinomialModels ¶
func ScanBinomialModels(rs *sql.Rows) ([]BinomialModel, error)
type Cluster ¶
type ClusterType ¶
func ScanClusterType ¶
func ScanClusterType(r *sql.Row) (ClusterType, error)
func ScanClusterTypes ¶
func ScanClusterTypes(rs *sql.Rows) ([]ClusterType, error)
type ClusterTypeKeys ¶
type Connection ¶
type Dataset ¶
type Datasource ¶
type Datasource struct {
Id int64
ProjectId int64
Name string
Description string
Kind string
Configuration string
Created time.Time
}
func ScanDatasource ¶
func ScanDatasource(r *sql.Row) (Datasource, error)
func ScanDatasources ¶
func ScanDatasources(rs *sql.Rows) ([]Datasource, error)
type Datastore ¶
type Datastore struct {
Permissions *PermissionKeys
EntityTypes *EntityTypeKeys
ClusterTypes *ClusterTypeKeys
ViewPermissions map[int64]int64
ManagePermissions map[int64]int64
// contains filtered or unexported fields
}
func (*Datastore) ActivateIdentity ¶
func (*Datastore) CountModelsForProject ¶
func (*Datastore) CreateBinomialModel ¶
func (*Datastore) CreateDataset ¶
func (*Datastore) CreateDatasource ¶
--- Datasource ---
func (*Datastore) CreateEngine ¶
func (*Datastore) CreateExternalCluster ¶
func (*Datastore) CreateIdentity ¶
func (*Datastore) CreateLabel ¶
func (*Datastore) CreateModel ¶
func (*Datastore) CreateMultinomialModel ¶
func (*Datastore) CreatePrivilege ¶
func (*Datastore) CreateProject ¶
func (*Datastore) CreateRegressionModel ¶
func (*Datastore) CreateRole ¶
func (*Datastore) CreateService ¶
func (*Datastore) CreateSuperuser ¶
func (*Datastore) CreateWorkgroup ¶
func (*Datastore) CreateYarnCluster ¶
func (*Datastore) DeactivateIdentity ¶
func (*Datastore) DeleteCluster ¶
func (*Datastore) DeleteDataset ¶
func (*Datastore) DeleteDatasource ¶
func (*Datastore) DeleteEngine ¶
func (*Datastore) DeleteLabel ¶
func (*Datastore) DeleteModel ¶
func (*Datastore) DeletePrivilege ¶
func (*Datastore) DeleteProject ¶
func (*Datastore) DeleteService ¶
func (*Datastore) DeleteWorkgroup ¶
func (*Datastore) LinkIdentityAndRole ¶
func (*Datastore) LinkIdentityAndWorkgroup ¶
func (*Datastore) LinkLabelWithModel ¶
func (*Datastore) LinkRoleAndPermissions ¶
func (*Datastore) LinkRoleWithPermission ¶
func (*Datastore) ReadAllPermissions ¶
func (ds *Datastore) ReadAllPermissions(pz az.Principal) ([]Permission, error)
func (*Datastore) ReadBinomialModel ¶
func (*Datastore) ReadBinomialModels ¶
func (*Datastore) ReadCluster ¶
func (*Datastore) ReadClusterByAddress ¶
func (*Datastore) ReadClusterByName ¶
func (*Datastore) ReadClusterTypes ¶
func (ds *Datastore) ReadClusterTypes(pz az.Principal) []ClusterType
func (*Datastore) ReadClusters ¶
func (*Datastore) ReadDataset ¶
func (*Datastore) ReadDatasetByDatasource ¶
func (*Datastore) ReadDatasets ¶
func (*Datastore) ReadDatasource ¶
func (*Datastore) ReadDatasourceByProject ¶
func (*Datastore) ReadDatasources ¶
func (*Datastore) ReadEngine ¶
func (*Datastore) ReadEntityPrivileges ¶
func (*Datastore) ReadEntityTypes ¶
func (ds *Datastore) ReadEntityTypes(pz az.Principal) []EntityType
func (*Datastore) ReadHistoryForEntity ¶
func (*Datastore) ReadIdentities ¶
func (*Datastore) ReadIdentitiesForRole ¶
func (*Datastore) ReadIdentitiesForWorkgroup ¶
func (*Datastore) ReadIdentity ¶
func (*Datastore) ReadIdentityByName ¶
func (*Datastore) ReadLabelByModel ¶
func (*Datastore) ReadLabelsForProject ¶
func (*Datastore) ReadModelByDataset ¶
func (*Datastore) ReadModels ¶
TODO: Deprecate
func (*Datastore) ReadModelsForProject ¶
func (*Datastore) ReadMultinomialModel ¶
func (*Datastore) ReadMultinomialModels ¶
func (*Datastore) ReadPermissionsForIdentity ¶
func (*Datastore) ReadPermissionsForRole ¶
func (*Datastore) ReadProject ¶
func (*Datastore) ReadProjects ¶
func (*Datastore) ReadRegressionModel ¶
func (*Datastore) ReadRegressionModels ¶
func (*Datastore) ReadRoleByName ¶
func (*Datastore) ReadRolesForIdentity ¶
func (*Datastore) ReadService ¶
func (*Datastore) ReadServices ¶
func (*Datastore) ReadServicesForModelId ¶
func (*Datastore) ReadServicesForProjectId ¶
func (*Datastore) ReadUsersForEntity ¶
func (*Datastore) ReadWorkgroup ¶
func (*Datastore) ReadWorkgroupByName ¶
func (*Datastore) ReadWorkgroups ¶
func (*Datastore) ReadWorkgroupsForIdentity ¶
func (*Datastore) ReadYarnCluster ¶
func (*Datastore) UnlinkIdentityAndRole ¶
func (*Datastore) UnlinkIdentityAndWorkgroup ¶
func (*Datastore) UnlinkLabelFromModel ¶
func (*Datastore) UnlinkRoleFromPermission ¶
func (*Datastore) UpdateClusterState ¶
func (*Datastore) UpdateDataset ¶
func (*Datastore) UpdateDatasource ¶
func (*Datastore) UpdateIdentity ¶
func (*Datastore) UpdateLabel ¶
func (*Datastore) UpdateModelLocation ¶
func (*Datastore) UpdateModelName ¶
func (*Datastore) UpdateModelObjectType ¶
func (*Datastore) UpdateRole ¶
func (*Datastore) UpdateServiceName ¶
func (*Datastore) UpdateServiceState ¶
type EntityHistory ¶
func ScanEntityHistory ¶
func ScanEntityHistory(r *sql.Row) (EntityHistory, error)
func ScanEntityHistorys ¶
func ScanEntityHistorys(rs *sql.Rows) ([]EntityHistory, error)
type EntityPrivilege ¶
type EntityPrivilege struct {
Type string
WorkgroupId int64
WorkgroupName string
WorkgroupDescription string
}
func ScanEntityPrivilege ¶
func ScanEntityPrivilege(r *sql.Row) (EntityPrivilege, error)
func ScanEntityPrivileges ¶
func ScanEntityPrivileges(rs *sql.Rows) ([]EntityPrivilege, error)
type EntityType ¶
func ScanEntityType ¶
func ScanEntityType(r *sql.Row) (EntityType, error)
func ScanEntityTypes ¶
func ScanEntityTypes(rs *sql.Rows) ([]EntityType, error)
type EntityTypeKeys ¶
type IdentityAndPassword ¶
type IdentityAndPassword struct {
Id int64
Name string
Password string
WorkgroupId int64
IsActive bool
LastLogin pq.NullTime
Created time.Time
}
func ScanIdentityAndPassword ¶
func ScanIdentityAndPassword(r *sql.Row) (IdentityAndPassword, error)
func ScanIdentityAndPasswords ¶
func ScanIdentityAndPasswords(rs *sql.Rows) ([]IdentityAndPassword, error)
type IdentityAndRole ¶
type IdentityAndRole struct {
Kind string
IdentityId int64
IdentityName string
RoleId int64
RoleName string
}
func ScanIdentityAndRole ¶
func ScanIdentityAndRole(r *sql.Row) (IdentityAndRole, error)
func ScanIdentityAndRoles ¶
func ScanIdentityAndRoles(rs *sql.Rows) ([]IdentityAndRole, error)
type Label ¶
type Model ¶
type Model struct {
Id int64
ProjectId int64
TrainingDatasetId int64
ValidationDatasetId sql.NullInt64
Name string
ClusterId int64
ClusterName string
ModelKey string
Algorithm string
ModelCategory string
DatasetName string
ResponseColumnName string
LogicalName sql.NullString
Location string
ModelObjectType sql.NullString
MaxRunTime int64
Metrics string
MetricsVersion string
Created time.Time
LabelId sql.NullInt64
LabelName sql.NullString
}
type MultinomialModel ¶
type MultinomialModel struct {
Id int64
ProjectId int64
TrainingDatasetId int64
ValidationDatasetId sql.NullInt64
Name string
ClusterId int64
ClusterName string
ModelKey string
Algorithm string
ModelCategory string
DatasetName string
ResponseColumnName string
LogicalName sql.NullString
Location string
ModelObjectType sql.NullString
MaxRunTime int64
Metrics string
MetricsVersion string
Created time.Time
LabelId sql.NullInt64
LabelName sql.NullString
Mse float64
RSquared float64
Logloss float64
}
func ScanMultinomialModel ¶
func ScanMultinomialModel(r *sql.Row) (MultinomialModel, error)
func ScanMultinomialModels ¶
func ScanMultinomialModels(rs *sql.Rows) ([]MultinomialModel, error)
type Permission ¶
func ScanPermission ¶
func ScanPermission(r *sql.Row) (Permission, error)
func ScanPermissions ¶
func ScanPermissions(rs *sql.Rows) ([]Permission, error)
type PermissionKeys ¶
type PermissionKeys struct {
ManageRole int64
ViewRole int64
ManageWorkgroup int64
ViewWorkgroup int64
ManageIdentity int64
ViewIdentity int64
ManageEngine int64
ViewEngine int64
ManageCluster int64
ViewCluster int64
ManageProject int64
ViewProject int64
ManageDatasource int64
ViewDatasource int64
ManageDataset int64
ViewDataset int64
ManageModel int64
ViewModel int64
ManageLabel int64
ViewLabel int64
ManageService int64
ViewService int64
}
type Principal ¶
type Principal struct {
// contains filtered or unexported fields
}
func (*Principal) CheckPermission ¶
func (*Principal) HasPermission ¶
func (*Principal) IsSuperuser ¶
func (*Principal) WorkgroupId ¶
type Project ¶
type RegressionModel ¶
type RegressionModel struct {
Id int64
ProjectId int64
TrainingDatasetId int64
ValidationDatasetId sql.NullInt64
Name string
ClusterId int64
ClusterName string
ModelKey string
Algorithm string
ModelCategory string
DatasetName string
ResponseColumnName string
LogicalName sql.NullString
Location string
ModelObjectType sql.NullString
MaxRunTime int64
Metrics string
MetricsVersion string
Created time.Time
LabelId sql.NullInt64
LabelName sql.NullString
Mse float64
RSquared float64
MeanResidualDeviance float64
}
func ScanRegressionModel ¶
func ScanRegressionModel(r *sql.Row) (RegressionModel, error)
func ScanRegressionModels ¶
func ScanRegressionModels(rs *sql.Rows) ([]RegressionModel, error)
type Service ¶
type YarnCluster ¶
type YarnCluster struct {
Id int64
EngineId int64
Size int64
ApplicationId string
Memory string
Username string
OutputDir string
}
func ScanYarnCluster ¶
func ScanYarnCluster(r *sql.Row) (YarnCluster, error)
func ScanYarnClusters ¶
func ScanYarnClusters(rs *sql.Rows) ([]YarnCluster, error)
Click to show internal directories.
Click to hide internal directories.