qrs

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CPOT_AnalyticConnectionType      = "AnalyticConnection"
	CPOT_AppType                     = "App"
	CPOT_ContentLibraryType          = "ContentLibrary"
	CPOT_DataConnectionType          = "DataConnection"
	CPOT_EngineServiceType           = "EngineService"
	CPOT_ExtensionType               = "Extension"
	CPOT_ExternalProgramTaskType     = "ExternalProgramTask"
	CPOT_PrintingServiceType         = "PrintingService"
	CPOT_ProxyServiceType            = "ProxyService"
	CPOT_ReloadTaskType              = "ReloadTask"
	CPOT_RepositoryServiceType       = "RepositoryService"
	CPOT_SchedulerServiceType        = "SchedulerService"
	CPOT_ServerNodeConfigurationType = "ServerNodeConfiguration"
	CPOT_StreamType                  = "Stream"
	CPOT_SystemNotificationType      = "SystemNotification"
	CPOT_UserType                    = "User"
	CPOT_UserSyncTaskType            = "UserSyncTask"
	CPOT_VirtualProxyConfigType      = "VirtualProxyConfig"
)
View Source
const (
	QLIK_XRF_KEY string = "abcdefghijklmnop"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type About

type About struct {
	SchemaPath        *string `json:"schemaPath,omitempty"`
	BuildVersion      string  `json:"buildVersion"`
	BuildDate         string  `json:"buildDate"`
	DatabaseProvider  string  `json:"databaseProvider"`
	NodeType          int32   `json:"nodeType"`
	SharedPersistence bool    `json:"sharedPersistence"`
	RequiresBootstrap bool    `json:"requiresBootstrap"`
	SingleNodeOnly    bool    `json:"singleNodeOnly"`
}

type App

type App struct {
	Owner                 UserCondensed         `json:"owner,omitempty"`
	Privileges            []string              `json:"privileges,omitempty"`
	PublishTime           time.Time             `json:"publishTime,omitempty"`
	MigrationHash         string                `json:"migrationHash,omitempty"`
	Thumbnail             string                `json:"thumbnail,omitempty"`
	SchemaPath            string                `json:"schemaPath,omitempty"`
	Description           string                `json:"description,omitempty"`
	SavedInProductVersion string                `json:"savedInProductVersion,omitempty"`
	SourceAppID           string                `json:"sourceAppId,omitempty"`
	Published             bool                  `json:"published"`
	Tags                  []Tag                 `json:"tags,omitempty"`
	LastReloadTime        time.Time             `json:"lastReloadTime,omitempty"`
	CreatedDate           time.Time             `json:"createdDate,omitempty"`
	CustomProperties      []CustomPropertyValue `json:"customProperties,omitempty"`
	ModifiedByUserName    string                `json:"modifiedByUserName,omitempty"`
	Stream                *StreamCondensed      `json:"stream,omitempty"`
	FileSize              int                   `json:"fileSize,omitempty"`
	AppID                 string                `json:"appId,omitempty"`
	ModifiedDate          time.Time             `json:"modifiedDate,omitempty"`
	Name                  string                `json:"name,omitempty"`
	DynamicColor          string                `json:"dynamicColor,omitempty"`
	ID                    string                `json:"id,omitempty"`
	AvailabilityStatus    int                   `json:"availabilityStatus,omitempty"`
	TargetAppID           string                `json:"targetAppId,omitempty"`
}

type AppAvailabilityStatus

type AppAvailabilityStatus int32

type AppCondensed

type AppCondensed struct {
	Id                    *string                `json:"id,omitempty"`
	Privileges            []string               `json:"privileges,omitempty"`
	Name                  string                 `json:"name"`
	AppId                 *string                `json:"appId,omitempty"`
	PublishTime           *time.Time             `json:"publishTime,omitempty"`
	Published             *bool                  `json:"published,omitempty"`
	Stream                *StreamCondensed       `json:"stream,omitempty"`
	SavedInProductVersion *string                `json:"savedInProductVersion,omitempty"`
	MigrationHash         *string                `json:"migrationHash,omitempty"`
	AvailabilityStatus    *AppAvailabilityStatus `json:"availabilityStatus,omitempty"`
}

type AppExportResponse

type AppExportResponse struct {
	ExportToken  string `json:"exportToken,omitempty"`
	DownloadPath string `json:"downloadPath,omitempty"`
	SchemaPath   string `json:"schemaPath,omitempty"`
	AppID        string `json:"appId,omitempty"`
	Cancelled    bool   `json:"cancelled,omitempty"`
}

type AppObject

type AppObject struct {
	Id                 *string        `json:"id,omitempty"`
	CreatedDate        *time.Time     `json:"createdDate,omitempty"`
	ModifiedDate       *time.Time     `json:"modifiedDate,omitempty"`
	ModifiedByUserName *string        `json:"modifiedByUserName,omitempty"`
	SchemaPath         *string        `json:"schemaPath,omitempty"`
	Privileges         []string       `json:"privileges,omitempty"`
	Owner              UserCondensed  `json:"owner"`
	Name               *string        `json:"name,omitempty"`
	EngineObjectId     *string        `json:"engineObjectId,omitempty"`
	App                AppCondensed   `json:"app"`
	ContentHash        *string        `json:"contentHash,omitempty"`
	Size               *int64         `json:"size,omitempty"`
	EngineObjectType   *string        `json:"engineObjectType,omitempty"`
	Description        *string        `json:"description,omitempty"`
	Attributes         *string        `json:"attributes,omitempty"`
	ObjectType         string         `json:"objectType"`
	PublishTime        *time.Time     `json:"publishTime,omitempty"`
	Published          *bool          `json:"published,omitempty"`
	Approved           *bool          `json:"approved,omitempty"`
	Tags               []TagCondensed `json:"tags,omitempty"`
	SourceObject       *string        `json:"sourceObject,omitempty"`
	DraftObject        *string        `json:"draftObject,omitempty"`
	AppObjectBlobId    *string        `json:"appObjectBlobId,omitempty"`
}

type AppObjectCondensed

type AppObjectCondensed struct {
	Id               *string    `json:"id,omitempty"`
	Privileges       []string   `json:"privileges,omitempty"`
	Name             *string    `json:"name,omitempty"`
	EngineObjectId   *string    `json:"engineObjectId,omitempty"`
	ContentHash      *string    `json:"contentHash,omitempty"`
	EngineObjectType *string    `json:"engineObjectType,omitempty"`
	Description      *string    `json:"description,omitempty"`
	ObjectType       string     `json:"objectType"`
	PublishTime      *time.Time `json:"publishTime,omitempty"`
	Published        *bool      `json:"published,omitempty"`
}

type AuditMatrix

type AuditMatrix struct {
	SchemaPath string                                  `json:"schemaPath,omitempty"`
	Matrix     []AuditMatrixElementCondensed           `json:"matrix,omitempty"`
	Resources  map[string]AuditMatrixResourceCondensed `json:"resources,omitempty"`
	Subjects   map[string]AuditMatrixSubjectCondensed  `json:"subjects,omitempty"`
}

type AuditMatrixElementCondensed

type AuditMatrixElementCondensed struct {
	SchemaPath string           `json:"schemaPath,omitempty"`
	SubjectId  string           `json:"subjectId,omitempty"`
	ResourceId string           `json:"resourceId,omitempty"`
	Audit      map[string]int64 `json:"audit,omitempty"`
}

type AuditMatrixParameters

type AuditMatrixParameters struct {
	SchemaPath              string                                    `json:"schemaPath,omitempty"`
	ResourceRef             AuditMatrixParametersResourceRefCondensed `json:"resourceRef"`
	SubjectRef              AuditMatrixParametersResourceRefCondensed `json:"subjectRef"`
	ResourceType            string                                    `json:"resourceType,omitempty"`
	Actions                 int64                                     `json:"actions,omitempty"`
	EnvironmentAttributes   string                                    `json:"environmentAttributes,omitempty"`
	AuditLimit              int32                                     `json:"auditLimit,omitempty"`
	SubjectStart            string                                    `json:"subjectStart,omitempty"`
	SubjectProperties       []string                                  `json:"subjectProperties,omitempty"`
	ResourceProperties      []string                                  `json:"resourceProperties,omitempty"`
	OutputObjectsPrivileges int64                                     `json:"outputObjectsPrivileges,omitempty"`
}

type AuditMatrixParametersResourceRefCondensed

type AuditMatrixParametersResourceRefCondensed struct {
	SchemaPath     string `json:"schemaPath,omitempty"`
	ResourceFilter string `json:"resourceFilter,omitempty"`
	Selection      string `json:"selection,omitempty"`
}

type AuditMatrixResourceCondensed

type AuditMatrixResourceCondensed struct {
	SchemaPath         string            `json:"schemaPath,omitempty"`
	ResourceProperties map[string]string `json:"resourceProperties,omitempty"`
	Privileges         []string          `json:"privileges,omitempty"`
}

type AuditMatrixSubjectCondensed

type AuditMatrixSubjectCondensed struct {
	SchemaPath        string            `json:"schemaPath,omitempty"`
	SubjectProperties map[string]string `json:"subjectProperties,omitempty"`
	Privileges        []string          `json:"privileges,omitempty"`
}

type CPValueMap

type CPValueMap map[string]*CustomPropertyValue

func NewCPMap

func NewCPMap(cps []CustomPropertyValue) CPValueMap

func (CPValueMap) Diff

func (left CPValueMap) Diff(right CPValueMap) []MapDiffValue

type CPValuesMap

type CPValuesMap map[string]map[string]int // map[PropertyName][PropertyValue] = PropertyValueCount;

func NewCPValuesMap

func NewCPValuesMap(cps []CustomPropertyValue) CPValuesMap

type ChangeEvent

type ChangeEvent struct {
	ChangeType          ChangeType `json:"changeType,omitempty"`
	ObjectType          string     `json:"objectType,omitempty"`
	ObjectID            string     `json:"objectID,omitempty"`
	ChangedProperties   []string   `json:"changedProperties,omitempty"`
	EngineID            string     `json:"engineID,omitempty"`
	EngineType          string     `json:"engineType,omitempty"`
	OriginatorNodeID    string     `json:"originatorNodeID,omitempty"`
	OriginatorHostName  string     `json:"originatorHostName,omitempty"`
	OriginatorContextID string     `json:"originatorContextID,omitempty"`
	CreatedDate         time.Time  `json:"createdDate,omitempty"`
	ModifiedDate        time.Time  `json:"modifiedDate,omitempty"`
	SchemaPath          string     `json:"schemaPath,omitempty"`
}

func (ChangeEvent) IsAppReload added in v0.2.3

func (e ChangeEvent) IsAppReload() bool

type ChangeEvents

type ChangeEvents []ChangeEvent

type ChangeType

type ChangeType int

func (*ChangeType) MarshalJSON

func (t *ChangeType) MarshalJSON() ([]byte, error)

func (ChangeType) String

func (t ChangeType) String() string

type Client

type Client struct {
	Cfg Config `json:"config" yaml:"config"`
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg Config) (*Client, *util.Result)

func NewFromEngine

func NewFromEngine(cfg engine.Config) (*Client, *util.Result)

func (*Client) About

func (c *Client) About() (*About, *util.Result)

func (*Client) AddAppCustomProperty

func (c *Client) AddAppCustomProperty(app *App, name, value string) *util.Result

func (*Client) ChangeAppOwner

func (c *Client) ChangeAppOwner(appId, userId string) *util.Result

func (*Client) Copy added in v0.5.1

func (c *Client) Copy(appId, newName string) (*App, *util.Result)

func (*Client) CreateCustomProperty added in v0.7.4

func (c *Client) CreateCustomProperty(cpd *CreateCustomPropertyDefinition) (*CustomPropertyDefinition, *util.Result)

CreateCustomProperty create custom properties.

cpd needs following fields:

  • choiceValues;
  • description (optional);
  • name;
  • objectTypes; ( const values start with CPOT_ defined in mod `qrs`)
  • valueType (normally should be `Text`)

func (*Client) DeleteApp

func (c *Client) DeleteApp(id string) *util.Result

func (*Client) DeleteSelection

func (c *Client) DeleteSelection(id string) *util.Result

func (*Client) Do

func (c *Client) Do(method string, endpoint string, params map[string]string, body interface{}) ([]byte, *util.Result)

func (*Client) DownloadApp

func (c *Client) DownloadApp(id, dstPath string, skipData bool) *util.Result

func (*Client) DownloadAppContent

func (c *Client) DownloadAppContent(downloadPath, targetFolder string) (localPath string, res *util.Result)

func (*Client) ExportAppStaticContent

func (c *Client) ExportAppStaticContent(appid, targetFolder string) ([]string, *util.Result)

returns list of exported static content, saved as full file path

func (*Client) Get

func (c *Client) Get(endpoint string, opts ...rac.RequestOption) ([]byte, *util.Result)

func (*Client) GetApp

func (c *Client) GetApp(id string) (*App, *util.Result)

func (*Client) GetAppContent

func (c *Client) GetAppContent(downloadPath string) (data []byte, res *util.Result)

func (*Client) GetAppInfo

func (c *Client) GetAppInfo(appid string) (*App, *util.Result)

func (*Client) GetAppList

func (c *Client) GetAppList() ([]App, *util.Result)

func (*Client) GetAppObject

func (c *Client) GetAppObject(id string) (*AppObject, *util.Result)

func (*Client) GetAppReloadTask

func (c *Client) GetAppReloadTask(appid string) (*ReloadTask, *util.Result)

func (*Client) GetAppStaticContentList

func (c *Client) GetAppStaticContentList(appid string) ([]StaticContentReferenceCondensed, *util.Result)

func (*Client) GetAppSynthetic

func (c *Client) GetAppSynthetic(selId string) (*SyntheticRootEntity, *util.Result)

func (*Client) GetApps

func (c *Client) GetApps() ([]AppCondensed, *util.Result)

func (*Client) GetAppsWithTag

func (c *Client) GetAppsWithTag(tagName string) ([]App, *util.Result)

func (*Client) GetCustomProperty

func (c *Client) GetCustomProperty(id string) (*CustomPropertyDefinition, *util.Result)

func (*Client) GetCustomPropertyList

func (c *Client) GetCustomPropertyList() ([]CustomPropertyDefinitionCondensed, *util.Result)

func (*Client) GetDataConnection

func (c *Client) GetDataConnection(id string) (*DataConnection, *util.Result)

func (*Client) GetDataConnectionList

func (c *Client) GetDataConnectionList() ([]DataConnectionCondensed, *util.Result)

func (*Client) GetDataConnections

func (c *Client) GetDataConnections() ([]DataConnection, *util.Result)

func (*Client) GetHubApps

func (c *Client) GetHubApps() ([]App, *util.Result)

func (*Client) GetObject

func (c *Client) GetObject(endpoint string, o interface{}) *util.Result

func (*Client) GetReloadTask

func (c *Client) GetReloadTask(taskId string) (*ReloadTask, *util.Result)

func (*Client) GetStaticContentList

func (c *Client) GetStaticContentList() ([]StaticContentReferenceCondensed, *util.Result)

func (*Client) GetStream

func (c *Client) GetStream(id string) (*Stream, *util.Result)

func (*Client) GetStreamList

func (c *Client) GetStreamList() ([]StreamCondensed, *util.Result)

func (*Client) GetStreams

func (c *Client) GetStreams() ([]Stream, *util.Result)

func (*Client) GetTable

func (c *Client) GetTable(query TableQuery, def TableDefinition) (*Table, *util.Result)

func (*Client) GetTempContent

func (c *Client) GetTempContent(url *url.URL) ([]byte, *util.Result)

func (*Client) GetUser

func (c *Client) GetUser(userId string) (*User, *util.Result)

func (*Client) GetUserByName added in v0.7.4

func (c *Client) GetUserByName(username string) (*UserCondensed, *util.Result)

func (*Client) GetUserList

func (c *Client) GetUserList() ([]UserCondensed, *util.Result)

func (*Client) GetUsers

func (c *Client) GetUsers() ([]User, *util.Result)

func (*Client) Import

func (c *Client) Import(qvfPath, fallbackName string, skipData bool) (*App, *util.Result)

func (*Client) ImportReplace

func (c *Client) ImportReplace(qvfPath, targetAppID string, skipData bool) (*App, *util.Result)

func (*Client) IsUsingCert

func (c *Client) IsUsingCert() bool

func (*Client) Logger

func (c *Client) Logger() *zerolog.Logger

func (*Client) NewReloadTask

func (c *Client) NewReloadTask(appid string, partial bool) (*ReloadTask, *util.Result)

func (*Client) Post

func (c *Client) Post(endpoint string, body interface{}, opts ...rac.RequestOption) ([]byte, *util.Result)

func (*Client) PublishApp

func (c *Client) PublishApp(id, streamId, publishAppName string) (*App, *util.Result)

func (*Client) PublishReplaceApp

func (c *Client) PublishReplaceApp(srcAppId, targetAppId string) (*App, *util.Result)

func (*Client) Reload

func (c *Client) Reload(appid string, partial bool, timeout *time.Duration) (*ReloadTask, *util.Result)

func (*Client) SelectApp

func (c *Client) SelectApp(id string) (*Selection, *util.Result)

func (*Client) SetLogger

func (c *Client) SetLogger(l *zerolog.Logger)

func (*Client) Subscribe

func (c *Client) Subscribe(sub Subscription) (string, *util.Result)

func (*Client) UpdateAppSynthetic

func (c *Client) UpdateAppSynthetic(selId string, synthetic SyntheticRootEntity) *util.Result

func (*Client) WaitForReloadResult

func (c *Client) WaitForReloadResult(taskId string, timeout *time.Duration) (*ReloadTask, *util.Result)

type Config

type Config struct {
	rac.Config       `yaml:",inline"`
	SharedFolderRoot *string `json:"shared_folder_root,omitempty" yaml:"shared_folder_root,omitempty" bson:"shared_folder_root,omitempty"` //QSEoK shared folder which contains: `Apps`, `StaticContent` etc.
}

func NewConfigFromEngine

func NewConfigFromEngine(cfg engine.Config) *Config

type CreateCustomProperty

type CreateCustomProperty struct {
	Value      string                   `json:"value"`
	Definition CustomPropertyDefinition `json:"definition"`
}

CreateCustomProperty is used to create Qlik Sense CustomProperty

type CreateCustomPropertyDefinition added in v0.7.4

type CreateCustomPropertyDefinition struct {
	ValueType    string   `json:"valueType"`
	Name         string   `json:"name"`
	Description  string   `json:"description"`
	ChoiceValues []string `json:"choiceValues"`
	ObjectTypes  []string `json:"objectTypes"`
}

type CustomPropertyDefinition

type CustomPropertyDefinition struct {
	Privileges         []string  `json:"privileges"`
	CreatedDate        time.Time `json:"createdDate"`
	ModifiedByUserName string    `json:"modifiedByUserName"`
	SchemaPath         string    `json:"schemaPath"`
	ValueType          string    `json:"valueType"`
	ModifiedDate       time.Time `json:"modifiedDate"`
	Name               string    `json:"name"`
	Description        string    `json:"description"`
	ChoiceValues       []string  `json:"choiceValues"`
	ID                 string    `json:"id"`
	ObjectTypes        []string  `json:"objectTypes"`
}

CustomPropertyDefinition is used to describe Qlik Sense CustomPropertyDefinition

type CustomPropertyDefinitionCondensed

type CustomPropertyDefinitionCondensed struct {
	Privileges   []string `json:"privileges"`
	ValueType    string   `json:"valueType"`
	Name         string   `json:"name"`
	ChoiceValues []string `json:"choiceValues"`
	ID           string   `json:"id"`
}

CustomPropertyDefinitionCondensed is used to decribe Qlik Sense CustomPropertyDefinition in Condensed format

type CustomPropertySyntheticValue

type CustomPropertySyntheticValue struct {
	Values  []CustomPropertySyntheticValueItem `json:"values,omitempty"`
	Removed []string                           `json:"removed,omitempty"`
	Added   []string                           `json:"added,omitempty"`
}

type CustomPropertySyntheticValueItem

type CustomPropertySyntheticValueItem struct {
	Value string `json:"value"`
	Count int    `json:"count"`
}

type CustomPropertyValue

type CustomPropertyValue struct {
	CreatedDate        time.Time                         `json:"createdDate"`
	ModifiedByUserName string                            `json:"modifiedByUserName"`
	SchemaPath         string                            `json:"schemaPath"`
	ModifiedDate       time.Time                         `json:"modifiedDate"`
	Definition         CustomPropertyDefinitionCondensed `json:"definition"`
	ID                 string                            `json:"id"`
	Value              string                            `json:"value"`
}

type DataConnection

type DataConnection struct {
	Id                 *string               `json:"id,omitempty"`
	CreatedDate        *time.Time            `json:"createdDate,omitempty"`
	ModifiedDate       *time.Time            `json:"modifiedDate,omitempty"`
	ModifiedByUserName *string               `json:"modifiedByUserName,omitempty"`
	SchemaPath         *string               `json:"schemaPath,omitempty"`
	Privileges         []string              `json:"privileges,omitempty"`
	CustomProperties   []CustomPropertyValue `json:"customProperties,omitempty"`
	Owner              UserCondensed         `json:"owner"`
	Name               string                `json:"name"`
	Connectionstring   string                `json:"connectionstring"`
	Type               *string               `json:"type,omitempty"`
	EngineObjectId     *string               `json:"engineObjectId,omitempty"`
	Username           *string               `json:"username,omitempty"`
	Password           *string               `json:"password,omitempty"`
	LogOn              *int32                `json:"logOn,omitempty"`
	Architecture       *int32                `json:"architecture,omitempty"`
	Tags               []Tag                 `json:"tags,omitempty"`
}

type DataConnectionCondensed

type DataConnectionCondensed struct {
	Id               *string  `json:"id,omitempty"`
	Privileges       []string `json:"privileges,omitempty"`
	Name             string   `json:"name"`
	Connectionstring string   `json:"connectionstring"`
	Type             *string  `json:"type,omitempty"`
	EngineObjectId   *string  `json:"engineObjectId,omitempty"`
	Username         *string  `json:"username,omitempty"`
	Password         *string  `json:"password,omitempty"`
	LogOn            *int32   `json:"logOn,omitempty"`
	Architecture     *int32   `json:"architecture,omitempty"`
}

type ExecutionResultCondensed

type ExecutionResultCondensed struct {
	Id                 *string                          `json:"id,omitempty"`
	Privileges         []string                         `json:"privileges,omitempty"`
	ExecutingNodeName  *string                          `json:"executingNodeName,omitempty"`
	Status             *int32                           `json:"status,omitempty"`
	StartTime          *time.Time                       `json:"startTime,omitempty"`
	StopTime           *time.Time                       `json:"stopTime,omitempty"`
	Duration           *int32                           `json:"duration,omitempty"`
	FileReferenceID    *string                          `json:"fileReferenceID,omitempty"`
	ScriptLogAvailable *bool                            `json:"scriptLogAvailable,omitempty"`
	Details            []ExecutionResultDetailCondensed `json:"details,omitempty"`
	ScriptLogLocation  *string                          `json:"scriptLogLocation,omitempty"`
	ScriptLogSize      *int64                           `json:"scriptLogSize,omitempty"`
}

type ExecutionResultDetailCondensed

type ExecutionResultDetailCondensed struct {
	Id                *string    `json:"id,omitempty"`
	Privileges        []string   `json:"privileges,omitempty"`
	DetailsType       *int32     `json:"detailsType,omitempty"`
	Message           *string    `json:"message,omitempty"`
	DetailCreatedDate *time.Time `json:"detailCreatedDate,omitempty"`
}

type MapDiffType

type MapDiffType int

func (MapDiffType) String

func (t MapDiffType) String() string

type MapDiffValue

type MapDiffValue struct {
	Type  MapDiffType
	Key   string
	Left  *CustomPropertyValue
	Right *CustomPropertyValue
}

type NotiSubscriber added in v0.2.2

type NotiSubscriber struct {
	StopNotiSubscriber  chan bool
	SubscriptionHandles []string
	// contains filtered or unexported fields
}

func NewNotiSubscriber added in v0.2.2

func NewNotiSubscriber(cfg Config, subs []*Subscription) (*NotiSubscriber, *util.Result)

func (*NotiSubscriber) Logger added in v0.2.2

func (a *NotiSubscriber) Logger() *zerolog.Logger

func (*NotiSubscriber) SetLogger added in v0.2.3

func (a *NotiSubscriber) SetLogger(l *zerolog.Logger)

func (*NotiSubscriber) StartHealthCheckThread added in v0.2.2

func (a *NotiSubscriber) StartHealthCheckThread(timerSec int)

func (*NotiSubscriber) Subscribe added in v0.2.2

func (a *NotiSubscriber) Subscribe() *util.Result

type ReloadTask

type ReloadTask struct {
	Id                  *string                         `json:"id,omitempty"`
	CreatedDate         *time.Time                      `json:"createdDate,omitempty"`
	ModifiedDate        *time.Time                      `json:"modifiedDate,omitempty"`
	ModifiedByUserName  *string                         `json:"modifiedByUserName,omitempty"`
	SchemaPath          *string                         `json:"schemaPath,omitempty"`
	Privileges          []string                        `json:"privileges,omitempty"`
	CustomProperties    []CustomPropertyValue           `json:"customProperties,omitempty"`
	Name                string                          `json:"name"`
	TaskType            *int32                          `json:"taskType,omitempty"`
	Enabled             *bool                           `json:"enabled,omitempty"`
	TaskSessionTimeout  int32                           `json:"taskSessionTimeout"`
	MaxRetries          int32                           `json:"maxRetries"`
	Tags                []TagCondensed                  `json:"tags,omitempty"`
	App                 AppCondensed                    `json:"app"`
	IsManuallyTriggered *bool                           `json:"isManuallyTriggered,omitempty"`
	Operational         *ReloadTaskOperationalCondensed `json:"operational,omitempty"`
}

type ReloadTaskCondensed

type ReloadTaskCondensed struct {
	Id                 *string                         `json:"id,omitempty"`
	Privileges         []string                        `json:"privileges,omitempty"`
	Name               string                          `json:"name"`
	TaskType           *int32                          `json:"taskType,omitempty"`
	Enabled            *bool                           `json:"enabled,omitempty"`
	TaskSessionTimeout int32                           `json:"taskSessionTimeout"`
	MaxRetries         int32                           `json:"maxRetries"`
	Operational        *ReloadTaskOperationalCondensed `json:"operational,omitempty"`
}

type ReloadTaskOperationalCondensed

type ReloadTaskOperationalCondensed struct {
	Id                  *string                   `json:"id,omitempty"`
	Privileges          []string                  `json:"privileges,omitempty"`
	LastExecutionResult *ExecutionResultCondensed `json:"lastExecutionResult,omitempty"`
	NextExecution       *time.Time                `json:"nextExecution,omitempty"`
}

type Selection

type Selection struct {
	Id                 *string         `json:"id,omitempty"`
	CreatedDate        *time.Time      `json:"createdDate,omitempty"`
	ModifiedDate       *time.Time      `json:"modifiedDate,omitempty"`
	ModifiedByUserName *string         `json:"modifiedByUserName,omitempty"`
	SchemaPath         *string         `json:"schemaPath,omitempty"`
	Privileges         []string        `json:"privileges,omitempty"`
	Items              []SelectionItem `json:"items,omitempty"`
}

type SelectionCondensed

type SelectionCondensed struct {
	Id         *string  `json:"id,omitempty"`
	Privileges []string `json:"privileges,omitempty"`
}

type SelectionItem

type SelectionItem struct {
	Id                 *string    `json:"id,omitempty"`
	CreatedDate        *time.Time `json:"createdDate,omitempty"`
	ModifiedDate       *time.Time `json:"modifiedDate,omitempty"`
	ModifiedByUserName *string    `json:"modifiedByUserName,omitempty"`
	SchemaPath         *string    `json:"schemaPath,omitempty"`
	Type               string     `json:"type"`
	ObjectID           string     `json:"objectID"`
	ObjectName         *string    `json:"objectName,omitempty"`
}

type StaticContentReferenceCondensed

type StaticContentReferenceCondensed struct {
	ID           *string  `json:"id,omitempty"`
	Privileges   []string `json:"privileges,omitempty"`
	DataLocation *string  `json:"dataLocation,omitempty"`
	LogicalPath  string   `json:"logicalPath,omitempty"`
	ExternalPath *string  `json:"externalPath,omitempty"`
	ServeOptions int      `json:"serveOptions,omitempty"`
}

type Stream

type Stream struct {
	ID                 string                `json:"id"`
	Name               string                `json:"name"`
	Tags               []Tag                 `json:"tags"`
	CreatedDate        time.Time             `json:"createdDate"`
	ModifiedDate       time.Time             `json:"modifiedDate"`
	ModifiedByUserName string                `json:"modifiedByUserName"`
	SchemaPath         string                `json:"schemaPath"`
	Privileges         []string              `json:"privileges"`
	CustomProperties   []CustomPropertyValue `json:"customProperties"`
	Owner              UserCondensed         `json:"owner"`
}

type StreamCondensed

type StreamCondensed struct {
	Privileges []string `json:"privileges"`
	Name       string   `json:"name"`
	ID         string   `json:"id"`
}

type Subscription

type Subscription struct {
	TypeName     *string `json:"type_name,omitempty" yaml:"type_name,omitempty"`
	ObjectId     *string `json:"object_id,omitempty" yaml:"object_id,omitempty"`
	Filter       *string `json:"filter,omitempty" yaml:"filter,omitempty"`
	Condition    *string `json:"condition,omitempty" yaml:"condition,omitempty"`
	ChangeType   *string `json:"change_type,omitempty" yaml:"change_type,omitempty"`
	PropertyName *string `json:"property_name,omitempty" yaml:"property_name,omitempty"`
	CallbackURL  string  `json:"callback_url,omitempty" yaml:"callback_url,omitempty"`
}

func (Subscription) GetParams

func (s Subscription) GetParams() map[string]string

func (Subscription) Valid added in v0.2.2

func (s Subscription) Valid() *util.Result

type SubscriptionResponse

type SubscriptionResponse struct {
	Value string
}

type SyntheticEntityCondensed

type SyntheticEntityCondensed struct {
	SchemaPath *string                      `json:"schemaPath,omitempty"`
	Name       *string                      `json:"name,omitempty"`
	Type       *string                      `json:"type,omitempty"`
	Access     []string                     `json:"access,omitempty"`
	Children   []SyntheticEntityCondensed   `json:"children,omitempty"`
	Properties []SyntheticPropertyCondensed `json:"properties,omitempty"`
}

type SyntheticPropertyCondensed

type SyntheticPropertyCondensed struct {
	SchemaPath       *string         `json:"schemaPath,omitempty"`
	Name             *string         `json:"name,omitempty"`
	Value            json.RawMessage `json:"value,omitempty"`
	ValueIsDifferent *bool           `json:"valueIsDifferent,omitempty"`
	ValueIsModified  *bool           `json:"valueIsModified,omitempty"`
}

type SyntheticRootEntity

type SyntheticRootEntity struct {
	SchemaPath         *string                      `json:"schemaPath,omitempty"`
	Name               *string                      `json:"name,omitempty"`
	Type               *string                      `json:"type,omitempty"`
	Access             []string                     `json:"access,omitempty"`
	Children           []SyntheticEntityCondensed   `json:"children,omitempty"`
	Properties         []SyntheticPropertyCondensed `json:"properties,omitempty"`
	LatestModifiedDate *time.Time                   `json:"latestModifiedDate,omitempty"`
}

type Table

type Table struct {
	SchemaPath  *string         `json:"schemaPath,omitempty"`
	ColumnNames []string        `json:"columnNames,omitempty"`
	Rows        [][]interface{} `json:"rows,omitempty"`
	Id          *string         `json:"id,omitempty"`
}

type TableCol

type TableCol int
const (
	TABLE_COL_ID TableCol = iota
	TABLE_COL_APP_ID
	TABLE_COL_NAME
	TABLE_COL_OBJTYPE
	TABLE_COL_OWNER
	TABLE_COL_APPROVED
	TABLE_COL_PUBLISHED
	TABLE_COL_APP_NAME
	TABLE_COL_STREAM
)

type TableDefinition

type TableDefinition struct {
	Id                 *string                 `json:"id,omitempty"`
	Entity             *string                 `json:"entity,omitempty"`
	CreatedDate        *time.Time              `json:"createdDate,omitempty"`
	ModifiedDate       *time.Time              `json:"modifiedDate,omitempty"`
	ModifiedByUserName *string                 `json:"modifiedByUserName,omitempty"`
	SchemaPath         *string                 `json:"schemaPath,omitempty"`
	Privileges         []string                `json:"privileges,omitempty"`
	Type               *string                 `json:"type,omitempty"`
	Columns            []TableDefinitionColumn `json:"columns,omitempty"`
}

func NewDefaultTableDefinition

func NewDefaultTableDefinition() *TableDefinition

type TableDefinitionColumn

type TableDefinitionColumn struct {
	Id                 *string                     `json:"id,omitempty"`
	CreatedDate        *time.Time                  `json:"createdDate,omitempty"`
	ModifiedDate       *time.Time                  `json:"modifiedDate,omitempty"`
	ModifiedByUserName *string                     `json:"modifiedByUserName,omitempty"`
	SchemaPath         *string                     `json:"schemaPath,omitempty"`
	Name               *string                     `json:"name,omitempty"`
	ColumnType         *string                     `json:"columnType,omitempty"`
	Definition         *string                     `json:"definition,omitempty"`
	List               []TableDefinitionListColumn `json:"list,omitempty"`
}

func TablePropertyColumnOf

func TablePropertyColumnOf(name string) TableDefinitionColumn

type TableDefinitionListColumn

type TableDefinitionListColumn struct {
	Id                 *string    `json:"id,omitempty"`
	CreatedDate        *time.Time `json:"createdDate,omitempty"`
	ModifiedDate       *time.Time `json:"modifiedDate,omitempty"`
	ModifiedByUserName *string    `json:"modifiedByUserName,omitempty"`
	SchemaPath         *string    `json:"schemaPath,omitempty"`
	Name               *string    `json:"name,omitempty"`
	ColumnType         *int32     `json:"columnType,omitempty"`
	Definition         *string    `json:"definition,omitempty"`
}

type TableQuery

type TableQuery struct {
	Filter         TableQueryFilter
	OrderAscending bool
	Skip           int
	SortColumn     string
	Take           int
}

func NewTableQuery

func NewTableQuery() *TableQuery

func (TableQuery) GetParams

func (q TableQuery) GetParams() map[string]string

type TableQueryFilter

type TableQueryFilter struct {
	Owner      string
	ObjectType string
	Approved   bool
	Published  bool
}

func (TableQueryFilter) String

func (f TableQueryFilter) String() string

type Tag

type Tag struct {
	Privileges []string `json:"privileges"`
	Name       string   `json:"name"`
	ID         string   `json:"id"`
}

type TagCondensed

type TagCondensed struct {
	Id         *string  `json:"id,omitempty"`
	Privileges []string `json:"privileges,omitempty"`
	Name       string   `json:"name"`
}

type TraceLogEntry

type TraceLogEntry struct {
	Timestamp           TraceLogTimeStamp `csv:"Timestamp"`
	Level               string            `csv:"Level"`
	Hostname            string            `csv:"Hostname"`
	Logger              string            `csv:"Logger"`
	Thread              string            `csv:"Thread"`
	Id                  string            `csv:"Id"`
	ServiceUser         string            `csv:"ServiceUser"`
	Message             string            `csv:"Message"`
	ProxySessionId      string            `csv:"ProxySessionId"`
	Action              string            `csv:"Action"`
	ActiveUserDirectory string            `csv:"ActiveUserDirectory"`
	ActiveUserId        string            `csv:"ActiveUserId"`
	ResourceId          string            `csv:"ResourceId"`
	Checksum            string            `csv:"Checksum"`
}

func ReadTraceLogFile

func ReadTraceLogFile(file string) ([]TraceLogEntry, *util.Result)

type TraceLogTimeStamp

type TraceLogTimeStamp struct {
	time.Time
}

func (*TraceLogTimeStamp) UnmarshalCSV

func (date *TraceLogTimeStamp) UnmarshalCSV(csv string) (err error)

type User

type User struct {
	ID                 string                `json:"id"`
	CreatedDate        time.Time             `json:"createdDate"`
	ModifiedDate       time.Time             `json:"modifiedDate"`
	ModifiedByUserName string                `json:"modifiedByUserName"`
	CustomProperties   []CustomPropertyValue `json:"customProperties"`
	UserID             string                `json:"userId"`
	UserDirectory      string                `json:"userDirectory"`
	Name               string                `json:"name"`
	Roles              []string              `json:"roles"`
	Attributes         []UserAttribute       `json:"attributes"`
	Inactive           bool                  `json:"inactive"`
	RemovedExternally  bool                  `json:"removedExternally"`
	Blacklisted        bool                  `json:"blacklisted"`
	DeleteProhibited   bool                  `json:"deleteProhibited"`
	Tags               []Tag                 `json:"tags"`
	Privileges         []string              `json:"privileges"`
	SchemaPath         string                `json:"schemaPath"`
}

type UserAttribute

type UserAttribute struct {
	ID                 string    `json:"id"`
	CreatedDate        time.Time `json:"createdDate"`
	ModifiedDate       time.Time `json:"modifiedDate"`
	ModifiedByUserName string    `json:"modifiedByUserName"`
	AttributeType      string    `json:"attributeType"`
	AttributeValue     string    `json:"attributeValue"`
	ExternalID         string    `json:"externalId"`
	SchemaPath         string    `json:"schemaPath"`
}

type UserCondensed

type UserCondensed struct {
	Privileges    []string `json:"privileges"`
	UserDirectory string   `json:"userDirectory"`
	Name          string   `json:"name"`
	ID            string   `json:"id"`
	UserID        string   `json:"userId"`
}

UserCondensed is used to describe Qlik User in condensed mode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL